Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_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.0008777/0.0008777, allocations: 80.06 kB / 21.43 MB, free: 3.117 MB / 18.57 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.004988/0.004988, allocations: 142.2 kB / 24.68 MB, free: 8.922 MB / 18.57 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 0.8297/0.8297, allocations: 173.4 MB / 201.2 MB, free: 9.441 MB / 186.7 MB " [Timeout remaining time 179] 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: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.443e-06/1.443e-06, allocations: 0 / 319.7 MB, free: 5.863 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.985e-05/2.129e-05, allocations: 6.281 kB / 319.7 MB, free: 5.855 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.005528/0.00555, allocations: 7.137 MB / 326.8 MB, free: 14.67 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002732/0.008282, allocations: 2.459 MB / 329.3 MB, free: 12.21 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003455/0.008627, allocations: 27.88 kB / 329.3 MB, free: 12.18 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008539/0.009481, allocations: 0.5362 MB / 329.9 MB, free: 11.64 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005527/0.01003, allocations: 0.5116 MB / 330.4 MB, free: 11.12 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002639/0.0103, allocations: 259.7 kB / 330.6 MB, free: 10.87 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008569/0.01115, allocations: 1.525 MB / 332.1 MB, free: 9.34 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004012/0.01156, allocations: 367.2 kB / 332.5 MB, free: 8.961 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005932/0.01215, allocations: 0.8612 MB / 333.4 MB, free: 8.098 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003552/0.0125, allocations: 442.6 kB / 333.8 MB, free: 7.664 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001027/0.01261, allocations: 136 kB / 333.9 MB, free: 7.531 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001839/0.01279, allocations: 172 kB / 334.1 MB, free: 7.363 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000127/0.01292, allocations: 290.8 kB / 334.4 MB, free: 7.078 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002696/0.01319, allocations: 462.9 kB / 334.8 MB, free: 6.625 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001276/0.01446, allocations: 1.729 MB / 336.6 MB, free: 4.891 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.01447, allocations: 0 / 336.6 MB, free: 4.891 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.334e-06/0.01447, allocations: 3.984 kB / 336.6 MB, free: 4.887 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.039e-05/0.01448, allocations: 0 / 336.6 MB, free: 4.887 MB / 298.7 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.001398/0.01588, allocations: 1.392 MB / 338 MB, free: 3.453 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.461e-05/0.01591, allocations: 8.031 kB / 338 MB, free: 3.445 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003478/0.01626, allocations: 196 kB / 338.2 MB, free: 3.254 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007845/0.01704, allocations: 0.6767 MB / 338.8 MB, free: 2.555 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.799e-05/0.01708, allocations: 74 kB / 338.9 MB, free: 2.48 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.606e-05/0.01717, allocations: 100 kB / 339 MB, free: 2.383 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000963/0.01813, allocations: 1.031 MB / 340 MB, free: 1.301 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.504e-05/0.01816, allocations: 7.938 kB / 340 MB, free: 1.293 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.982e-05/0.01821, allocations: 40 kB / 340.1 MB, free: 1.254 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.443e-05/0.01822, allocations: 24 kB / 340.1 MB, free: 1.23 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000735/0.01896, allocations: 0.6324 MB / 340.7 MB, free: 0.5938 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002902/0.02186, allocations: 3.362 MB / 344.1 MB, free: 13.03 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004212/0.02228, allocations: 335.6 kB / 344.4 MB, free: 12.69 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003427/0.02262, allocations: 254 kB / 344.7 MB, free: 12.44 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.451e-05/0.02265, allocations: 4.328 kB / 344.7 MB, free: 12.44 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.717e-05/0.02267, allocations: 42.89 kB / 344.7 MB, free: 12.39 MB / 314.7 MB Notification: Performance of pre-optimization done (n=40): time 2.675e-06/0.02268, allocations: 0 / 344.7 MB, free: 12.39 MB / 314.7 MB Notification: Performance of matching and sorting (n=44): time 0.001582/0.02426, allocations: 1.263 MB / 346 MB, free: 11.09 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.16e-05/0.0243, allocations: 81.11 kB / 346.1 MB, free: 10.99 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005985/0.0249, allocations: 0.7581 MB / 346.8 MB, free: 10.22 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.147e-05/0.02492, allocations: 33.7 kB / 346.9 MB, free: 10.18 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002442/0.02516, allocations: 0.5774 MB / 347.4 MB, free: 9.598 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.45e-05/0.02524, allocations: 162.6 kB / 347.6 MB, free: 9.438 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001069/0.02534, allocations: 130.6 kB / 347.7 MB, free: 9.305 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001136/0.02546, allocations: 382.8 kB / 348.1 MB, free: 8.922 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001988/0.02566, allocations: 169.9 kB / 348.3 MB, free: 8.754 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003134/0.02597, allocations: 489.7 kB / 348.7 MB, free: 8.133 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006839/0.02665, allocations: 0.6546 MB / 349.4 MB, free: 7.344 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.02666, allocations: 7.938 kB / 349.4 MB, free: 7.336 MB / 314.7 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.000746/0.0274, allocations: 0.7635 MB / 350.2 MB, free: 6.562 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.692e-05/0.02742, allocations: 8 kB / 350.2 MB, free: 6.555 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.027e-06/0.02743, allocations: 12.03 kB / 350.2 MB, free: 6.543 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001818/0.02761, allocations: 81.67 kB / 350.3 MB, free: 6.457 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002537/0.02786, allocations: 151.8 kB / 350.4 MB, free: 6.309 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001429/0.02929, allocations: 2.881 MB / 353.3 MB, free: 3.223 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002393/0.02953, allocations: 32.14 kB / 353.3 MB, free: 3.191 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.768e-05/0.02956, allocations: 36 kB / 353.4 MB, free: 3.156 MB / 314.7 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.0002214/0.02978, allocations: 264.7 kB / 353.6 MB, free: 2.891 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.742e-05/0.02985, allocations: 83.48 kB / 353.7 MB, free: 2.809 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005299/0.03038, allocations: 490.5 kB / 354.2 MB, free: 2.316 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.03038, allocations: 4 kB / 354.2 MB, free: 2.312 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.324e-06/0.03039, allocations: 0 / 354.2 MB, free: 2.312 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/0.03039, allocations: 7.922 kB / 354.2 MB, free: 2.305 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001139/0.03153, allocations: 1.194 MB / 355.4 MB, free: 1.043 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.03153, allocations: 3.938 kB / 355.4 MB, free: 1.039 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001584/0.03169, allocations: 75.84 kB / 355.5 MB, free: 0.9648 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001171/0.03181, allocations: 69.83 kB / 355.5 MB, free: 0.8906 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.768e-05/0.03183, allocations: 16 kB / 355.5 MB, free: 0.875 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001427/0.03325, allocations: 2.85 MB / 358.4 MB, free: 13.82 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.03325, allocations: 4.031 kB / 358.4 MB, free: 13.81 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006991/0.03395, allocations: 0.7708 MB / 359.2 MB, free: 13 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000147/0.0341, allocations: 115.5 kB / 359.3 MB, free: 12.88 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.462e-05/0.03415, allocations: 12 kB / 359.3 MB, free: 12.87 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001831/0.03433, allocations: 19.98 kB / 359.3 MB, free: 12.85 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.877e-05/0.03439, allocations: 36.08 kB / 359.4 MB, free: 12.82 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.485e-05/0.0344, allocations: 12 kB / 359.4 MB, free: 12.8 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004017/0.0348, allocations: 0.5029 MB / 359.9 MB, free: 12.3 MB / 330.7 MB Notification: Performance of sort global known variables: time 7e-08/0.0348, allocations: 0 / 359.9 MB, free: 12.3 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004693/0.03527, allocations: 211.9 kB / 360.1 MB, free: 12.1 MB / 330.7 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.0001848/0.03546, allocations: 131.2 kB / 360.2 MB, free: 11.96 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006843/0.03614, allocations: 0.6519 MB / 360.9 MB, free: 11.29 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.03614, allocations: 0 / 360.9 MB, free: 11.29 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000343/0.03649, allocations: 441.6 kB / 361.3 MB, free: 10.83 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005645/0.03705, allocations: 209 kB / 361.5 MB, free: 10.63 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001692/0.03874, allocations: 1.659 MB / 363.1 MB, free: 8.914 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003983/0.03914, allocations: 417.7 kB / 363.6 MB, free: 8.477 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.423e-05/0.03924, allocations: 56.5 kB / 363.6 MB, free: 8.422 MB / 330.7 MB Notification: Performance of SimCode: time 5.61e-07/0.03924, allocations: 0 / 363.6 MB, free: 8.422 MB / 330.7 MB Notification: Performance of Templates: time 0.01467/0.05391, allocations: 20.96 MB / 384.6 MB, free: 3.496 MB / 346.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_Start/DCSE_Start.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.1156840259209275]