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.001443/0.001443, allocations: 119.5 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001742/0.001742, allocations: 204.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.34/1.34, allocations: 227.4 MB / 246.9 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001211/0.001211, allocations: 63.89 kB / 358.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2488/0.25, allocations: 50.54 MB / 408.8 MB, free: 1.508 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses): time 0.01112/0.2612, allocations: 9.711 MB / 418.5 MB, free: 7.754 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006813/0.268, allocations: 3.754 MB / 422.3 MB, free: 3.992 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001299/0.2694, allocations: 47.81 kB / 422.3 MB, free: 3.945 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002244/0.2717, allocations: 0.7027 MB / 423 MB, free: 3.238 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003032/0.2747, allocations: 0.9207 MB / 423.9 MB, free: 2.312 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001338/0.2761, allocations: 471.1 kB / 424.4 MB, free: 1.852 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00354/0.2796, allocations: 2.658 MB / 427.1 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002782/0.2824, allocations: 1.881 MB / 428.9 MB, free: 13.24 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002024/0.2845, allocations: 1.207 MB / 430.1 MB, free: 12.03 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002483/0.287, allocations: 1.506 MB / 431.6 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008557/0.2879, allocations: 304 kB / 431.9 MB, free: 10.22 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001624/0.2895, allocations: 0.5543 MB / 432.5 MB, free: 9.664 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001346/0.2909, allocations: 1.024 MB / 433.5 MB, free: 8.637 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002515/0.2934, allocations: 1.489 MB / 435 MB, free: 7.141 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005533/0.2989, allocations: 4.316 MB / 439.3 MB, free: 2.809 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.299, allocations: 0 / 439.3 MB, free: 2.809 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.299, allocations: 4 kB / 439.3 MB, free: 2.805 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001423/0.2991, allocations: 0 / 439.3 MB, free: 2.805 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.00728/0.3064, allocations: 3.264 MB / 442.6 MB, free: 15.47 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.237e-05/0.3065, allocations: 12.03 kB / 442.6 MB, free: 15.46 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000831/0.3073, allocations: 347.4 kB / 442.9 MB, free: 15.1 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001481/0.3088, allocations: 382.8 kB / 443.3 MB, free: 14.73 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003591/0.3124, allocations: 1.753 MB / 445.1 MB, free: 12.92 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001566/0.3126, allocations: 152.1 kB / 445.2 MB, free: 12.77 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005884/0.3132, allocations: 208 kB / 445.4 MB, free: 12.57 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0059/0.3191, allocations: 2.727 MB / 448.2 MB, free: 9.758 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.514e-05/0.3192, allocations: 11.98 kB / 448.2 MB, free: 9.746 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003334/0.3196, allocations: 87.98 kB / 448.2 MB, free: 9.66 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001248/0.3197, allocations: 92.05 kB / 448.3 MB, free: 9.566 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004392/0.3241, allocations: 2.299 MB / 450.6 MB, free: 7.25 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01381/0.3379, allocations: 8.24 MB / 458.9 MB, free: 14.79 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003007/0.341, allocations: 1.631 MB / 460.5 MB, free: 13.09 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002008/0.343, allocations: 1.101 MB / 461.6 MB, free: 12 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002683/0.3433, allocations: 127.2 kB / 461.7 MB, free: 11.86 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.42e-05/0.3434, allocations: 47.56 kB / 461.8 MB, free: 11.8 MB / 382.1 MB Notification: Performance of pre-optimization done (n=116): time 3.006e-06/0.3434, allocations: 3.938 kB / 461.8 MB, free: 11.8 MB / 382.1 MB Notification: Performance of matching and sorting (n=132): time 0.01399/0.3574, allocations: 6.496 MB / 468.3 MB, free: 5.164 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.454e-05/0.3575, allocations: 64.72 kB / 468.3 MB, free: 5.09 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003542/0.361, allocations: 2.185 MB / 470.5 MB, free: 2.859 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002147/0.3612, allocations: 45.7 kB / 470.6 MB, free: 2.809 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008702/0.3621, allocations: 1.157 MB / 471.7 MB, free: 1.641 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005209/0.3627, allocations: 479.9 kB / 472.2 MB, free: 1.168 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004821/0.3632, allocations: 247.5 kB / 472.4 MB, free: 0.9219 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001473/0.3633, allocations: 361.9 kB / 472.8 MB, free: 0.5625 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001339/0.3647, allocations: 0.7613 MB / 473.6 MB, free: 15.8 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001466/0.3661, allocations: 1.009 MB / 474.6 MB, free: 14.7 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00286/0.369, allocations: 1.858 MB / 476.4 MB, free: 12.75 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.805e-06/0.369, allocations: 8 kB / 476.4 MB, free: 12.74 MB / 398.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.005344/0.3744, allocations: 2.77 MB / 479.2 MB, free: 9.953 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.681e-05/0.3744, allocations: 12.23 kB / 479.2 MB, free: 9.941 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.577e-05/0.3745, allocations: 12 kB / 479.2 MB, free: 9.93 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002007/0.3765, allocations: 0.7772 MB / 480 MB, free: 9.148 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001147/0.3776, allocations: 267.6 kB / 480.3 MB, free: 8.887 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0121/0.3897, allocations: 9.599 MB / 489.9 MB, free: 15.01 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001447/0.3912, allocations: 95.83 kB / 490 MB, free: 14.91 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002315/0.3915, allocations: 56.05 kB / 490 MB, free: 14.86 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.001356/0.3929, allocations: 0.7479 MB / 490.8 MB, free: 14.1 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005309/0.3934, allocations: 210.6 kB / 491 MB, free: 13.89 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004683/0.3981, allocations: 2.497 MB / 493.5 MB, free: 11.38 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.604e-05/0.3981, allocations: 12 kB / 493.5 MB, free: 11.36 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.809e-05/0.3982, allocations: 8 kB / 493.5 MB, free: 11.36 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.437e-05/0.3982, allocations: 7.969 kB / 493.5 MB, free: 11.35 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009596/0.4078, allocations: 4.958 MB / 498.4 MB, free: 6.301 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.378e-06/0.4078, allocations: 0 / 498.4 MB, free: 6.301 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001026/0.4089, allocations: 215.7 kB / 498.7 MB, free: 6.09 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001759/0.4106, allocations: 0.6622 MB / 499.3 MB, free: 5.418 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001483/0.4108, allocations: 35.98 kB / 499.4 MB, free: 5.383 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0093/0.4201, allocations: 8.722 MB / 0.4962 GB, free: 12.24 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.4202, allocations: 0 / 0.4962 GB, free: 12.24 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006044/0.4262, allocations: 3.549 MB / 0.4996 GB, free: 8.641 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009665/0.4272, allocations: 451.6 kB / 0.5001 GB, free: 8.18 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004214/0.4276, allocations: 31.94 kB / 0.5001 GB, free: 8.148 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001099/0.4288, allocations: 87.95 kB / 0.5002 GB, free: 8.062 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002954/0.4291, allocations: 108.8 kB / 0.5003 GB, free: 7.957 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001078/0.4292, allocations: 35.98 kB / 0.5003 GB, free: 7.922 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002378/0.4316, allocations: 1.536 MB / 0.5018 GB, free: 6.363 MB / 430.1 MB Notification: Performance of sort global known variables: time 2e-07/0.4316, allocations: 0 / 0.5018 GB, free: 6.363 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002065/0.4337, allocations: 0.5351 MB / 0.5023 GB, free: 5.828 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.007228/0.4409, allocations: 4.457 MB / 0.5067 GB, free: 1.434 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004471/0.4454, allocations: 2.393 MB / 0.509 GB, free: 15.01 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.861e-06/0.4454, allocations: 4 kB / 0.509 GB, free: 15.01 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002609/0.4481, allocations: 1.608 MB / 0.5106 GB, free: 13.34 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002411/0.4505, allocations: 444.3 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.03676/0.4873, allocations: 21.19 MB / 0.5317 GB, free: 7.309 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002118/0.4894, allocations: 1.973 MB / 0.5336 GB, free: 5.305 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001263/0.4907, allocations: 395.8 kB / 0.534 GB, free: 4.914 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001325/0.4921, allocations: 0.9835 MB / 0.535 GB, free: 3.93 MB / 462.1 MB Notification: Performance of SimCode: time 7.22e-07/0.4921, allocations: 0 / 0.535 GB, free: 3.93 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2775/0.7696, allocations: 51.33 MB / 0.5851 GB, free: 90.52 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 22.87/23.64, allocations: 9.734 kB / 0.5851 GB, free: 90.52 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