Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.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.001786/0.001786, allocations: 120 kB / 18.49 MB, free: 4.562 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.00205/0.00205, allocations: 215.1 kB / 21.45 MB, free: 1.617 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.442/1.442, allocations: 230.6 MB / 254.8 MB, free: 15.1 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.DCSE_Start,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001517/0.001517, allocations: 47.92 kB / 373.7 MB, free: 10.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1051/0.1066, allocations: 53.33 MB / 427 MB, free: 4.848 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.2297/0.3363, allocations: 8.14 MB / 435.2 MB, free: 7.184 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003814/0.3401, allocations: 2.674 MB / 437.8 MB, free: 5.863 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007551/0.3409, allocations: 28.34 kB / 437.9 MB, free: 5.855 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001338/0.3422, allocations: 0.5655 MB / 438.4 MB, free: 5.613 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001055/0.3433, allocations: 0.4966 MB / 438.9 MB, free: 5.328 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000477/0.3438, allocations: 252.7 kB / 439.2 MB, free: 5.32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001541/0.3453, allocations: 1.472 MB / 440.6 MB, free: 4.66 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005951/0.3459, allocations: 405.9 kB / 441 MB, free: 4.41 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008561/0.3468, allocations: 0.5704 MB / 441.6 MB, free: 4.121 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006889/0.3474, allocations: 0.603 MB / 442.2 MB, free: 3.793 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001791/0.3476, allocations: 138.3 kB / 442.4 MB, free: 3.793 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003692/0.348, allocations: 174.1 kB / 442.5 MB, free: 3.785 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001779/0.3482, allocations: 287.5 kB / 442.8 MB, free: 3.574 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005272/0.3487, allocations: 0.6662 MB / 443.5 MB, free: 3.148 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002196/0.3509, allocations: 1.722 MB / 445.2 MB, free: 2.496 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.3509, allocations: 0.5312 kB / 445.2 MB, free: 2.496 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.3509, allocations: 0 / 445.2 MB, free: 2.496 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.032e-05/0.3509, allocations: 0.5938 kB / 445.2 MB, free: 2.496 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.002563/0.3535, allocations: 1.479 MB / 446.7 MB, free: 1.488 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.826e-05/0.3535, allocations: 10.59 kB / 446.7 MB, free: 1.488 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.574e-05/0.3536, allocations: 29.16 kB / 446.7 MB, free: 1.48 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001643/0.3538, allocations: 147.9 kB / 446.9 MB, free: 1.383 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006626/0.3544, allocations: 191.2 kB / 447 MB, free: 1.312 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001144/0.3556, allocations: 0.7555 MB / 447.8 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.695e-05/0.3556, allocations: 80.02 kB / 447.9 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001308/0.3557, allocations: 99.86 kB / 448 MB, free: 0.707 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00147/0.3572, allocations: 0.93 MB / 448.9 MB, free: 288 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.405e-05/0.3573, allocations: 6.109 kB / 448.9 MB, free: 284 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.665e-05/0.3573, allocations: 41.31 kB / 449 MB, free: 252 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3e-05/0.3574, allocations: 28.06 kB / 449 MB, free: 248 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001243/0.3586, allocations: 0.6318 MB / 449.6 MB, free: 12 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005743/0.3643, allocations: 3.899 MB / 453.5 MB, free: 13.36 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007853/0.3651, allocations: 417.1 kB / 453.9 MB, free: 13.11 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006566/0.3658, allocations: 248.8 kB / 454.2 MB, free: 13.04 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.76e-05/0.3658, allocations: 8.953 kB / 454.2 MB, free: 13.04 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.769e-05/0.3659, allocations: 41.55 kB / 454.2 MB, free: 12.99 MB / 366.1 MB Notification: Performance of pre-optimization done (n=40): time 2.114e-06/0.3659, allocations: 0 / 454.2 MB, free: 12.99 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.00297/0.3688, allocations: 1.404 MB / 455.6 MB, free: 12.09 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.197e-05/0.3689, allocations: 81.23 kB / 455.7 MB, free: 12 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001154/0.3701, allocations: 0.8297 MB / 456.5 MB, free: 11.63 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.092e-05/0.3701, allocations: 32.27 kB / 456.6 MB, free: 11.6 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004466/0.3706, allocations: 0.5725 MB / 457.1 MB, free: 11.14 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001316/0.3707, allocations: 164.2 kB / 457.3 MB, free: 11.01 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001914/0.3709, allocations: 134.6 kB / 457.4 MB, free: 10.93 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001514/0.371, allocations: 333.7 kB / 457.7 MB, free: 10.61 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003328/0.3714, allocations: 163.6 kB / 457.9 MB, free: 10.56 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00056/0.3719, allocations: 459.9 kB / 458.4 MB, free: 10.12 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009737/0.3729, allocations: 0.67 MB / 459 MB, free: 9.543 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/0.3729, allocations: 3.375 kB / 459 MB, free: 9.543 MB / 366.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001347/0.3742, allocations: 0.7609 MB / 459.8 MB, free: 9.199 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.21e-05/0.3743, allocations: 13.67 kB / 459.8 MB, free: 9.195 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.015e-05/0.3743, allocations: 13.53 kB / 459.8 MB, free: 9.191 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002823/0.3746, allocations: 85.75 kB / 459.9 MB, free: 9.156 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004885/0.3751, allocations: 154.9 kB / 460 MB, free: 9.137 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002714/0.3778, allocations: 3.134 MB / 463.2 MB, free: 6.02 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006109/0.3784, allocations: 43.25 kB / 463.2 MB, free: 5.996 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.937e-05/0.3784, allocations: 34.84 kB / 463.3 MB, free: 5.988 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (84): * Single equations (assignments): 82 * Array equations: 0 * 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,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004097/0.3788, allocations: 263.2 kB / 463.5 MB, free: 5.777 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001383/0.379, allocations: 90.12 kB / 463.6 MB, free: 5.73 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009901/0.38, allocations: 498.2 kB / 464.1 MB, free: 5.422 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.841e-06/0.38, allocations: 4.531 kB / 464.1 MB, free: 5.422 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/0.38, allocations: 5.031 kB / 464.1 MB, free: 5.422 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.7e-06/0.38, allocations: 0 / 464.1 MB, free: 5.422 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002281/0.3823, allocations: 1.434 MB / 465.5 MB, free: 4.344 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.738e-06/0.3823, allocations: 1.719 kB / 465.5 MB, free: 4.344 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002876/0.3826, allocations: 70.09 kB / 465.6 MB, free: 4.328 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002063/0.3828, allocations: 77.23 kB / 465.7 MB, free: 4.281 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.761e-05/0.3828, allocations: 11.97 kB / 465.7 MB, free: 4.273 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002554/0.3854, allocations: 3.127 MB / 468.8 MB, free: 1.121 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.836e-06/0.3854, allocations: 2.188 kB / 468.8 MB, free: 1.121 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00131/0.3867, allocations: 0.7765 MB / 469.6 MB, free: 0.5977 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003326/0.387, allocations: 205.8 kB / 469.8 MB, free: 412 kB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.894e-05/0.3871, allocations: 12.69 kB / 469.8 MB, free: 404 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004158/0.3875, allocations: 21.77 kB / 469.8 MB, free: 396 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.568e-05/0.3876, allocations: 36.08 kB / 469.9 MB, free: 376 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.587e-05/0.3876, allocations: 14.41 kB / 469.9 MB, free: 372 kB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008288/0.3885, allocations: 0.5651 MB / 470.4 MB, free: 44 kB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3885, allocations: 0 / 470.4 MB, free: 44 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009682/0.3894, allocations: 204.7 kB / 470.6 MB, free: 24 kB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.phi) * 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 (38): * Single equations (assignments): 36 * Array equations: 0 * 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,5,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.001736/0.3912, allocations: 1.34 MB / 472 MB, free: 14.96 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001306/0.3925, allocations: 0.6726 MB / 472.7 MB, free: 14.52 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.3925, allocations: 0 / 472.7 MB, free: 14.52 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006764/0.3931, allocations: 437.5 kB / 473.1 MB, free: 14.19 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001079/0.3942, allocations: 229 kB / 473.3 MB, free: 14.07 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01122/0.4054, allocations: 7.321 MB / 480.6 MB, free: 9.117 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006802/0.4061, allocations: 1.004 MB / 481.6 MB, free: 8.285 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000499/0.4066, allocations: 103.2 kB / 481.7 MB, free: 8.234 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004798/0.4071, allocations: 378 kB / 482.1 MB, free: 7.91 MB / 382.1 MB Notification: Performance of SimCode: time 1.402e-06/0.4071, allocations: 0 / 482.1 MB, free: 7.91 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05514/0.4622, allocations: 19.27 MB / 0.4896 GB, free: 4.961 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.62/12.08, allocations: 10.81 kB / 0.4896 GB, free: 4.953 MB / 398.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_Start/DCSE_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.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: 17.117200763954315]