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.0007798/0.0007798, allocations: 84 kB / 21.43 MB, free: 3.137 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.003763/0.003763, allocations: 141.6 kB / 24.68 MB, free: 8.891 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.8162/0.8162, 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.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 1.462e-06/1.462e-06, allocations: 3.938 kB / 319.7 MB, free: 5.848 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.631e-05/2.777e-05, allocations: 2.281 kB / 319.7 MB, free: 5.844 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.005811/0.005839, allocations: 7.24 MB / 326.9 MB, free: 14.57 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00377/0.009609, allocations: 2.547 MB / 329.5 MB, free: 12.01 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007868/0.0104, allocations: 31.81 kB / 329.5 MB, free: 11.98 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001139/0.01153, allocations: 0.516 MB / 330 MB, free: 11.46 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008818/0.01242, allocations: 488.2 kB / 330.5 MB, free: 10.98 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005845/0.013, allocations: 366.2 kB / 330.9 MB, free: 10.62 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001333/0.01433, allocations: 1.565 MB / 332.4 MB, free: 9.047 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005344/0.01487, allocations: 392 kB / 332.8 MB, free: 8.648 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008853/0.01575, allocations: 0.8573 MB / 333.7 MB, free: 7.789 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004576/0.01621, allocations: 438.6 kB / 334.1 MB, free: 7.359 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001298/0.01634, allocations: 136 kB / 334.2 MB, free: 7.227 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002333/0.01657, allocations: 183.9 kB / 334.4 MB, free: 7.047 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001297/0.0167, allocations: 286.8 kB / 334.7 MB, free: 6.766 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003146/0.01702, allocations: 458.8 kB / 335.1 MB, free: 6.316 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001264/0.01828, allocations: 1.733 MB / 336.9 MB, free: 4.578 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.01829, allocations: 0 / 336.9 MB, free: 4.578 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.422e-06/0.01829, allocations: 0 / 336.9 MB, free: 4.578 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.05e-05/0.01832, allocations: 0 / 336.9 MB, free: 4.578 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: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.001738/0.02006, allocations: 1.45 MB / 338.3 MB, free: 3.09 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.232e-05/0.0201, allocations: 12.92 kB / 338.3 MB, free: 3.078 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000351/0.02045, allocations: 196 kB / 338.5 MB, free: 2.887 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009064/0.02136, allocations: 0.7166 MB / 339.3 MB, free: 2.141 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.704e-05/0.02139, allocations: 74.38 kB / 339.3 MB, free: 2.07 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.516e-05/0.02149, allocations: 104.3 kB / 339.4 MB, free: 1.969 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001032/0.02252, allocations: 1.029 MB / 340.5 MB, free: 0.875 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.486e-05/0.02255, allocations: 4 kB / 340.5 MB, free: 0.8711 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.108e-05/0.0226, allocations: 40 kB / 340.5 MB, free: 0.832 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.547e-05/0.02261, allocations: 27.98 kB / 340.5 MB, free: 0.8047 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007386/0.02335, allocations: 0.6363 MB / 341.2 MB, free: 172 kB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003261/0.02661, allocations: 3.547 MB / 344.7 MB, free: 12.42 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006131/0.02722, allocations: 407.2 kB / 345.1 MB, free: 12.01 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001783/0.0274, allocations: 152.8 kB / 345.3 MB, free: 11.86 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.798e-05/0.02743, allocations: 8 kB / 345.3 MB, free: 11.85 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.275e-05/0.02745, allocations: 34.56 kB / 345.3 MB, free: 11.81 MB / 314.7 MB Notification: Performance of pre-optimization done (n=37): time 2.655e-06/0.02746, allocations: 0 / 345.3 MB, free: 11.81 MB / 314.7 MB Notification: Performance of matching and sorting (n=40): time 0.001677/0.02913, allocations: 1.18 MB / 346.5 MB, free: 10.59 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.3e-05/0.02919, allocations: 114.7 kB / 346.6 MB, free: 10.46 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007324/0.02992, allocations: 0.8291 MB / 347.4 MB, free: 9.621 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.547e-05/0.02994, allocations: 37.7 kB / 347.5 MB, free: 9.578 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002744/0.03022, allocations: 0.6086 MB / 348.1 MB, free: 8.961 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.887e-05/0.0303, allocations: 154.7 kB / 348.2 MB, free: 8.809 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000125/0.03042, allocations: 134.6 kB / 348.3 MB, free: 8.668 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.711e-05/0.03051, allocations: 338 kB / 348.7 MB, free: 8.332 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002043/0.03071, allocations: 176.7 kB / 348.8 MB, free: 8.156 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003498/0.03106, allocations: 0.5365 MB / 349.4 MB, free: 7.453 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005709/0.03163, allocations: 0.6904 MB / 350.1 MB, free: 6.617 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.03164, allocations: 4 kB / 350.1 MB, free: 6.613 MB / 314.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0007638/0.0324, allocations: 0.7435 MB / 350.8 MB, free: 5.859 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.977e-05/0.03242, allocations: 8 kB / 350.8 MB, free: 5.852 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.359e-05/0.03244, allocations: 15.94 kB / 350.8 MB, free: 5.836 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001301/0.03257, allocations: 28.86 kB / 350.9 MB, free: 5.805 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003182/0.03288, allocations: 175.7 kB / 351 MB, free: 5.633 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007205/0.0336, allocations: 1.268 MB / 352.3 MB, free: 4.266 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003078/0.03391, allocations: 31.98 kB / 352.3 MB, free: 4.234 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.775e-05/0.03394, allocations: 39.94 kB / 352.4 MB, free: 4.195 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000418/0.03436, allocations: 346.1 kB / 352.7 MB, free: 3.852 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003212/0.03468, allocations: 0.5325 MB / 353.3 MB, free: 3.156 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005096/0.03519, allocations: 0.6485 MB / 353.9 MB, free: 2.363 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.478e-06/0.03519, allocations: 7.938 kB / 353.9 MB, free: 2.355 MB / 314.7 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.0006743/0.03587, allocations: 0.7233 MB / 354.6 MB, free: 1.621 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.107e-05/0.03588, allocations: 12.91 kB / 354.6 MB, free: 1.609 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.585e-06/0.03589, allocations: 8 kB / 354.7 MB, free: 1.602 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.008e-05/0.03596, allocations: 36.84 kB / 354.7 MB, free: 1.562 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002724/0.03623, allocations: 163.8 kB / 354.9 MB, free: 1.402 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005645/0.03679, allocations: 1.268 MB / 356.1 MB, free: 36 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002814/0.03707, allocations: 32 kB / 356.1 MB, free: 4 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.16e-05/0.03712, allocations: 40.14 kB / 356.2 MB, free: 15.96 MB / 330.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.0001292/0.03725, allocations: 232 kB / 356.4 MB, free: 15.73 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.022e-05/0.03732, allocations: 91.39 kB / 356.5 MB, free: 15.64 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005131/0.03783, allocations: 426.3 kB / 356.9 MB, free: 15.21 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.998e-06/0.03783, allocations: 4 kB / 356.9 MB, free: 15.21 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.03784, allocations: 4 kB / 356.9 MB, free: 15.2 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.03784, allocations: 3.984 kB / 356.9 MB, free: 15.2 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001191/0.03903, allocations: 1.134 MB / 358.1 MB, free: 14 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.03904, allocations: 0 / 358.1 MB, free: 14 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001924/0.03923, allocations: 83.89 kB / 358.1 MB, free: 13.92 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.792e-05/0.0393, allocations: 29.06 kB / 358.2 MB, free: 13.89 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.847e-05/0.03931, allocations: 8 kB / 358.2 MB, free: 13.88 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005464/0.03986, allocations: 1.244 MB / 359.4 MB, free: 12.54 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.514e-06/0.03986, allocations: 3.938 kB / 359.4 MB, free: 12.53 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006242/0.04049, allocations: 0.711 MB / 360.1 MB, free: 11.78 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001543/0.04064, allocations: 119.4 kB / 360.3 MB, free: 11.66 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.763e-05/0.04069, allocations: 12 kB / 360.3 MB, free: 11.65 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001859/0.04088, allocations: 23.97 kB / 360.3 MB, free: 11.63 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.568e-05/0.04092, allocations: 27.89 kB / 360.3 MB, free: 11.6 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.344e-05/0.04094, allocations: 19.94 kB / 360.3 MB, free: 11.58 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004625/0.0414, allocations: 0.5459 MB / 360.9 MB, free: 11.04 MB / 330.7 MB Notification: Performance of sort global known variables: time 3e-08/0.0414, allocations: 0 / 360.9 MB, free: 11.04 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007236/0.04212, allocations: 348 kB / 361.2 MB, free: 10.7 MB / 330.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.0001922/0.04231, allocations: 139 kB / 361.4 MB, free: 10.55 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001003/0.04332, allocations: 0.9242 MB / 362.3 MB, free: 9.609 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.04332, allocations: 0 / 362.3 MB, free: 9.609 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002305/0.04355, allocations: 287.1 kB / 362.6 MB, free: 9.316 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006365/0.04419, allocations: 229.2 kB / 362.8 MB, free: 9.098 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001958/0.04614, allocations: 1.753 MB / 364.5 MB, free: 7.285 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002821/0.04643, allocations: 439.4 kB / 365 MB, free: 6.82 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001177/0.04654, allocations: 64.48 kB / 365 MB, free: 6.758 MB / 330.7 MB Notification: Performance of SimCode: time 1.182e-06/0.04654, allocations: 0 / 365 MB, free: 6.758 MB / 330.7 MB Notification: Performance of Templates: time 0.01416/0.06071, allocations: 17.04 MB / 382.1 MB, free: 5.758 MB / 346.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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.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.733619592152536]