Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001454/0.001454, allocations: 117.6 kB / 17.79 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001713/0.001713, allocations: 200.7 kB / 18.74 MB, free: 4.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.316/1.316, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00125/0.00125, allocations: 59.91 kB / 358.3 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2422/0.2435, allocations: 50.54 MB / 408.8 MB, free: 1.523 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses): time 0.01061/0.2541, allocations: 9.703 MB / 418.5 MB, free: 7.777 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00636/0.2605, allocations: 3.758 MB / 422.3 MB, free: 4.012 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00135/0.2619, allocations: 47.81 kB / 422.3 MB, free: 3.965 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002002/0.2639, allocations: 0.695 MB / 423 MB, free: 3.266 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002833/0.2668, allocations: 0.9207 MB / 423.9 MB, free: 2.34 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001398/0.2682, allocations: 478.3 kB / 424.4 MB, free: 1.875 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003251/0.2715, allocations: 2.658 MB / 427 MB, free: 15.21 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002426/0.2739, allocations: 1.889 MB / 428.9 MB, free: 13.25 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001755/0.2757, allocations: 1.199 MB / 430.1 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002269/0.278, allocations: 1.51 MB / 431.6 MB, free: 10.54 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007202/0.2787, allocations: 304 kB / 431.9 MB, free: 10.24 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001399/0.2801, allocations: 0.562 MB / 432.5 MB, free: 9.676 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001206/0.2813, allocations: 1.017 MB / 433.5 MB, free: 8.656 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002172/0.2835, allocations: 1.489 MB / 435 MB, free: 7.16 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005265/0.2888, allocations: 4.324 MB / 439.3 MB, free: 2.82 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.504e-06/0.2889, allocations: 0 / 439.3 MB, free: 2.82 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.2889, allocations: 0 / 439.3 MB, free: 2.82 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001585/0.289, allocations: 0 / 439.3 MB, free: 2.82 MB / 350.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.006936/0.296, allocations: 3.264 MB / 442.6 MB, free: 15.48 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.233e-05/0.296, allocations: 11.97 kB / 442.6 MB, free: 15.47 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004957/0.2965, allocations: 355.4 kB / 443 MB, free: 15.11 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001067/0.2976, allocations: 378.8 kB / 443.3 MB, free: 14.74 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002853/0.3005, allocations: 1.749 MB / 445.1 MB, free: 12.94 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001081/0.3006, allocations: 152.1 kB / 445.2 MB, free: 12.79 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003059/0.3009, allocations: 215.9 kB / 445.4 MB, free: 12.57 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004232/0.3052, allocations: 2.727 MB / 448.2 MB, free: 9.766 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.657e-05/0.3052, allocations: 11.94 kB / 448.2 MB, free: 9.754 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001851/0.3054, allocations: 80 kB / 448.2 MB, free: 9.676 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001118/0.3055, allocations: 100 kB / 448.3 MB, free: 9.574 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003839/0.3094, allocations: 2.292 MB / 450.6 MB, free: 7.266 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01259/0.322, allocations: 8.24 MB / 458.9 MB, free: 14.8 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002796/0.3248, allocations: 1.632 MB / 460.5 MB, free: 13.11 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001899/0.3268, allocations: 1.097 MB / 461.6 MB, free: 12.02 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002369/0.327, allocations: 130 kB / 461.7 MB, free: 11.87 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.387e-05/0.3271, allocations: 43.56 kB / 461.8 MB, free: 11.82 MB / 382.1 MB Notification: Performance of pre-optimization done (n=116): time 3.507e-06/0.3271, allocations: 0 / 461.8 MB, free: 11.82 MB / 382.1 MB Notification: Performance of matching and sorting (n=132): time 0.01256/0.3396, allocations: 6.489 MB / 468.3 MB, free: 5.191 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.214e-05/0.3397, allocations: 68.72 kB / 468.3 MB, free: 5.113 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002742/0.3425, allocations: 2.177 MB / 470.5 MB, free: 2.891 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001708/0.3426, allocations: 53.7 kB / 470.6 MB, free: 2.832 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007654/0.3434, allocations: 1.165 MB / 471.7 MB, free: 1.656 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003811/0.3438, allocations: 471.9 kB / 472.2 MB, free: 1.191 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003852/0.3442, allocations: 251.5 kB / 472.4 MB, free: 0.9414 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001203/0.3443, allocations: 357.9 kB / 472.8 MB, free: 0.5859 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001247/0.3456, allocations: 0.7613 MB / 473.5 MB, free: 15.82 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001376/0.347, allocations: 1.013 MB / 474.6 MB, free: 14.71 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002645/0.3496, allocations: 1.865 MB / 476.4 MB, free: 12.76 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.97e-06/0.3496, allocations: 0 / 476.4 MB, free: 12.76 MB / 398.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.004906/0.3546, allocations: 2.774 MB / 479.2 MB, free: 9.969 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.532e-05/0.3546, allocations: 15.06 kB / 479.2 MB, free: 9.957 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.381e-05/0.3546, allocations: 4.25 kB / 479.2 MB, free: 9.953 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001922/0.3566, allocations: 0.785 MB / 480 MB, free: 9.164 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001138/0.3577, allocations: 263.6 kB / 480.3 MB, free: 8.906 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01121/0.3689, allocations: 9.607 MB / 489.9 MB, free: 15.02 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001408/0.3704, allocations: 95.84 kB / 490 MB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001304/0.3705, allocations: 48.17 kB / 490 MB, free: 14.88 MB / 414.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.001168/0.3717, allocations: 0.7625 MB / 490.8 MB, free: 14.11 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004158/0.3721, allocations: 210.6 kB / 491 MB, free: 13.9 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0042/0.3763, allocations: 2.489 MB / 493.5 MB, free: 11.39 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.814e-05/0.3764, allocations: 19.98 kB / 493.5 MB, free: 11.37 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.946e-06/0.3764, allocations: 4 kB / 493.5 MB, free: 11.37 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.096e-05/0.3764, allocations: 7.922 kB / 493.5 MB, free: 11.36 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008269/0.3847, allocations: 4.962 MB / 498.5 MB, free: 6.309 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.362e-06/0.3847, allocations: 4.031 kB / 498.5 MB, free: 6.305 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009993/0.3857, allocations: 219.6 kB / 498.7 MB, free: 6.09 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001699/0.3874, allocations: 0.6472 MB / 499.3 MB, free: 5.43 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001119/0.3876, allocations: 35.97 kB / 499.4 MB, free: 5.395 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008562/0.3961, allocations: 8.727 MB / 0.4962 GB, free: 12.25 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.444e-06/0.3962, allocations: 0 / 0.4962 GB, free: 12.25 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005788/0.402, allocations: 3.545 MB / 0.4996 GB, free: 8.656 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001016/0.403, allocations: 455.6 kB / 0.5001 GB, free: 8.191 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002704/0.4033, allocations: 31.92 kB / 0.5001 GB, free: 8.16 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009678/0.4043, allocations: 83.91 kB / 0.5002 GB, free: 8.078 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002595/0.4046, allocations: 104.8 kB / 0.5003 GB, free: 7.977 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.871e-05/0.4046, allocations: 39.98 kB / 0.5003 GB, free: 7.938 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001986/0.4066, allocations: 1.54 MB / 0.5018 GB, free: 6.375 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.4067, allocations: 4 kB / 0.5018 GB, free: 6.371 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001756/0.4084, allocations: 0.5235 MB / 0.5023 GB, free: 5.848 MB / 430.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.006798/0.4152, allocations: 4.465 MB / 0.5067 GB, free: 1.441 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004121/0.4194, allocations: 2.385 MB / 0.509 GB, free: 15.03 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.991e-06/0.4194, allocations: 4.062 kB / 0.509 GB, free: 15.03 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002477/0.4219, allocations: 1.604 MB / 0.5106 GB, free: 13.36 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002238/0.4242, allocations: 465.7 kB / 0.511 GB, free: 12.91 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0327/0.4569, allocations: 21.18 MB / 0.5317 GB, free: 7.32 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00167/0.4586, allocations: 1.97 MB / 0.5336 GB, free: 5.32 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001228/0.4598, allocations: 395.7 kB / 0.534 GB, free: 4.93 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001133/0.461, allocations: 0.9835 MB / 0.535 GB, free: 3.945 MB / 462.1 MB Notification: Performance of SimCode: time 1.182e-06/0.461, allocations: 4 kB / 0.535 GB, free: 3.941 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2666/0.7276, allocations: 51.33 MB / 0.5851 GB, free: 90.27 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 22.58/23.31, allocations: 6.609 kB / 0.5851 GB, free: 90.26 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_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_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLosses.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_withLosses/IMC_withLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches