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.001259/0.001259, allocations: 110.4 kB / 17.73 MB, free: 5.352 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.001323/0.001323, allocations: 183.1 kB / 18.66 MB, free: 4.426 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.393/1.393, 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.001476/0.001476, allocations: 47.92 kB / 328.1 MB, free: 3.781 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09492/0.09641, allocations: 46.62 MB / 374.7 MB, free: 5.055 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses): time 0.215/0.3115, allocations: 9.609 MB / 384.3 MB, free: 8.195 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006691/0.3182, allocations: 3.481 MB / 387.8 MB, free: 6.293 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001493/0.3198, allocations: 45.66 kB / 387.8 MB, free: 6.277 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002151/0.322, allocations: 0.7052 MB / 388.5 MB, free: 5.895 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003598/0.3256, allocations: 0.87 MB / 389.4 MB, free: 5.352 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001212/0.3269, allocations: 458.9 kB / 389.8 MB, free: 5.086 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003769/0.3306, allocations: 2.672 MB / 392.5 MB, free: 3.762 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00216/0.3328, allocations: 1.818 MB / 394.3 MB, free: 3 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00202/0.3349, allocations: 1.18 MB / 395.5 MB, free: 2.434 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002338/0.3372, allocations: 1.503 MB / 397 MB, free: 1.727 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005678/0.3378, allocations: 306.2 kB / 397.3 MB, free: 1.727 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001274/0.3391, allocations: 0.5584 MB / 397.9 MB, free: 1.641 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001016/0.3401, allocations: 1.028 MB / 398.9 MB, free: 1.121 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00162/0.3417, allocations: 1.477 MB / 400.4 MB, free: 152 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005033/0.3468, allocations: 4.298 MB / 404.7 MB, free: 13.76 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.3468, allocations: 0 / 404.7 MB, free: 13.76 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3468, allocations: 1.344 kB / 404.7 MB, free: 13.76 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001187/0.347, allocations: 0 / 404.7 MB, free: 13.76 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.007047/0.354, allocations: 3.243 MB / 407.9 MB, free: 11.46 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.894e-05/0.3541, allocations: 9.75 kB / 407.9 MB, free: 11.46 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006084/0.3547, allocations: 354.2 kB / 408.3 MB, free: 11.2 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009809/0.3557, allocations: 348.6 kB / 408.6 MB, free: 11.02 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003309/0.359, allocations: 1.637 MB / 410.2 MB, free: 9.859 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001539/0.3592, allocations: 155.1 kB / 410.4 MB, free: 9.785 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003963/0.3596, allocations: 212.7 kB / 410.6 MB, free: 9.711 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004925/0.3645, allocations: 2.726 MB / 413.3 MB, free: 8.078 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.219e-05/0.3646, allocations: 10.62 kB / 413.3 MB, free: 8.07 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002044/0.3648, allocations: 82 kB / 413.4 MB, free: 8.008 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001118/0.3649, allocations: 101.6 kB / 413.5 MB, free: 7.988 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004493/0.3694, allocations: 2.302 MB / 415.8 MB, free: 6.59 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01573/0.3852, allocations: 8.223 MB / 424 MB, free: 14.16 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003711/0.3889, allocations: 1.636 MB / 425.7 MB, free: 12.46 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001964/0.3909, allocations: 1.104 MB / 426.8 MB, free: 11.35 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002478/0.3912, allocations: 130 kB / 426.9 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.386e-05/0.3913, allocations: 43.56 kB / 427 MB, free: 11.15 MB / 350.1 MB Notification: Performance of pre-optimization done (n=116): time 3.897e-06/0.3913, allocations: 0 / 427 MB, free: 11.15 MB / 350.1 MB Notification: Performance of matching and sorting (n=132): time 0.01275/0.404, allocations: 6.256 MB / 433.2 MB, free: 4.797 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.437e-05/0.4041, allocations: 64.72 kB / 433.3 MB, free: 4.723 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00286/0.407, allocations: 2.16 MB / 435.4 MB, free: 2.516 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001477/0.4071, allocations: 45.7 kB / 435.5 MB, free: 2.465 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007619/0.4079, allocations: 1.145 MB / 436.6 MB, free: 1.309 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003758/0.4083, allocations: 471.9 kB / 437.1 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003858/0.4087, allocations: 247.5 kB / 437.3 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000138/0.4088, allocations: 365.9 kB / 437.7 MB, free: 240 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001232/0.4101, allocations: 0.7534 MB / 438.4 MB, free: 15.48 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001365/0.4115, allocations: 1.013 MB / 439.5 MB, free: 14.38 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002674/0.4141, allocations: 1.854 MB / 441.3 MB, free: 12.43 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.436e-06/0.4142, allocations: 7.984 kB / 441.3 MB, free: 12.43 MB / 366.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.004981/0.4192, allocations: 2.77 MB / 444.1 MB, free: 9.637 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.66e-05/0.4192, allocations: 11.94 kB / 444.1 MB, free: 9.625 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.396e-05/0.4192, allocations: 7.938 kB / 444.1 MB, free: 9.617 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001961/0.4212, allocations: 0.7892 MB / 444.9 MB, free: 8.824 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001141/0.4223, allocations: 271.6 kB / 445.2 MB, free: 8.559 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01154/0.4339, allocations: 9.605 MB / 454.8 MB, free: 14.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00163/0.4356, allocations: 91.89 kB / 454.9 MB, free: 14.57 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001401/0.4357, allocations: 56.05 kB / 454.9 MB, free: 14.52 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.001561/0.4373, allocations: 0.7355 MB / 455.6 MB, free: 13.77 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004376/0.4377, allocations: 214.6 kB / 455.9 MB, free: 13.56 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004331/0.4421, allocations: 2.488 MB / 458.3 MB, free: 11.05 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.89e-05/0.4421, allocations: 16 kB / 458.4 MB, free: 11.04 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.618e-06/0.4421, allocations: 7.938 kB / 458.4 MB, free: 11.03 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.451e-05/0.4421, allocations: 7.984 kB / 458.4 MB, free: 11.02 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008477/0.4506, allocations: 4.958 MB / 463.3 MB, free: 5.973 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.923e-06/0.4507, allocations: 0 / 463.3 MB, free: 5.973 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009988/0.4517, allocations: 219.8 kB / 463.5 MB, free: 5.758 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001632/0.4533, allocations: 0.6564 MB / 464.2 MB, free: 5.09 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.591e-05/0.4534, allocations: 35.97 kB / 464.2 MB, free: 5.055 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009025/0.4625, allocations: 8.707 MB / 472.9 MB, free: 11.93 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-06/0.4625, allocations: 8 kB / 473 MB, free: 11.92 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00607/0.4686, allocations: 3.541 MB / 476.5 MB, free: 8.332 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001238/0.4698, allocations: 451.6 kB / 476.9 MB, free: 7.871 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002888/0.4701, allocations: 24 kB / 477 MB, free: 7.848 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009996/0.4712, allocations: 87.83 kB / 477 MB, free: 7.762 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002655/0.4714, allocations: 108.8 kB / 477.1 MB, free: 7.652 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.144e-05/0.4715, allocations: 35.98 kB / 477.2 MB, free: 7.617 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002085/0.4736, allocations: 1.519 MB / 478.7 MB, free: 6.074 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.4736, allocations: 0 / 478.7 MB, free: 6.074 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001951/0.4756, allocations: 0.5274 MB / 479.2 MB, free: 5.547 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.006973/0.4826, allocations: 4.466 MB / 483.7 MB, free: 1.031 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004289/0.4869, allocations: 2.384 MB / 486.1 MB, free: 14.62 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.4e-06/0.4869, allocations: 0 / 486.1 MB, free: 14.62 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002578/0.4895, allocations: 1.598 MB / 487.7 MB, free: 12.96 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002493/0.492, allocations: 450.1 kB / 488.1 MB, free: 12.52 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03235/0.5244, allocations: 21.13 MB / 0.4973 GB, free: 6.965 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001478/0.5259, allocations: 1.967 MB / 0.4992 GB, free: 4.965 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001054/0.527, allocations: 383.7 kB / 0.4996 GB, free: 4.586 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001096/0.5281, allocations: 0.9757 MB / 0.5006 GB, free: 3.609 MB / 430.1 MB Notification: Performance of SimCode: time 6.21e-07/0.5281, allocations: 3.938 kB / 0.5006 GB, free: 3.605 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3948/0.9228, allocations: 51.11 MB / 0.5505 GB, free: 368 kB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 22.39/23.31, allocations: 8.438 kB / 0.5505 GB, free: 360 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