Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_Transformers_AIMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_Transformers_AIMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001425/0.001425, allocations: 103.9 kB / 17.58 MB, free: 5.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001612/0.001612, allocations: 191.9 kB / 18.5 MB, free: 4.516 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.381/1.381, allocations: 205.1 MB / 224.4 MB, free: 12.28 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001196/0.001197, allocations: 52.14 kB / 280.8 MB, free: 3.074 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07906/0.08027, allocations: 46.63 MB / 327.4 MB, free: 4.371 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer): time 0.0137/0.094, allocations: 12.82 MB / 340.2 MB, free: 7.48 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00743/0.1015, allocations: 4.246 MB / 344.5 MB, free: 3.219 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002072/0.1036, allocations: 67.69 kB / 344.5 MB, free: 3.152 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002886/0.1065, allocations: 0.9665 MB / 345.5 MB, free: 2.18 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004257/0.1108, allocations: 1.173 MB / 346.7 MB, free: 1 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001467/0.1123, allocations: 0.5227 MB / 347.2 MB, free: 488 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.006127/0.1185, allocations: 4.672 MB / 351.9 MB, free: 11.78 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005178/0.1237, allocations: 3.598 MB / 355.5 MB, free: 8.117 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003832/0.1275, allocations: 2.124 MB / 357.6 MB, free: 5.996 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003742/0.1313, allocations: 2.549 MB / 360.1 MB, free: 3.438 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001287/0.1326, allocations: 0.5508 MB / 360.7 MB, free: 2.887 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001761/0.1344, allocations: 0.6483 MB / 361.3 MB, free: 2.238 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001653/0.136, allocations: 1.519 MB / 362.8 MB, free: 0.7148 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002708/0.1388, allocations: 2.482 MB / 365.3 MB, free: 14.22 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006077/0.1448, allocations: 7.349 MB / 372.7 MB, free: 6.852 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.232e-06/0.1449, allocations: 3.938 kB / 372.7 MB, free: 6.848 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1449, allocations: 0 / 372.7 MB, free: 6.848 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001066/0.145, allocations: 0 / 372.7 MB, free: 6.848 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 934 * Number of variables: 934 Notification: Performance of Generate backend data structure: time 0.00929/0.1543, allocations: 4.683 MB / 377.4 MB, free: 2.098 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.255e-05/0.1543, allocations: 8.031 kB / 377.4 MB, free: 2.09 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006752/0.155, allocations: 0.502 MB / 377.9 MB, free: 1.578 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001303/0.1563, allocations: 0.4995 MB / 378.4 MB, free: 1.074 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1428/0.2992, allocations: 2.372 MB / 380.7 MB, free: 48.72 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001734/0.2994, allocations: 266.3 kB / 381 MB, free: 48.7 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006753/0.3, allocations: 353.7 kB / 381.4 MB, free: 48.58 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008124/0.3082, allocations: 5.018 MB / 386.4 MB, free: 46.61 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.579e-05/0.3083, allocations: 10.23 kB / 386.4 MB, free: 46.61 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003032/0.3086, allocations: 146.8 kB / 386.5 MB, free: 46.5 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000174/0.3088, allocations: 181 kB / 386.7 MB, free: 46.48 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008204/0.317, allocations: 4.3 MB / 391 MB, free: 44.93 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02112/0.3382, allocations: 14.91 MB / 405.9 MB, free: 34.32 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003159/0.3413, allocations: 4.194 MB / 410.1 MB, free: 29.83 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002433/0.3438, allocations: 1.998 MB / 412.1 MB, free: 27.84 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002323/0.344, allocations: 130.9 kB / 412.2 MB, free: 27.7 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.79e-05/0.3441, allocations: 64.2 kB / 412.3 MB, free: 27.63 MB / 318.1 MB Notification: Performance of pre-optimization done (n=198): time 3.577e-06/0.3441, allocations: 0 / 412.3 MB, free: 27.63 MB / 318.1 MB Notification: Performance of matching and sorting (n=218): time 0.01623/0.3603, allocations: 10 MB / 422.3 MB, free: 17.52 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.016e-05/0.3604, allocations: 77.41 kB / 422.4 MB, free: 17.43 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002798/0.3632, allocations: 2.51 MB / 424.9 MB, free: 14.9 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001684/0.3634, allocations: 65.64 kB / 424.9 MB, free: 14.83 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006809/0.3641, allocations: 1.614 MB / 426.6 MB, free: 13.2 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003716/0.3644, allocations: 0.7339 MB / 427.3 MB, free: 12.48 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005468/0.365, allocations: 420.3 kB / 427.7 MB, free: 12.06 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.645e-05/0.365, allocations: 301.1 kB / 428 MB, free: 11.77 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001571/0.3666, allocations: 1.308 MB / 429.3 MB, free: 10.45 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001734/0.3684, allocations: 1.775 MB / 431.1 MB, free: 8.488 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003391/0.3718, allocations: 3.227 MB / 434.3 MB, free: 5.086 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.954e-06/0.3718, allocations: 4 kB / 434.3 MB, free: 5.082 MB / 318.1 MB Notification: Performance of matching and sorting (n=295) (initialization): time 0.005597/0.3774, allocations: 4.068 MB / 438.4 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.634e-05/0.3774, allocations: 15.94 kB / 438.4 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.92e-05/0.3775, allocations: 12 kB / 438.4 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002453/0.3799, allocations: 0.8888 MB / 439.3 MB, free: 60 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001979/0.3819, allocations: 0.5227 MB / 439.8 MB, free: 15.54 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01007/0.392, allocations: 9.49 MB / 449.3 MB, free: 5.637 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002014/0.394, allocations: 119.8 kB / 449.4 MB, free: 5.52 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001705/0.3942, allocations: 84 kB / 449.5 MB, free: 5.438 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 6 (booleanStep2[3].y,booleanStep2[2].y,booleanStep2[1].y,idealCloser.control[3],idealCloser.control[2],idealCloser.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (252): * Single equations (assignments): 247 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(3,25,77.8%), (2,12,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001924/0.3962, allocations: 1.223 MB / 450.7 MB, free: 4.203 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000507/0.3967, allocations: 272.7 kB / 451 MB, free: 3.934 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006117/0.4028, allocations: 3.719 MB / 454.7 MB, free: 184 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.647e-05/0.4028, allocations: 20 kB / 454.7 MB, free: 164 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.059e-05/0.4028, allocations: 12 kB / 454.7 MB, free: 152 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.781e-05/0.4029, allocations: 11.95 kB / 454.8 MB, free: 140 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01251/0.4154, allocations: 8.085 MB / 462.8 MB, free: 7.988 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.216e-06/0.4154, allocations: 0 / 462.8 MB, free: 7.988 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001621/0.417, allocations: 383.7 kB / 463.2 MB, free: 7.613 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003053/0.4201, allocations: 0.9368 MB / 464.2 MB, free: 6.66 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001505/0.4203, allocations: 55.97 kB / 464.2 MB, free: 6.605 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01195/0.4322, allocations: 11.06 MB / 475.3 MB, free: 11.01 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.661e-06/0.4323, allocations: 7.969 kB / 475.3 MB, free: 11 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008459/0.4407, allocations: 5.518 MB / 480.8 MB, free: 5.418 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001468/0.4422, allocations: 0.6266 MB / 481.4 MB, free: 4.77 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000647/0.4429, allocations: 51.98 kB / 481.5 MB, free: 4.719 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001516/0.4444, allocations: 115.9 kB / 481.6 MB, free: 4.605 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004334/0.4449, allocations: 185.7 kB / 481.8 MB, free: 4.422 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001392/0.445, allocations: 63.98 kB / 481.8 MB, free: 4.359 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002602/0.4476, allocations: 1.731 MB / 483.6 MB, free: 2.617 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.4476, allocations: 0 / 483.6 MB, free: 2.617 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002453/0.4501, allocations: 0.7955 MB / 484.4 MB, free: 1.824 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 9 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,quadraticLoadTorque.phi) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (175): * Single equations (assignments): 170 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,12,100.0%), (1,1,100.0%), (3,25,88.9%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.009224/0.4593, allocations: 6.208 MB / 490.6 MB, free: 11.54 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.011/0.4704, allocations: 5.702 MB / 496.3 MB, free: 5.781 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 9.388e-06/0.4704, allocations: 8 kB / 496.3 MB, free: 5.773 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004406/0.4748, allocations: 2.472 MB / 498.7 MB, free: 3.23 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0043/0.4791, allocations: 0.7834 MB / 499.5 MB, free: 2.445 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05769/0.5369, allocations: 34.17 MB / 0.5212 GB, free: 13.41 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002977/0.5399, allocations: 2.773 MB / 0.5239 GB, free: 10.61 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002195/0.5421, allocations: 0.6827 MB / 0.5246 GB, free: 9.926 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001955/0.5441, allocations: 1.405 MB / 0.5259 GB, free: 8.52 MB / 430.1 MB Notification: Performance of SimCode: time 8.52e-07/0.5441, allocations: 0 / 0.5259 GB, free: 8.52 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2474/0.7915, allocations: 74.7 MB / 0.5989 GB, free: 99.8 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.75/11.54, allocations: 4.938 kB / 0.5989 GB, free: 99.8 MB / 430.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer_res.csv --start-time 0 --stop-time 2.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_Transformers_AIMC_Transformer.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/Transformers/AIMC_Transformer/AIMC_Transformer.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches