Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001303/0.001303, allocations: 115.8 kB / 20.43 MB, free: 1.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001391/0.001391, allocations: 216.6 kB / 23.74 MB, free: 4.656 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.451/1.451, allocations: 230.6 MB / 257.5 MB, free: 8.031 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0019/0.0019, allocations: 47.92 kB / 377.8 MB, free: 3.141 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.364/0.3659, allocations: 53.36 MB / 431.1 MB, free: 6.863 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.02225/0.3882, allocations: 11.84 MB / 443 MB, free: 10.97 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01191/0.4001, allocations: 3.273 MB / 446.3 MB, free: 7.688 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003909/0.404, allocations: 35.88 kB / 446.3 MB, free: 7.652 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004675/0.4087, allocations: 0.6796 MB / 447 MB, free: 6.973 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005568/0.4143, allocations: 0.7289 MB / 447.7 MB, free: 6.238 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002456/0.4167, allocations: 407.5 kB / 448.1 MB, free: 5.84 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005839/0.4226, allocations: 2.244 MB / 450.3 MB, free: 3.59 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002351/0.4249, allocations: 0.6498 MB / 451 MB, free: 2.887 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002556/0.4275, allocations: 0.8717 MB / 451.9 MB, free: 2.012 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002429/0.4299, allocations: 0.9139 MB / 452.8 MB, free: 1.094 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009344/0.4308, allocations: 220 kB / 453 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001506/0.4323, allocations: 252 kB / 453.2 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009443/0.4333, allocations: 434.4 kB / 453.7 MB, free: 212 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003014/0.4363, allocations: 1.015 MB / 454.7 MB, free: 15.19 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006468/0.4428, allocations: 2.697 MB / 457.4 MB, free: 12.48 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.4428, allocations: 0 / 457.4 MB, free: 12.48 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.4428, allocations: 0 / 457.4 MB, free: 12.48 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001264/0.4429, allocations: 3.984 kB / 457.4 MB, free: 12.48 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.006894/0.4498, allocations: 2.037 MB / 459.4 MB, free: 10.39 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.781e-05/0.4498, allocations: 12.02 kB / 459.4 MB, free: 10.38 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005021/0.4503, allocations: 220.1 kB / 459.6 MB, free: 10.15 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001091/0.4514, allocations: 259.6 kB / 459.9 MB, free: 9.898 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00217/0.4536, allocations: 0.9726 MB / 460.9 MB, free: 8.895 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001192/0.4537, allocations: 119.1 kB / 461 MB, free: 8.777 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002585/0.454, allocations: 164 kB / 461.1 MB, free: 8.617 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002741/0.4567, allocations: 1.483 MB / 462.6 MB, free: 7.059 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.855e-05/0.4568, allocations: 11.89 kB / 462.6 MB, free: 7.047 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001375/0.4569, allocations: 67.98 kB / 462.7 MB, free: 6.98 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.964e-05/0.457, allocations: 40 kB / 462.7 MB, free: 6.941 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001991/0.459, allocations: 0.9747 MB / 463.7 MB, free: 5.961 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009911/0.4689, allocations: 6.384 MB / 470.1 MB, free: 15.23 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008959/0.4698, allocations: 376.1 kB / 470.5 MB, free: 14.85 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004724/0.4702, allocations: 213.5 kB / 470.7 MB, free: 14.64 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.894e-05/0.4703, allocations: 8.422 kB / 470.7 MB, free: 14.63 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005899/0.4709, allocations: 268.8 kB / 471 MB, free: 14.35 MB / 382.1 MB Notification: Performance of pre-optimization done (n=50): time 2.144e-06/0.4709, allocations: 0 / 471 MB, free: 14.35 MB / 382.1 MB Notification: Performance of matching and sorting (n=56): time 0.003556/0.4744, allocations: 1.56 MB / 472.5 MB, free: 12.76 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001414/0.4746, allocations: 170.7 kB / 472.7 MB, free: 12.55 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001983/0.4766, allocations: 1.277 MB / 474 MB, free: 11.26 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.805e-05/0.4766, allocations: 37.7 kB / 474 MB, free: 11.22 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009029/0.4775, allocations: 0.8895 MB / 474.9 MB, free: 10.32 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002356/0.4777, allocations: 214.2 kB / 475.1 MB, free: 10.11 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003778/0.4781, allocations: 226.7 kB / 475.3 MB, free: 9.883 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002564/0.4784, allocations: 357.8 kB / 475.7 MB, free: 9.527 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005251/0.4789, allocations: 230.5 kB / 475.9 MB, free: 9.301 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001187/0.4801, allocations: 0.8072 MB / 476.7 MB, free: 8.223 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001915/0.482, allocations: 1.113 MB / 477.8 MB, free: 6.84 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.093e-05/0.482, allocations: 8 kB / 477.8 MB, free: 6.832 MB / 382.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002582/0.4846, allocations: 1.165 MB / 479 MB, free: 5.648 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001024/0.4847, allocations: 49.64 kB / 479 MB, free: 5.594 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.68e-05/0.4847, allocations: 20 kB / 479.1 MB, free: 5.574 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003395/0.4851, allocations: 69.62 kB / 479.1 MB, free: 5.5 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008286/0.4859, allocations: 259.6 kB / 479.4 MB, free: 5.246 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002568/0.4885, allocations: 2.589 MB / 482 MB, free: 2.43 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001305/0.4898, allocations: 72.08 kB / 482 MB, free: 2.359 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.812e-05/0.4899, allocations: 60 kB / 482.1 MB, free: 2.301 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 1 * 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,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0008357/0.4907, allocations: 349.3 kB / 482.4 MB, free: 1.949 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002006/0.4909, allocations: 147 kB / 482.6 MB, free: 1.805 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00121/0.4921, allocations: 0.5513 MB / 483.1 MB, free: 1.23 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.454e-06/0.4921, allocations: 4 kB / 483.1 MB, free: 1.227 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.986e-06/0.4921, allocations: 0 / 483.1 MB, free: 1.227 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.506e-06/0.4921, allocations: 4 kB / 483.1 MB, free: 1.223 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003108/0.4952, allocations: 1.834 MB / 485 MB, free: 15.28 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.028e-05/0.4952, allocations: 4 kB / 485 MB, free: 15.27 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004252/0.4957, allocations: 103.9 kB / 485.1 MB, free: 15.17 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001806/0.4958, allocations: 46.11 kB / 485.1 MB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.937e-05/0.4959, allocations: 19.98 kB / 485.1 MB, free: 15.1 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002106/0.498, allocations: 2.543 MB / 487.7 MB, free: 12.33 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.273e-06/0.498, allocations: 4 kB / 487.7 MB, free: 12.32 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001578/0.4996, allocations: 0.9267 MB / 488.6 MB, free: 11.33 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005453/0.5001, allocations: 187 kB / 488.8 MB, free: 11.14 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001417/0.5003, allocations: 20 kB / 488.8 MB, free: 11.12 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005156/0.5008, allocations: 31.97 kB / 488.8 MB, free: 11.09 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001485/0.5009, allocations: 47.86 kB / 488.9 MB, free: 11.05 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.728e-05/0.501, allocations: 23.98 kB / 488.9 MB, free: 11.02 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001487/0.5025, allocations: 0.8539 MB / 489.8 MB, free: 10.17 MB / 398.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.5025, allocations: 0 / 489.8 MB, free: 10.17 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001443/0.5039, allocations: 303.9 kB / 490.1 MB, free: 9.871 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadInertia1.phi,dcpm2.inertiaRotor.w,loadInertia2.phi) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00219/0.5061, allocations: 1.507 MB / 491.6 MB, free: 8.285 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002004/0.5081, allocations: 0.8969 MB / 492.5 MB, free: 7.352 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.5081, allocations: 0 / 492.5 MB, free: 7.352 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007159/0.5088, allocations: 462.6 kB / 492.9 MB, free: 6.875 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001636/0.5104, allocations: 339.9 kB / 493.3 MB, free: 6.559 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01701/0.5275, allocations: 10.93 MB / 0.4924 GB, free: 10.8 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009606/0.5284, allocations: 1.178 MB / 0.4935 GB, free: 9.598 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006835/0.5291, allocations: 167.3 kB / 0.4937 GB, free: 9.43 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007747/0.5299, allocations: 0.5734 MB / 0.4942 GB, free: 8.855 MB / 414.1 MB Notification: Performance of SimCode: time 1.773e-06/0.5299, allocations: 0 / 0.4942 GB, free: 8.855 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1084/0.6383, allocations: 28.79 MB / 0.5224 GB, free: 12.38 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.8/14.44, allocations: 3.984 kB / 0.5224 GB, free: 12.38 MB / 446.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStatic/DCPM_QuasiStatic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 19.342283950885758]