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.001187/0.001187, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001249/0.001249, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.342/1.342, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001322/0.001322, allocations: 55.38 kB / 307.1 MB, free: 0.5273 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08854/0.08988, allocations: 50.53 MB / 357.6 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses): time 0.0115/0.1014, allocations: 9.702 MB / 367.3 MB, free: 4.234 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007281/0.1087, allocations: 3.767 MB / 371.1 MB, free: 468 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00133/0.1101, allocations: 47.81 kB / 371.1 MB, free: 420 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1703/0.2805, allocations: 0.6572 MB / 371.8 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003024/0.2836, allocations: 0.8708 MB / 372.6 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001129/0.2847, allocations: 476.6 kB / 373.1 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002998/0.2877, allocations: 2.646 MB / 375.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001882/0.2896, allocations: 1.889 MB / 377.6 MB, free: 9.832 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001601/0.2912, allocations: 1.188 MB / 378.8 MB, free: 9.625 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002021/0.2933, allocations: 1.561 MB / 380.4 MB, free: 9.098 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004696/0.2937, allocations: 305.5 kB / 380.7 MB, free: 9.098 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001089/0.2948, allocations: 0.5527 MB / 381.2 MB, free: 9.027 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008335/0.2957, allocations: 0.983 MB / 382.2 MB, free: 8.535 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00139/0.2971, allocations: 1.484 MB / 383.7 MB, free: 7.562 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003556/0.3006, allocations: 4.258 MB / 388 MB, free: 5.988 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.217e-06/0.3007, allocations: 4 kB / 388 MB, free: 5.984 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.3007, allocations: 1.094 kB / 388 MB, free: 5.984 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.842e-05/0.3007, allocations: 0 / 388 MB, free: 5.984 MB / 302.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.005319/0.3061, allocations: 3.174 MB / 391.1 MB, free: 3.773 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.493e-05/0.3061, allocations: 9.719 kB / 391.1 MB, free: 3.773 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004392/0.3066, allocations: 349.6 kB / 391.5 MB, free: 3.52 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001045/0.3076, allocations: 371.7 kB / 391.8 MB, free: 3.336 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002234/0.3099, allocations: 1.678 MB / 393.5 MB, free: 2.18 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000101/0.31, allocations: 160 kB / 393.7 MB, free: 2.102 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002827/0.3103, allocations: 210.3 kB / 393.9 MB, free: 2.031 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003844/0.3141, allocations: 2.736 MB / 396.6 MB, free: 408 kB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.707e-05/0.3142, allocations: 0 / 396.6 MB, free: 408 kB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001766/0.3144, allocations: 83.53 kB / 396.7 MB, free: 344 kB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.73e-05/0.3145, allocations: 98.72 kB / 396.8 MB, free: 324 kB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003686/0.3182, allocations: 2.296 MB / 399.1 MB, free: 15.14 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01322/0.3314, allocations: 8.306 MB / 407.4 MB, free: 7.09 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003341/0.3348, allocations: 1.63 MB / 409 MB, free: 5.391 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002061/0.3369, allocations: 1.085 MB / 410.1 MB, free: 4.312 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002833/0.3372, allocations: 129.2 kB / 410.2 MB, free: 4.168 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.832e-05/0.3372, allocations: 51.5 kB / 410.3 MB, free: 4.109 MB / 318.1 MB Notification: Performance of pre-optimization done (n=116): time 4.258e-06/0.3372, allocations: 0 / 410.3 MB, free: 4.109 MB / 318.1 MB Notification: Performance of matching and sorting (n=132): time 0.01382/0.351, allocations: 6.47 MB / 416.8 MB, free: 13.5 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.724e-05/0.3511, allocations: 68.72 kB / 416.8 MB, free: 13.42 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003442/0.3546, allocations: 2.173 MB / 419 MB, free: 11.2 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001289/0.3547, allocations: 49.7 kB / 419.1 MB, free: 11.15 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008898/0.3556, allocations: 1.127 MB / 420.2 MB, free: 10.01 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003941/0.356, allocations: 458.5 kB / 420.6 MB, free: 9.566 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004315/0.3565, allocations: 239.5 kB / 420.9 MB, free: 9.324 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001587/0.3566, allocations: 363.4 kB / 421.2 MB, free: 8.965 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001323/0.358, allocations: 0.7605 MB / 422 MB, free: 8.207 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001487/0.3595, allocations: 1.009 MB / 423 MB, free: 7.109 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002915/0.3624, allocations: 1.863 MB / 424.9 MB, free: 5.16 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.284e-06/0.3624, allocations: 4 kB / 424.9 MB, free: 5.156 MB / 334.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.005206/0.3676, allocations: 2.765 MB / 427.6 MB, free: 2.375 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.789e-05/0.3677, allocations: 11.94 kB / 427.6 MB, free: 2.363 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.301e-05/0.3677, allocations: 4 kB / 427.6 MB, free: 2.359 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002028/0.3697, allocations: 0.7956 MB / 428.4 MB, free: 1.562 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001147/0.3709, allocations: 271.5 kB / 428.7 MB, free: 1.297 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01222/0.3831, allocations: 9.598 MB / 438.3 MB, free: 7.438 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00153/0.3847, allocations: 95.83 kB / 438.4 MB, free: 7.344 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002076/0.3849, allocations: 48 kB / 438.4 MB, free: 7.297 MB / 350.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.001496/0.3864, allocations: 0.7434 MB / 439.2 MB, free: 6.543 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006141/0.387, allocations: 205.6 kB / 439.4 MB, free: 6.34 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004876/0.3919, allocations: 2.498 MB / 441.9 MB, free: 3.82 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.784e-05/0.392, allocations: 16 kB / 441.9 MB, free: 3.805 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.447e-05/0.392, allocations: 8 kB / 441.9 MB, free: 3.797 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.505e-05/0.392, allocations: 3.984 kB / 441.9 MB, free: 3.793 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00932/0.4013, allocations: 4.974 MB / 446.9 MB, free: 14.76 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.104e-06/0.4013, allocations: 0 / 446.9 MB, free: 14.76 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001048/0.4024, allocations: 215.7 kB / 447.1 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001825/0.4042, allocations: 0.6544 MB / 447.7 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001204/0.4044, allocations: 35.97 kB / 447.8 MB, free: 13.85 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009466/0.4139, allocations: 8.73 MB / 456.5 MB, free: 4.715 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.521e-06/0.4139, allocations: 7.922 kB / 456.5 MB, free: 4.707 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006217/0.4201, allocations: 3.531 MB / 460 MB, free: 1.129 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009839/0.4211, allocations: 446.5 kB / 460.5 MB, free: 0.6719 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003844/0.4215, allocations: 24 kB / 460.5 MB, free: 0.6484 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001121/0.4226, allocations: 87.83 kB / 460.6 MB, free: 0.5625 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002711/0.4229, allocations: 104.9 kB / 460.7 MB, free: 468 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001016/0.423, allocations: 39.97 kB / 460.7 MB, free: 428 kB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002333/0.4254, allocations: 1.532 MB / 462.3 MB, free: 14.86 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.4254, allocations: 0 / 462.3 MB, free: 14.86 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00194/0.4273, allocations: 0.5262 MB / 462.8 MB, free: 14.34 MB / 382.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.007411/0.4347, allocations: 4.455 MB / 467.2 MB, free: 9.957 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005791/0.4406, allocations: 2.872 MB / 470.1 MB, free: 7.062 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.19e-06/0.4406, allocations: 0 / 470.1 MB, free: 7.062 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002656/0.4433, allocations: 1.583 MB / 471.7 MB, free: 5.414 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002557/0.4458, allocations: 465 kB / 472.2 MB, free: 4.969 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03735/0.4832, allocations: 23.76 MB / 495.9 MB, free: 11.66 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002194/0.4855, allocations: 1.967 MB / 497.9 MB, free: 9.656 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.00134/0.4868, allocations: 391.8 kB / 498.3 MB, free: 9.27 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001318/0.4881, allocations: 0.9874 MB / 499.2 MB, free: 8.281 MB / 414.1 MB Notification: Performance of SimCode: time 8.01e-07/0.4882, allocations: 0 / 499.2 MB, free: 8.281 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2468/0.735, allocations: 50.41 MB / 0.5368 GB, free: 150.5 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.29/11.02, allocations: 8.688 kB / 0.5368 GB, free: 150.5 MB / 446.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