Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001234/0.001234, allocations: 116.6 kB / 18.49 MB, free: 4.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001268/0.001268, allocations: 189 kB / 21.43 MB, free: 1.641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.375/1.375, allocations: 225.6 MB / 249.8 MB, free: 3.617 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002189/0.002189, allocations: 47.92 kB / 366.4 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1108/0.113, allocations: 52.14 MB / 418.5 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start): time 0.01031/0.1233, allocations: 8.005 MB / 426.5 MB, free: 4.555 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005413/0.1287, allocations: 2.606 MB / 429.1 MB, free: 1.941 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001226/0.13, allocations: 27.88 kB / 429.1 MB, free: 1.914 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001686/0.1316, allocations: 0.5676 MB / 429.7 MB, free: 1.344 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001348/0.133, allocations: 488.4 kB / 430.2 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005192/0.1335, allocations: 243.7 kB / 430.4 MB, free: 0.625 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001743/0.1353, allocations: 1.438 MB / 431.9 MB, free: 15.18 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006913/0.136, allocations: 406.8 kB / 432.3 MB, free: 14.76 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009414/0.1369, allocations: 0.5564 MB / 432.8 MB, free: 14.2 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006909/0.1376, allocations: 0.5793 MB / 433.4 MB, free: 13.62 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000166/0.1377, allocations: 136 kB / 433.5 MB, free: 13.48 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003471/0.1381, allocations: 188 kB / 433.7 MB, free: 13.3 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002292/0.1383, allocations: 267 kB / 434 MB, free: 13.04 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000619/0.1389, allocations: 0.6492 MB / 434.6 MB, free: 12.39 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002112/0.1411, allocations: 1.704 MB / 436.3 MB, free: 10.68 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.1411, allocations: 0 / 436.3 MB, free: 10.68 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.1411, allocations: 4 kB / 436.3 MB, free: 10.67 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.097e-05/0.1411, allocations: 0 / 436.3 MB, free: 10.67 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: 246 * Number of variables: 246 Notification: Performance of Generate backend data structure: time 0.002719/0.1438, allocations: 1.455 MB / 437.8 MB, free: 9.164 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.669e-05/0.1439, allocations: 12.03 kB / 437.8 MB, free: 9.152 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.157e-05/0.1439, allocations: 34.12 kB / 437.8 MB, free: 9.117 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001707/0.1441, allocations: 148.3 kB / 438 MB, free: 8.965 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006144/0.1447, allocations: 180 kB / 438.1 MB, free: 8.789 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001248/0.1459, allocations: 0.7341 MB / 438.9 MB, free: 8.016 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.361e-05/0.146, allocations: 74 kB / 439 MB, free: 7.941 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001348/0.1461, allocations: 100 kB / 439 MB, free: 7.844 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001576/0.1477, allocations: 0.919 MB / 440 MB, free: 6.898 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.571e-05/0.1478, allocations: 7.938 kB / 440 MB, free: 6.891 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.248e-05/0.1478, allocations: 40 kB / 440 MB, free: 6.852 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.318e-05/0.1479, allocations: 28 kB / 440 MB, free: 6.824 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001254/0.1491, allocations: 0.6246 MB / 440.7 MB, free: 6.195 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005184/0.1543, allocations: 3.879 MB / 444.5 MB, free: 2.078 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006233/0.1549, allocations: 335.7 kB / 444.9 MB, free: 1.723 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002842/0.1552, allocations: 137.2 kB / 445 MB, free: 1.586 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.664e-05/0.1552, allocations: 7.984 kB / 445 MB, free: 1.578 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.119e-05/0.1553, allocations: 42.5 kB / 445.1 MB, free: 1.527 MB / 366.1 MB Notification: Performance of pre-optimization done (n=32): time 2.645e-06/0.1553, allocations: 0 / 445.1 MB, free: 1.527 MB / 366.1 MB Notification: Performance of matching and sorting (n=35): time 0.002596/0.1579, allocations: 1.203 MB / 446.3 MB, free: 256 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.027e-05/0.158, allocations: 81.11 kB / 446.3 MB, free: 156 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1981/0.3561, allocations: 0.8248 MB / 447.2 MB, free: 29.94 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.094e-05/0.3562, allocations: 33.61 kB / 447.2 MB, free: 29.91 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003437/0.3565, allocations: 0.5773 MB / 447.8 MB, free: 29.82 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.675e-05/0.3566, allocations: 140.9 kB / 447.9 MB, free: 29.77 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001643/0.3568, allocations: 127.9 kB / 448 MB, free: 29.75 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.113e-05/0.3568, allocations: 331.4 kB / 448.4 MB, free: 29.44 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003215/0.3572, allocations: 152.7 kB / 448.5 MB, free: 29.44 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000432/0.3576, allocations: 454.3 kB / 449 MB, free: 29.06 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007518/0.3583, allocations: 0.6401 MB / 449.6 MB, free: 28.7 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.811e-06/0.3584, allocations: 0 / 449.6 MB, free: 28.7 MB / 366.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001208/0.3596, allocations: 0.6908 MB / 450.3 MB, free: 28.61 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.739e-05/0.3596, allocations: 9.688 kB / 450.3 MB, free: 28.61 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.561e-05/0.3596, allocations: 9.969 kB / 450.3 MB, free: 28.61 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001865/0.3598, allocations: 40.81 kB / 450.3 MB, free: 28.6 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000476/0.3603, allocations: 158.1 kB / 450.5 MB, free: 28.59 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000792/0.3611, allocations: 1.39 MB / 451.9 MB, free: 27.24 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005099/0.3616, allocations: 43.23 kB / 451.9 MB, free: 27.23 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.34e-05/0.3616, allocations: 30.72 kB / 452 MB, free: 27.23 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * 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): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003327/0.3619, allocations: 256.3 kB / 452.2 MB, free: 27.11 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001031/0.362, allocations: 86.08 kB / 452.3 MB, free: 27.06 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000712/0.3627, allocations: 379 kB / 452.7 MB, free: 27 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.142e-06/0.3628, allocations: 10.05 kB / 452.7 MB, free: 26.99 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.725e-06/0.3628, allocations: 0 / 452.7 MB, free: 26.99 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.58e-06/0.3628, allocations: 3.562 kB / 452.7 MB, free: 26.99 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001859/0.3646, allocations: 1.258 MB / 453.9 MB, free: 26.6 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.539e-06/0.3646, allocations: 1.766 kB / 453.9 MB, free: 26.6 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003274/0.365, allocations: 71.86 kB / 454 MB, free: 26.6 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.97e-05/0.365, allocations: 26.14 kB / 454 MB, free: 26.59 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.488e-05/0.3651, allocations: 9.75 kB / 454 MB, free: 26.59 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007233/0.3658, allocations: 1.38 MB / 455.4 MB, free: 25.19 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.468e-06/0.3658, allocations: 1.484 kB / 455.4 MB, free: 25.19 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00095/0.3667, allocations: 0.6342 MB / 456.1 MB, free: 24.8 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002449/0.367, allocations: 196.6 kB / 456.3 MB, free: 24.62 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.19e-05/0.3671, allocations: 9.438 kB / 456.3 MB, free: 24.62 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003601/0.3674, allocations: 22.45 kB / 456.3 MB, free: 24.62 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.857e-05/0.3675, allocations: 35.91 kB / 456.3 MB, free: 24.6 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.171e-05/0.3675, allocations: 13.98 kB / 456.3 MB, free: 24.6 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0009053/0.3684, allocations: 0.5605 MB / 456.9 MB, free: 24.36 MB / 366.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3684, allocations: 2.297 kB / 456.9 MB, free: 24.36 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009246/0.3694, allocations: 189.3 kB / 457.1 MB, free: 24.34 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (dcee.inertiaRotor.w,dcee.la.i,dcee.airGapDC.psi_e,loadInertia.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 (34): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(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.001631/0.371, allocations: 1.199 MB / 458.3 MB, free: 23.41 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001195/0.3722, allocations: 0.5003 MB / 458.8 MB, free: 23.16 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.948e-06/0.3722, allocations: 0.9688 kB / 458.8 MB, free: 23.16 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004192/0.3726, allocations: 255.2 kB / 459 MB, free: 23.01 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001161/0.3738, allocations: 219.5 kB / 459.2 MB, free: 22.94 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01052/0.3843, allocations: 7.117 MB / 466.4 MB, free: 18.64 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005439/0.3848, allocations: 0.9917 MB / 467.4 MB, free: 17.93 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004799/0.3853, allocations: 105.1 kB / 467.5 MB, free: 17.9 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003602/0.3857, allocations: 364.5 kB / 467.8 MB, free: 17.62 MB / 366.1 MB Notification: Performance of SimCode: time 1.263e-06/0.3857, allocations: 1.312 kB / 467.8 MB, free: 17.62 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04672/0.4324, allocations: 18.08 MB / 485.9 MB, free: 9.281 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.16/11.59, allocations: 11.92 kB / 485.9 MB, free: 9.27 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCEE_Start/DCEE_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_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: 16.388888530025724]