Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.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.001045/0.001045, allocations: 85.95 kB / 22.21 MB, free: 2.285 MB / 18.57 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.001031/0.001031, allocations: 166.3 kB / 25.6 MB, free: 8.445 MB / 18.57 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.033/1.033, allocations: 158.6 MB / 187.5 MB, free: 2.816 MB / 170.7 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: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|PID.I.y|dcpm.la.i|firstOrder.y|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|PID.I.y|dcpm.la.i|firstOrder.y|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.954e-06/1.954e-06, allocations: 0 / 251.5 MB, free: 7.223 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.018e-05/3.213e-05, allocations: 6.25 kB / 251.5 MB, free: 7.215 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.01021/0.01024, allocations: 7.868 MB / 259.4 MB, free: 15.3 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00576/0.016, allocations: 2.677 MB / 262 MB, free: 12.61 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000902/0.0169, allocations: 39.81 kB / 262.1 MB, free: 12.57 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00119/0.01809, allocations: 0.516 MB / 262.6 MB, free: 12.05 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001086/0.01918, allocations: 492.2 kB / 263.1 MB, free: 11.57 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006169/0.01979, allocations: 363.4 kB / 263.4 MB, free: 11.21 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001697/0.02149, allocations: 1.565 MB / 265 MB, free: 9.641 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00056/0.02205, allocations: 388 kB / 265.4 MB, free: 9.238 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001076/0.02313, allocations: 0.8651 MB / 266.2 MB, free: 8.371 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005735/0.0237, allocations: 470.5 kB / 266.7 MB, free: 7.91 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001621/0.02386, allocations: 136 kB / 266.8 MB, free: 7.777 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002833/0.02415, allocations: 175.9 kB / 267 MB, free: 7.605 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001521/0.0243, allocations: 298.8 kB / 267.3 MB, free: 7.312 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003961/0.02469, allocations: 454.8 kB / 267.7 MB, free: 6.867 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001122/0.02582, allocations: 0.9455 MB / 268.7 MB, free: 5.918 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.02582, allocations: 7.984 kB / 268.7 MB, free: 5.91 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.011e-06/0.02582, allocations: 0 / 268.7 MB, free: 5.91 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.612e-05/0.02585, allocations: 0 / 268.7 MB, free: 5.91 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.00167/0.02752, allocations: 1.585 MB / 270.3 MB, free: 4.285 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.831e-05/0.02756, allocations: 11.98 kB / 270.3 MB, free: 4.273 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004012/0.02796, allocations: 272 kB / 270.5 MB, free: 4.008 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007537/0.02871, allocations: 0.7239 MB / 271.3 MB, free: 3.254 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.49e-05/0.02876, allocations: 74.38 kB / 271.3 MB, free: 3.18 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.451e-05/0.02885, allocations: 96.38 kB / 271.4 MB, free: 3.086 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009904/0.02984, allocations: 0.774 MB / 272.2 MB, free: 2.242 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.45e-05/0.02987, allocations: 11.89 kB / 272.2 MB, free: 2.23 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.669e-05/0.02991, allocations: 40 kB / 272.3 MB, free: 2.191 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.665e-05/0.02993, allocations: 32 kB / 272.3 MB, free: 2.16 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003215/0.03025, allocations: 285.6 kB / 272.6 MB, free: 1.879 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003125/0.03338, allocations: 3.966 MB / 276.5 MB, free: 13.7 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003824/0.03376, allocations: 255.7 kB / 276.8 MB, free: 13.44 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.279e-05/0.03384, allocations: 76.25 kB / 276.9 MB, free: 13.36 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.36e-05/0.03387, allocations: 8 kB / 276.9 MB, free: 13.35 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.682e-05/0.03389, allocations: 57.06 kB / 276.9 MB, free: 13.29 MB / 266.7 MB Notification: Performance of pre-optimization done (n=37): time 2.415e-06/0.03389, allocations: 0 / 276.9 MB, free: 13.29 MB / 266.7 MB Notification: Performance of matching and sorting (n=40): time 0.001025/0.03492, allocations: 0.728 MB / 277.7 MB, free: 12.52 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.111e-05/0.03497, allocations: 106.8 kB / 277.8 MB, free: 12.39 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005949/0.03557, allocations: 0.8032 MB / 278.6 MB, free: 11.57 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.465e-05/0.03559, allocations: 29.7 kB / 278.6 MB, free: 11.54 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000537/0.03613, allocations: 0.6774 MB / 279.3 MB, free: 10.85 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.131e-05/0.03621, allocations: 158.7 kB / 279.4 MB, free: 10.69 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000131/0.03634, allocations: 148.1 kB / 279.6 MB, free: 10.54 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001224/0.03646, allocations: 0.5081 MB / 280.1 MB, free: 10.02 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.838e-05/0.03655, allocations: 71.62 kB / 280.1 MB, free: 9.949 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002817/0.03683, allocations: 0.5741 MB / 280.7 MB, free: 9.16 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004284/0.03726, allocations: 0.6408 MB / 281.4 MB, free: 8.32 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.03726, allocations: 0 / 281.4 MB, free: 8.32 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0005929/0.03786, allocations: 0.5708 MB / 281.9 MB, free: 7.738 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.138e-05/0.03788, allocations: 12 kB / 281.9 MB, free: 7.727 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.017e-05/0.03789, allocations: 8 kB / 281.9 MB, free: 7.719 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001108/0.038, allocations: 43.61 kB / 282 MB, free: 7.672 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003331/0.03833, allocations: 163.7 kB / 282.2 MB, free: 7.512 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008531/0.03919, allocations: 1.729 MB / 283.9 MB, free: 5.668 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002794/0.03947, allocations: 35.95 kB / 283.9 MB, free: 5.633 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.859e-05/0.03949, allocations: 28 kB / 283.9 MB, free: 5.605 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002211/0.03971, allocations: 204.8 kB / 284.1 MB, free: 5.402 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003163/0.04003, allocations: 0.5663 MB / 284.7 MB, free: 4.617 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007442/0.04078, allocations: 0.6451 MB / 285.4 MB, free: 3.773 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.028e-06/0.04078, allocations: 0 / 285.4 MB, free: 3.773 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.0005505/0.04133, allocations: 0.5821 MB / 285.9 MB, free: 3.18 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.019e-05/0.04134, allocations: 11.94 kB / 285.9 MB, free: 3.168 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.415e-06/0.04135, allocations: 12 kB / 286 MB, free: 3.156 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.478e-05/0.04142, allocations: 31.67 kB / 286 MB, free: 3.121 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002839/0.04171, allocations: 163.7 kB / 286.1 MB, free: 2.961 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006569/0.04236, allocations: 1.725 MB / 287.9 MB, free: 1.117 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002507/0.04261, allocations: 39.88 kB / 287.9 MB, free: 1.078 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.595e-05/0.04264, allocations: 32 kB / 287.9 MB, free: 1.047 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 1 (PID.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 89 * 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.0001456/0.04279, allocations: 315.8 kB / 288.3 MB, free: 0.7305 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.497e-05/0.04288, allocations: 111.5 kB / 288.4 MB, free: 0.6211 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003453/0.04323, allocations: 293.3 kB / 288.6 MB, free: 328 kB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.04323, allocations: 7.938 kB / 288.7 MB, free: 320 kB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.956e-06/0.04323, allocations: 0 / 288.7 MB, free: 320 kB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.459e-06/0.04324, allocations: 0 / 288.7 MB, free: 320 kB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001134/0.04437, allocations: 0.9473 MB / 289.6 MB, free: 15.3 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.29e-06/0.04438, allocations: 4.219 kB / 289.6 MB, free: 15.3 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002047/0.04458, allocations: 75.91 kB / 289.7 MB, free: 15.22 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.893e-05/0.04467, allocations: 27.61 kB / 289.7 MB, free: 15.19 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.641e-05/0.04469, allocations: 8 kB / 289.7 MB, free: 15.18 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007153/0.0454, allocations: 1.717 MB / 291.4 MB, free: 13.36 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.754e-06/0.0454, allocations: 4.125 kB / 291.4 MB, free: 13.35 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004753/0.04588, allocations: 0.5618 MB / 292 MB, free: 12.73 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001571/0.04604, allocations: 123.3 kB / 292.1 MB, free: 12.61 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.937e-05/0.04609, allocations: 12 kB / 292.1 MB, free: 12.6 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000171/0.04626, allocations: 19.98 kB / 292.2 MB, free: 12.58 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.268e-05/0.0463, allocations: 23.95 kB / 292.2 MB, free: 12.56 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.406e-05/0.04631, allocations: 15.98 kB / 292.2 MB, free: 12.54 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0005845/0.0469, allocations: 470.8 kB / 292.6 MB, free: 12.09 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.0469, allocations: 3.938 kB / 292.7 MB, free: 12.09 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0007935/0.04769, allocations: 344 kB / 293 MB, free: 11.75 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.w,dcpm.la.i,loadTorque.phi,firstOrder.y,PID.I.y) * 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 (39): * Single equations (assignments): 38 * 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.0001819/0.04787, allocations: 119.2 kB / 293.1 MB, free: 11.62 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0007588/0.04863, allocations: 0.8606 MB / 294 MB, free: 10.73 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.04864, allocations: 0 / 294 MB, free: 10.73 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001784/0.04881, allocations: 286 kB / 294.2 MB, free: 10.43 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006343/0.04945, allocations: 237.9 kB / 294.5 MB, free: 10.2 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002192/0.05164, allocations: 1.703 MB / 296.2 MB, free: 8.422 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001161/0.05176, allocations: 183.4 kB / 296.4 MB, free: 8.223 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0003012/0.05206, allocations: 122.8 kB / 296.5 MB, free: 8.098 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003517/0.05241, allocations: 282 kB / 296.8 MB, free: 7.82 MB / 282.7 MB Notification: Performance of SimCode: time 9.41e-07/0.05241, allocations: 0 / 296.8 MB, free: 7.82 MB / 282.7 MB Notification: Performance of Templates: time 0.01602/0.06843, allocations: 11.51 MB / 308.3 MB, free: 12.36 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_CurrentControlled/DCPM_CurrentControlled.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.174705491401255]