Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.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.001347/0.001347, allocations: 114.7 kB / 19.17 MB, free: 3.891 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.001355/0.001355, allocations: 203.8 kB / 22.11 MB, free: 0.9531 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.367/1.367, allocations: 207.6 MB / 232.5 MB, free: 3.914 MB / 174.1 MB " [Timeout remaining time 179] 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.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_QuasiStationary,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStationary",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStationary",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001652/0.001652, allocations: 51.92 kB / 343 MB, free: 9.988 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.092/0.09365, allocations: 49.13 MB / 392.1 MB, free: 8.695 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.0137/0.1074, allocations: 11.74 MB / 403.9 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005852/0.1132, allocations: 3.243 MB / 407.1 MB, free: 9.648 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001358/0.1146, allocations: 43.75 kB / 407.1 MB, free: 9.605 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001671/0.1162, allocations: 0.6636 MB / 407.8 MB, free: 8.938 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001721/0.118, allocations: 0.729 MB / 408.5 MB, free: 8.203 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007361/0.1187, allocations: 395.5 kB / 408.9 MB, free: 7.816 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002363/0.1211, allocations: 2.242 MB / 411.2 MB, free: 5.566 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009713/0.122, allocations: 0.6531 MB / 411.8 MB, free: 4.859 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009923/0.123, allocations: 0.8678 MB / 412.7 MB, free: 3.988 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001026/0.124, allocations: 0.9178 MB / 413.6 MB, free: 3.066 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002766/0.1243, allocations: 216 kB / 413.8 MB, free: 2.855 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004268/0.1247, allocations: 256 kB / 414.1 MB, free: 2.605 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003502/0.1251, allocations: 430.4 kB / 414.5 MB, free: 2.184 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001005/0.1261, allocations: 1.015 MB / 415.5 MB, free: 1.164 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002956/0.1291, allocations: 2.7 MB / 418.2 MB, free: 14.45 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.1291, allocations: 0 / 418.2 MB, free: 14.45 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.1291, allocations: 0 / 418.2 MB, free: 14.45 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.178e-05/0.1291, allocations: 0 / 418.2 MB, free: 14.45 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.003478/0.1326, allocations: 2.117 MB / 420.3 MB, free: 12.27 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.883e-05/0.1326, allocations: 8.031 kB / 420.3 MB, free: 12.26 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.692e-05/0.1327, allocations: 43.27 kB / 420.4 MB, free: 12.22 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002517/0.1329, allocations: 224.1 kB / 420.6 MB, free: 11.99 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007622/0.1337, allocations: 267.6 kB / 420.8 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001698/0.1354, allocations: 1.052 MB / 421.9 MB, free: 10.63 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.592e-05/0.1355, allocations: 119 kB / 422 MB, free: 10.51 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002103/0.1357, allocations: 163.9 kB / 422.2 MB, free: 10.35 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002529/0.1382, allocations: 1.484 MB / 423.7 MB, free: 8.793 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.706e-05/0.1383, allocations: 11.89 kB / 423.7 MB, free: 8.781 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001202/0.1384, allocations: 60 kB / 423.7 MB, free: 8.723 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.74e-05/0.1384, allocations: 43.98 kB / 423.8 MB, free: 8.68 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001887/0.1403, allocations: 0.9669 MB / 424.7 MB, free: 7.707 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008231/0.1485, allocations: 6.534 MB / 431.3 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008461/0.1494, allocations: 372.2 kB / 431.6 MB, free: 464 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004256/0.1498, allocations: 205.9 kB / 431.8 MB, free: 256 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.751e-05/0.1499, allocations: 8.438 kB / 431.8 MB, free: 248 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005296/0.1504, allocations: 276.8 kB / 432.1 MB, free: 15.95 MB / 366.1 MB Notification: Performance of pre-optimization done (n=50): time 2.264e-06/0.1504, allocations: 0 / 432.1 MB, free: 15.95 MB / 366.1 MB Notification: Performance of matching and sorting (n=56): time 0.003278/0.1537, allocations: 1.78 MB / 433.9 MB, free: 14.08 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001142/0.1538, allocations: 174.7 kB / 434.1 MB, free: 13.87 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001634/0.1554, allocations: 1.277 MB / 435.3 MB, free: 12.58 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.094e-05/0.1554, allocations: 37.7 kB / 435.4 MB, free: 12.54 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006972/0.1561, allocations: 0.8933 MB / 436.3 MB, free: 11.63 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001767/0.1563, allocations: 214.3 kB / 436.5 MB, free: 11.42 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000278/0.1566, allocations: 218.8 kB / 436.7 MB, free: 11.2 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001624/0.1568, allocations: 357.9 kB / 437 MB, free: 10.85 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004516/0.1572, allocations: 230.5 kB / 437.3 MB, free: 10.62 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001021/0.1582, allocations: 0.8034 MB / 438.1 MB, free: 9.547 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001481/0.1597, allocations: 1.118 MB / 439.2 MB, free: 8.152 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.808e-06/0.1597, allocations: 11.94 kB / 439.2 MB, free: 8.141 MB / 366.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.00198/0.1617, allocations: 1.169 MB / 440.4 MB, free: 6.953 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.252e-05/0.1618, allocations: 58.25 kB / 440.4 MB, free: 6.891 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.351e-05/0.1618, allocations: 16 kB / 440.4 MB, free: 6.875 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002243/0.162, allocations: 69.7 kB / 440.5 MB, free: 6.801 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007698/0.1628, allocations: 263.6 kB / 440.8 MB, free: 6.543 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002195/0.165, allocations: 2.773 MB / 443.5 MB, free: 3.488 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008365/0.1658, allocations: 68.06 kB / 443.6 MB, free: 3.422 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.032e-05/0.1659, allocations: 63.98 kB / 443.7 MB, free: 3.359 MB / 366.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.0005352/0.1664, allocations: 361.3 kB / 444 MB, free: 2.996 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001672/0.1666, allocations: 143 kB / 444.2 MB, free: 2.855 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001044/0.1676, allocations: 0.549 MB / 444.7 MB, free: 2.289 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.833e-06/0.1676, allocations: 7.938 kB / 444.7 MB, free: 2.281 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.1676, allocations: 4 kB / 444.7 MB, free: 2.277 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.069e-05/0.1677, allocations: 7.984 kB / 444.7 MB, free: 2.27 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002821/0.1705, allocations: 1.862 MB / 446.6 MB, free: 292 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.432e-06/0.1705, allocations: 4 kB / 446.6 MB, free: 288 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000417/0.1709, allocations: 103.8 kB / 446.7 MB, free: 184 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001336/0.171, allocations: 46.12 kB / 446.7 MB, free: 132 kB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.114e-05/0.1711, allocations: 20 kB / 446.8 MB, free: 112 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002079/0.1731, allocations: 2.745 MB / 449.5 MB, free: 13.09 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.518e-06/0.1732, allocations: 4 kB / 449.5 MB, free: 13.08 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001419/0.1746, allocations: 0.9285 MB / 450.4 MB, free: 12.08 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003548/0.1749, allocations: 264.2 kB / 450.7 MB, free: 11.8 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001287/0.1751, allocations: 16 kB / 450.7 MB, free: 11.79 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005017/0.1756, allocations: 39.91 kB / 450.8 MB, free: 11.75 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001161/0.1757, allocations: 59.59 kB / 450.8 MB, free: 11.69 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.148e-05/0.1757, allocations: 20 kB / 450.8 MB, free: 11.67 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001169/0.1769, allocations: 0.8422 MB / 451.7 MB, free: 10.83 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1769, allocations: 0 / 451.7 MB, free: 10.83 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00099/0.1779, allocations: 311.9 kB / 452 MB, free: 10.52 MB / 382.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.001858/0.1797, allocations: 1.505 MB / 453.5 MB, free: 8.941 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001535/0.1813, allocations: 0.8866 MB / 454.4 MB, free: 8.02 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.019e-06/0.1813, allocations: 8.062 kB / 454.4 MB, free: 8.012 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007031/0.182, allocations: 461.3 kB / 454.8 MB, free: 7.535 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001396/0.1834, allocations: 341.7 kB / 455.2 MB, free: 7.203 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1857/0.3691, allocations: 10.92 MB / 466.1 MB, free: 62.61 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007449/0.3698, allocations: 1.175 MB / 467.3 MB, free: 61.89 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006251/0.3705, allocations: 175.7 kB / 467.4 MB, free: 61.88 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005535/0.371, allocations: 0.5712 MB / 468 MB, free: 61.87 MB / 382.1 MB Notification: Performance of SimCode: time 9.92e-07/0.371, allocations: 0 / 468 MB, free: 61.87 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07502/0.446, allocations: 28.04 MB / 496 MB, free: 43.84 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.68/12.12, allocations: 8.062 kB / 496.1 MB, free: 43.84 MB / 382.1 MB " [Timeout remaining time 648] (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStationary_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStationary.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStationary/DCPM_QuasiStationary.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 658] Reference file matches [Calling sys.exit(0), Time elapsed: 18.224335537990555]