Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Steinmetz.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.AsynchronousInductionMachines.AIMC_Steinmetz,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_Steinmetz",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Steinmetz,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_Steinmetz",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.001314/0.001314, allocations: 114.5 kB / 17.73 MB, free: 5.336 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.00125/0.00125, allocations: 187 kB / 18.67 MB, free: 4.402 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.356/1.356, allocations: 205.1 MB / 224.5 MB, free: 12.23 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.001302/0.001302, allocations: 47.94 kB / 328 MB, free: 3.785 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0949/0.09621, allocations: 46.61 MB / 374.7 MB, free: 5.059 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Steinmetz): time 0.2105/0.3067, allocations: 9.648 MB / 384.3 MB, free: 8.113 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005609/0.3124, allocations: 3.07 MB / 387.4 MB, free: 6.512 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00128/0.3137, allocations: 41.69 kB / 387.4 MB, free: 6.5 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001651/0.3154, allocations: 0.6713 MB / 388.1 MB, free: 6.133 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002416/0.3178, allocations: 0.778 MB / 388.9 MB, free: 5.629 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001127/0.319, allocations: 377.2 kB / 389.2 MB, free: 5.402 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004199/0.3232, allocations: 2.46 MB / 391.7 MB, free: 4.164 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002318/0.3255, allocations: 1.718 MB / 393.4 MB, free: 3.434 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002147/0.3277, allocations: 1.08 MB / 394.5 MB, free: 2.914 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001805/0.3295, allocations: 1.311 MB / 395.8 MB, free: 2.289 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004649/0.33, allocations: 280.7 kB / 396.1 MB, free: 2.289 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008352/0.3308, allocations: 366.4 kB / 396.4 MB, free: 2.266 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008469/0.3317, allocations: 0.7711 MB / 397.2 MB, free: 1.84 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001374/0.333, allocations: 1.267 MB / 398.5 MB, free: 1.023 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007836/0.3409, allocations: 3.659 MB / 402.1 MB, free: 15.34 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.516e-05/0.341, allocations: 0 / 402.1 MB, free: 15.34 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.496e-06/0.341, allocations: 0 / 402.1 MB, free: 15.34 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001828/0.3412, allocations: 0.9375 kB / 402.1 MB, free: 15.34 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 491 * Number of variables: 491 Notification: Performance of Generate backend data structure: time 0.008485/0.3497, allocations: 2.639 MB / 404.8 MB, free: 13.48 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.485e-05/0.3497, allocations: 13.84 kB / 404.8 MB, free: 13.48 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004608/0.3502, allocations: 273.9 kB / 405.1 MB, free: 13.27 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001006/0.3512, allocations: 281.8 kB / 405.3 MB, free: 13.12 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002569/0.3538, allocations: 1.273 MB / 406.6 MB, free: 12.18 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001246/0.354, allocations: 145.5 kB / 406.7 MB, free: 12.11 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003134/0.3543, allocations: 198.1 kB / 406.9 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004202/0.3585, allocations: 2.42 MB / 409.4 MB, free: 10.61 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.495e-05/0.3586, allocations: 3.25 kB / 409.4 MB, free: 10.61 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002001/0.3588, allocations: 80.45 kB / 409.4 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001151/0.3589, allocations: 91.73 kB / 409.5 MB, free: 10.54 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003611/0.3625, allocations: 1.96 MB / 411.5 MB, free: 9.539 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01328/0.3758, allocations: 7.785 MB / 419.3 MB, free: 2.961 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001638/0.3775, allocations: 1.23 MB / 420.5 MB, free: 1.68 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001777/0.3793, allocations: 0.9683 MB / 421.5 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000258/0.3796, allocations: 118.1 kB / 421.6 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.028e-05/0.3796, allocations: 47.56 kB / 421.6 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of pre-optimization done (n=95): time 3.647e-06/0.3796, allocations: 0 / 421.6 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of matching and sorting (n=111): time 0.01223/0.3919, allocations: 5.899 MB / 427.5 MB, free: 10.49 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.259e-05/0.3919, allocations: 64.41 kB / 427.6 MB, free: 10.42 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001749/0.3937, allocations: 1.31 MB / 428.9 MB, free: 9.102 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.029e-05/0.3938, allocations: 45.7 kB / 429 MB, free: 9.051 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005795/0.3944, allocations: 0.9388 MB / 429.9 MB, free: 8.102 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002944/0.3947, allocations: 412.5 kB / 430.3 MB, free: 7.695 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003571/0.395, allocations: 251.5 kB / 430.5 MB, free: 7.445 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001263/0.3952, allocations: 357.9 kB / 430.9 MB, free: 7.09 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008949/0.3961, allocations: 0.6364 MB / 431.5 MB, free: 6.453 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001092/0.3972, allocations: 1 MB / 432.5 MB, free: 5.301 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002066/0.3993, allocations: 1.735 MB / 434.3 MB, free: 3.414 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.532e-06/0.3993, allocations: 7.938 kB / 434.3 MB, free: 3.406 MB / 350.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.003481/0.4028, allocations: 2.254 MB / 436.5 MB, free: 1.129 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.584e-05/0.4028, allocations: 15.94 kB / 436.5 MB, free: 1.113 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.676e-05/0.4028, allocations: 8 kB / 436.5 MB, free: 1.105 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001161/0.404, allocations: 0.4928 MB / 437 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001031/0.405, allocations: 303.5 kB / 437.3 MB, free: 308 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006618/0.4117, allocations: 7.12 MB / 444.5 MB, free: 8.762 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001324/0.413, allocations: 87.86 kB / 444.5 MB, free: 8.676 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001004/0.4131, allocations: 56.06 kB / 444.6 MB, free: 8.621 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 2 (idealOpener.control,idealCloser.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (147): * Single equations (assignments): 142 * 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 {(2,12,100.0%), (2,8,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001039/0.4142, allocations: 0.6072 MB / 445.2 MB, free: 8.004 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002755/0.4145, allocations: 151.1 kB / 445.3 MB, free: 7.855 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003161/0.4176, allocations: 1.968 MB / 447.3 MB, free: 5.855 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.586e-05/0.4177, allocations: 12 kB / 447.3 MB, free: 5.844 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.12e-05/0.4177, allocations: 4 kB / 447.3 MB, free: 5.84 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.03e-05/0.4177, allocations: 3.984 kB / 447.3 MB, free: 5.836 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006816/0.4245, allocations: 4.136 MB / 451.5 MB, free: 1.609 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.668e-06/0.4246, allocations: 4.062 kB / 451.5 MB, free: 1.605 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007943/0.4254, allocations: 184 kB / 451.7 MB, free: 1.426 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001398/0.4268, allocations: 0.5348 MB / 452.2 MB, free: 0.875 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.051e-05/0.4269, allocations: 35.91 kB / 452.2 MB, free: 0.8398 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008158/0.435, allocations: 8.755 MB / 461 MB, free: 7.523 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.284e-06/0.4351, allocations: 11.95 kB / 461 MB, free: 7.512 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004488/0.4396, allocations: 2.852 MB / 463.8 MB, free: 4.602 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009273/0.4405, allocations: 368 kB / 464.2 MB, free: 4.223 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002264/0.4407, allocations: 24 kB / 464.2 MB, free: 4.199 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007882/0.4415, allocations: 71.91 kB / 464.3 MB, free: 4.129 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002241/0.4418, allocations: 92.84 kB / 464.4 MB, free: 4.039 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.177e-05/0.4419, allocations: 31.98 kB / 464.4 MB, free: 4.008 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001296/0.4432, allocations: 0.8917 MB / 465.3 MB, free: 3.113 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4432, allocations: 0 / 465.3 MB, free: 3.113 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00158/0.4448, allocations: 439.9 kB / 465.7 MB, free: 2.684 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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],quadraticLoadTorque.phi,cRun.v,cStart.v) * Number of discrete variables: 2 (idealCloser.control,idealOpener.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 81 * 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%), (2,8,100.0%), (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.004482/0.4492, allocations: 3.475 MB / 469.2 MB, free: 15.13 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00321/0.4525, allocations: 2.244 MB / 471.5 MB, free: 12.81 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.641e-06/0.4525, allocations: 4.688 kB / 471.5 MB, free: 12.8 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002074/0.4546, allocations: 1.51 MB / 473 MB, free: 11.22 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002002/0.4566, allocations: 413.9 kB / 473.4 MB, free: 10.82 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02193/0.4785, allocations: 15.68 MB / 489.1 MB, free: 10.59 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001357/0.4799, allocations: 1.642 MB / 490.7 MB, free: 8.91 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001027/0.481, allocations: 320.8 kB / 491 MB, free: 8.59 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008769/0.4818, allocations: 0.718 MB / 491.7 MB, free: 7.871 MB / 414.1 MB Notification: Performance of SimCode: time 9.12e-07/0.4819, allocations: 0 / 491.7 MB, free: 7.871 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07401/0.5559, allocations: 39.54 MB / 0.5188 GB, free: 220 kB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.27/19.82, allocations: 16.2 kB / 0.5188 GB, free: 204 kB / 446.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Steinmetz.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Steinmetz.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Steinmetz.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Steinmetz.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Steinmetz_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_Steinmetz.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Steinmetz.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Steinmetz_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/AsynchronousInductionMachines/AIMC_Steinmetz/AIMC_Steinmetz.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Steinmetz.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches