Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.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.001206/0.001206, allocations: 78.97 kB / 21.42 MB, free: 3.078 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.001349/0.001349, allocations: 148.9 kB / 24.81 MB, free: 9.27 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 1.01/1.01, allocations: 173.3 MB / 201.4 MB, free: 9.23 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.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_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.434e-06/2.434e-06, allocations: 0 / 268.4 MB, free: 6.207 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.536e-05/2.779e-05, allocations: 2.312 kB / 268.4 MB, free: 6.203 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.007208/0.007236, allocations: 7.889 MB / 276.3 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004067/0.0113, allocations: 2.633 MB / 278.9 MB, free: 11.63 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006522/0.01195, allocations: 35.81 kB / 279 MB, free: 11.59 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001161/0.01312, allocations: 0.5198 MB / 279.5 MB, free: 11.07 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007767/0.01389, allocations: 488.2 kB / 280 MB, free: 10.59 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005429/0.01444, allocations: 363.4 kB / 280.3 MB, free: 10.23 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001354/0.01579, allocations: 1.561 MB / 281.9 MB, free: 8.664 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009427/0.01673, allocations: 392 kB / 282.3 MB, free: 8.262 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000866/0.0176, allocations: 0.869 MB / 283.1 MB, free: 7.391 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005202/0.01812, allocations: 462.5 kB / 283.6 MB, free: 6.938 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000156/0.01827, allocations: 136 kB / 283.7 MB, free: 6.805 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002562/0.01853, allocations: 179.9 kB / 283.9 MB, free: 6.629 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001307/0.01866, allocations: 286.8 kB / 284.2 MB, free: 6.348 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002854/0.01895, allocations: 458.8 kB / 284.6 MB, free: 5.898 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009287/0.01988, allocations: 0.9572 MB / 285.6 MB, free: 4.938 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.01988, allocations: 0 / 285.6 MB, free: 4.938 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.42e-07/0.01988, allocations: 0 / 285.6 MB, free: 4.938 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.083e-05/0.0199, allocations: 0 / 285.6 MB, free: 4.938 MB / 266.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.00146/0.02136, allocations: 1.577 MB / 287.2 MB, free: 3.32 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.409e-05/0.0214, allocations: 12.86 kB / 287.2 MB, free: 3.309 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003724/0.02177, allocations: 272 kB / 287.4 MB, free: 3.043 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006633/0.02243, allocations: 0.7122 MB / 288.1 MB, free: 2.297 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.908e-05/0.02247, allocations: 74.38 kB / 288.2 MB, free: 2.223 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.615e-05/0.02256, allocations: 100.4 kB / 288.3 MB, free: 2.125 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006663/0.02322, allocations: 0.7779 MB / 289.1 MB, free: 1.277 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.187e-05/0.02324, allocations: 7.891 kB / 289.1 MB, free: 1.27 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.593e-05/0.02329, allocations: 47.98 kB / 289.2 MB, free: 1.223 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.572e-05/0.02331, allocations: 24 kB / 289.2 MB, free: 1.199 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005578/0.02386, allocations: 277.6 kB / 289.4 MB, free: 0.9258 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.108/0.1319, allocations: 3.966 MB / 293.4 MB, free: 25.89 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004124/0.1323, allocations: 254.6 kB / 293.7 MB, free: 25.85 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.009e-05/0.1324, allocations: 74.47 kB / 293.7 MB, free: 25.84 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.684e-05/0.1324, allocations: 9.953 kB / 293.7 MB, free: 25.84 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.734e-05/0.1324, allocations: 41.88 kB / 293.8 MB, free: 25.79 MB / 266.7 MB Notification: Performance of pre-optimization done (n=37): time 2.434e-06/0.1324, allocations: 5.047 kB / 293.8 MB, free: 25.79 MB / 266.7 MB Notification: Performance of matching and sorting (n=40): time 0.001097/0.1335, allocations: 0.731 MB / 294.5 MB, free: 25.53 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.513e-05/0.1336, allocations: 107.8 kB / 294.6 MB, free: 25.4 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006254/0.1342, allocations: 0.7927 MB / 295.4 MB, free: 25.21 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.924e-05/0.1342, allocations: 37.03 kB / 295.5 MB, free: 25.18 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002569/0.1345, allocations: 0.6712 MB / 296.1 MB, free: 24.88 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.925e-05/0.1345, allocations: 153.8 kB / 296.3 MB, free: 24.8 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001233/0.1347, allocations: 155 kB / 296.4 MB, free: 24.76 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.585e-05/0.1347, allocations: 0.5043 MB / 296.9 MB, free: 24.28 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.381e-05/0.1348, allocations: 75.44 kB / 297 MB, free: 24.27 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002189/0.135, allocations: 0.5674 MB / 297.6 MB, free: 23.61 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003449/0.1354, allocations: 0.6399 MB / 298.2 MB, free: 23.05 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.219e-06/0.1354, allocations: 3.344 kB / 298.2 MB, free: 23.05 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0005881/0.136, allocations: 0.5798 MB / 298.8 MB, free: 22.95 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.757e-05/0.136, allocations: 10.44 kB / 298.8 MB, free: 22.95 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.281e-05/0.136, allocations: 10.38 kB / 298.8 MB, free: 22.95 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001004/0.1361, allocations: 40.88 kB / 298.9 MB, free: 22.93 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003148/0.1364, allocations: 169.1 kB / 299 MB, free: 22.93 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005295/0.1369, allocations: 1.721 MB / 300.7 MB, free: 21.23 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002965/0.1372, allocations: 39.53 kB / 300.8 MB, free: 21.22 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.019e-05/0.1373, allocations: 30.41 kB / 300.8 MB, free: 21.22 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002/0.1375, allocations: 205.6 kB / 301 MB, free: 21.09 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002685/0.1377, allocations: 0.5729 MB / 301.6 MB, free: 20.45 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003523/0.1381, allocations: 0.6227 MB / 302.2 MB, free: 19.89 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.07e-06/0.1381, allocations: 7.438 kB / 302.2 MB, free: 19.88 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.0006171/0.1387, allocations: 0.5722 MB / 302.8 MB, free: 19.78 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.233e-05/0.1387, allocations: 14.03 kB / 302.8 MB, free: 19.77 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.001e-05/0.1387, allocations: 10.98 kB / 302.8 MB, free: 19.77 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.748e-05/0.1388, allocations: 36.73 kB / 302.8 MB, free: 19.76 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003021/0.1391, allocations: 161.9 kB / 303 MB, free: 19.75 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004322/0.1395, allocations: 1.735 MB / 304.7 MB, free: 18.04 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002749/0.1398, allocations: 33.27 kB / 304.8 MB, free: 18.04 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.305e-05/0.1398, allocations: 33.45 kB / 304.8 MB, free: 18.04 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.0001262/0.14, allocations: 324.4 kB / 305.1 MB, free: 17.75 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.862e-05/0.1401, allocations: 101.9 kB / 305.2 MB, free: 17.7 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003371/0.1404, allocations: 284.7 kB / 305.5 MB, free: 17.64 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.027e-06/0.1404, allocations: 3.5 kB / 305.5 MB, free: 17.64 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.495e-06/0.1404, allocations: 4.062 kB / 305.5 MB, free: 17.64 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.941e-06/0.1404, allocations: 3.375 kB / 305.5 MB, free: 17.64 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00103/0.1414, allocations: 0.9557 MB / 306.5 MB, free: 17.24 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.898e-06/0.1414, allocations: 5.062 kB / 306.5 MB, free: 17.24 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001901/0.1416, allocations: 72.16 kB / 306.5 MB, free: 17.23 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.231e-05/0.1417, allocations: 32.53 kB / 306.6 MB, free: 17.21 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.858e-05/0.1417, allocations: 13.5 kB / 306.6 MB, free: 17.21 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000403/0.1421, allocations: 1.708 MB / 308.3 MB, free: 15.5 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.1421, allocations: 3 kB / 308.3 MB, free: 15.5 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004317/0.1425, allocations: 0.5783 MB / 308.9 MB, free: 15.14 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001444/0.1427, allocations: 119.9 kB / 309 MB, free: 15.1 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.826e-05/0.1427, allocations: 14 kB / 309 MB, free: 15.1 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001769/0.1429, allocations: 17.16 kB / 309 MB, free: 15.1 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.804e-05/0.143, allocations: 31.19 kB / 309.1 MB, free: 15.09 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.421e-05/0.143, allocations: 10.56 kB / 309.1 MB, free: 15.09 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003586/0.1433, allocations: 466.6 kB / 309.5 MB, free: 14.96 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1433, allocations: 0 / 309.5 MB, free: 14.96 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0008128/0.1442, allocations: 351 kB / 309.9 MB, free: 14.96 MB / 266.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.0001541/0.1443, allocations: 128.6 kB / 310 MB, free: 14.86 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007183/0.145, allocations: 0.8546 MB / 310.8 MB, free: 14.41 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.145, allocations: 0 / 310.8 MB, free: 14.41 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001656/0.1452, allocations: 287.1 kB / 311.1 MB, free: 14.21 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006368/0.1458, allocations: 237.3 kB / 311.4 MB, free: 14.15 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001921/0.1477, allocations: 1.691 MB / 313 MB, free: 13.15 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.626e-05/0.1478, allocations: 174.8 kB / 313.2 MB, free: 13.08 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002816/0.1481, allocations: 113.5 kB / 313.3 MB, free: 13.05 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003036/0.1484, allocations: 286.1 kB / 313.6 MB, free: 12.97 MB / 266.7 MB Notification: Performance of SimCode: time 6.91e-07/0.1484, allocations: 4 kB / 313.6 MB, free: 12.97 MB / 266.7 MB Notification: Performance of Templates: time 0.01373/0.1622, allocations: 11.49 MB / 325.1 MB, free: 3.496 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/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.0685602664016187]