Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.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_withLosses,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_withLosses",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.001421/0.001421, allocations: 118.3 kB / 17.74 MB, free: 5.309 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.001252/0.001252, allocations: 183.1 kB / 18.66 MB, free: 4.391 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.487/1.487, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001641/0.001641, allocations: 55.92 kB / 328.1 MB, free: 3.762 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08874/0.09039, allocations: 46.63 MB / 374.7 MB, free: 5.027 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses): time 0.2054/0.2958, allocations: 9.612 MB / 384.3 MB, free: 8.188 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007091/0.303, allocations: 3.472 MB / 387.8 MB, free: 6.273 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001647/0.3047, allocations: 41.72 kB / 387.8 MB, free: 6.262 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001926/0.3066, allocations: 0.6699 MB / 388.5 MB, free: 5.906 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002676/0.3093, allocations: 0.8275 MB / 389.3 MB, free: 5.391 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001148/0.3105, allocations: 464 kB / 389.8 MB, free: 5.121 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003348/0.3138, allocations: 2.67 MB / 392.4 MB, free: 3.801 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002183/0.316, allocations: 1.819 MB / 394.3 MB, free: 3.039 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001987/0.318, allocations: 1.181 MB / 395.4 MB, free: 2.465 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00288/0.3209, allocations: 1.5 MB / 396.9 MB, free: 1.762 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008294/0.3218, allocations: 305.3 kB / 397.2 MB, free: 1.762 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001682/0.3235, allocations: 0.5544 MB / 397.8 MB, free: 1.68 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001171/0.3247, allocations: 1.024 MB / 398.8 MB, free: 1.164 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002072/0.3267, allocations: 1.486 MB / 400.3 MB, free: 188 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007419/0.3342, allocations: 4.297 MB / 404.6 MB, free: 13.79 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.3342, allocations: 0 / 404.6 MB, free: 13.79 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.3342, allocations: 0 / 404.6 MB, free: 13.79 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001612/0.3344, allocations: 1.031 kB / 404.6 MB, free: 13.79 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: 524 * Number of variables: 524 Notification: Performance of Generate backend data structure: time 0.0111/0.3455, allocations: 3.244 MB / 407.8 MB, free: 11.49 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.842e-05/0.3456, allocations: 9.75 kB / 407.8 MB, free: 11.49 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008739/0.3464, allocations: 349.6 kB / 408.2 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001338/0.3478, allocations: 349.3 kB / 408.5 MB, free: 11.05 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003907/0.3517, allocations: 1.632 MB / 410.2 MB, free: 9.895 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001627/0.3519, allocations: 159.2 kB / 410.3 MB, free: 9.816 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004677/0.3524, allocations: 209.1 kB / 410.5 MB, free: 9.746 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005682/0.3581, allocations: 2.726 MB / 413.3 MB, free: 8.113 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.309e-05/0.3582, allocations: 9.562 kB / 413.3 MB, free: 8.105 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002014/0.3584, allocations: 91.17 kB / 413.3 MB, free: 8.035 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001191/0.3585, allocations: 98.73 kB / 413.4 MB, free: 8.016 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004346/0.3628, allocations: 2.294 MB / 415.7 MB, free: 6.625 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01473/0.3776, allocations: 8.235 MB / 424 MB, free: 14.18 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003127/0.3808, allocations: 1.626 MB / 425.6 MB, free: 12.49 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00213/0.3829, allocations: 1.109 MB / 426.7 MB, free: 11.38 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002628/0.3832, allocations: 122.1 kB / 426.8 MB, free: 11.24 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.766e-05/0.3832, allocations: 43.56 kB / 426.9 MB, free: 11.19 MB / 350.1 MB Notification: Performance of pre-optimization done (n=116): time 3.456e-06/0.3833, allocations: 0 / 426.9 MB, free: 11.19 MB / 350.1 MB Notification: Performance of matching and sorting (n=132): time 0.01421/0.3975, allocations: 6.26 MB / 433.1 MB, free: 4.828 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.898e-05/0.3976, allocations: 68.72 kB / 433.2 MB, free: 4.75 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003284/0.4009, allocations: 2.16 MB / 435.4 MB, free: 2.543 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001618/0.401, allocations: 49.7 kB / 435.4 MB, free: 2.488 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009444/0.402, allocations: 1.141 MB / 436.5 MB, free: 1.336 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004303/0.4024, allocations: 475.9 kB / 437 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004283/0.4029, allocations: 239.5 kB / 437.2 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001722/0.403, allocations: 365.9 kB / 437.6 MB, free: 272 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001407/0.4045, allocations: 0.7574 MB / 438.4 MB, free: 15.51 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001547/0.406, allocations: 1.013 MB / 439.4 MB, free: 14.4 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002997/0.409, allocations: 1.861 MB / 441.2 MB, free: 12.45 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.368e-06/0.409, allocations: 0 / 441.2 MB, free: 12.45 MB / 366.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.005526/0.4146, allocations: 2.766 MB / 444 MB, free: 9.668 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.314e-05/0.4146, allocations: 11.94 kB / 444 MB, free: 9.656 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.737e-05/0.4147, allocations: 8 kB / 444 MB, free: 9.648 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002112/0.4168, allocations: 0.793 MB / 444.8 MB, free: 8.852 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001143/0.4179, allocations: 263.6 kB / 445.1 MB, free: 8.594 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01271/0.4307, allocations: 9.605 MB / 454.7 MB, free: 14.7 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001725/0.4324, allocations: 91.95 kB / 454.8 MB, free: 14.61 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001604/0.4326, allocations: 55.98 kB / 454.8 MB, free: 14.55 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (126): * Single equations (assignments): 122 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (6,33,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00156/0.4342, allocations: 0.7393 MB / 455.6 MB, free: 13.8 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005518/0.4347, allocations: 214.6 kB / 455.8 MB, free: 13.59 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005021/0.4398, allocations: 2.492 MB / 458.3 MB, free: 11.08 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.035e-05/0.4398, allocations: 12 kB / 458.3 MB, free: 11.07 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.219e-05/0.4398, allocations: 8 kB / 458.3 MB, free: 11.06 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.355e-05/0.4398, allocations: 3.984 kB / 458.3 MB, free: 11.05 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009509/0.4494, allocations: 4.962 MB / 463.2 MB, free: 6.004 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.135e-05/0.4494, allocations: 4 kB / 463.3 MB, free: 6 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001043/0.4505, allocations: 219.6 kB / 463.5 MB, free: 5.785 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001916/0.4524, allocations: 0.6488 MB / 464.1 MB, free: 5.125 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001192/0.4525, allocations: 31.97 kB / 464.1 MB, free: 5.094 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01004/0.4626, allocations: 8.714 MB / 472.9 MB, free: 11.96 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/0.4626, allocations: 0 / 472.9 MB, free: 11.96 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006639/0.4693, allocations: 3.537 MB / 476.4 MB, free: 8.375 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001132/0.4704, allocations: 447.6 kB / 476.8 MB, free: 7.918 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00025/0.4707, allocations: 31.98 kB / 476.9 MB, free: 7.887 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000952/0.4716, allocations: 95.89 kB / 477 MB, free: 7.793 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003012/0.472, allocations: 104.8 kB / 477.1 MB, free: 7.688 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001032/0.4721, allocations: 39.98 kB / 477.1 MB, free: 7.648 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002416/0.4745, allocations: 1.515 MB / 478.6 MB, free: 6.109 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.4745, allocations: 0 / 478.6 MB, free: 6.109 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001952/0.4765, allocations: 0.5274 MB / 479.1 MB, free: 5.582 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],loadInertia.phi,PI.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (97): * Single equations (assignments): 91 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 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): 3 systems {(2,12,100.0%), (1,6,100.0%), (2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.007868/0.4843, allocations: 4.467 MB / 483.6 MB, free: 1.066 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004679/0.489, allocations: 2.388 MB / 486 MB, free: 14.65 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.28e-06/0.4891, allocations: 0 / 486 MB, free: 14.65 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002834/0.4919, allocations: 1.594 MB / 487.6 MB, free: 13 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002534/0.4945, allocations: 470 kB / 488.1 MB, free: 12.54 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04182/0.5363, allocations: 21.12 MB / 0.4972 GB, free: 6.996 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002262/0.5386, allocations: 1.967 MB / 0.4992 GB, free: 4.996 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001349/0.54, allocations: 387.7 kB / 0.4995 GB, free: 4.613 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001407/0.5414, allocations: 0.9796 MB / 0.5005 GB, free: 3.633 MB / 430.1 MB Notification: Performance of SimCode: time 1.342e-06/0.5414, allocations: 3.938 kB / 0.5005 GB, free: 3.629 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1115/0.6529, allocations: 51.1 MB / 0.5504 GB, free: 408 kB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 22.37/23.03, allocations: 448 / 0.5504 GB, free: 408 kB / 478.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses_res.csv --start-time 0 --stop-time 5 --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_withLosses.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses_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_withLosses/AIMC_withLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches