Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001574/0.001574, allocations: 107.6 kB / 21.19 MB, free: 0.6484 MB / 14.72 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.001767/0.001767, allocations: 213.1 kB / 24.48 MB, free: 3.957 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.465/1.465, allocations: 230.6 MB / 258.2 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.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.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001564/0.001564, allocations: 55.92 kB / 379 MB, free: 2.434 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2575/0.2591, allocations: 53.36 MB / 432.3 MB, free: 6.684 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.01186/0.2709, allocations: 7.259 MB / 439.6 MB, free: 15.4 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005047/0.276, allocations: 2.57 MB / 442.2 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008256/0.2768, allocations: 31.88 kB / 442.2 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001429/0.2782, allocations: 0.5084 MB / 442.7 MB, free: 12.28 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001064/0.2793, allocations: 468.5 kB / 443.2 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000751/0.28, allocations: 363.1 kB / 443.5 MB, free: 11.47 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001696/0.2817, allocations: 1.503 MB / 445 MB, free: 9.957 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007437/0.2825, allocations: 428 kB / 445.5 MB, free: 9.516 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001036/0.2835, allocations: 0.5874 MB / 446 MB, free: 8.926 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001026/0.2845, allocations: 0.6026 MB / 446.6 MB, free: 8.32 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002847/0.2848, allocations: 140 kB / 446.8 MB, free: 8.184 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005085/0.2853, allocations: 176 kB / 446.9 MB, free: 8.012 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003925/0.2857, allocations: 282.9 kB / 447.2 MB, free: 7.734 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007717/0.2865, allocations: 0.5365 MB / 447.8 MB, free: 7.195 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002806/0.2893, allocations: 1.747 MB / 449.5 MB, free: 5.441 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.431e-06/0.2893, allocations: 0 / 449.5 MB, free: 5.441 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.2893, allocations: 0 / 449.5 MB, free: 5.441 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.566e-05/0.2894, allocations: 0 / 449.5 MB, free: 5.441 MB / 350.1 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.003929/0.2933, allocations: 1.465 MB / 451 MB, free: 3.941 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.195e-05/0.2933, allocations: 12.03 kB / 451 MB, free: 3.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009687/0.2943, allocations: 199.9 kB / 451.2 MB, free: 3.734 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002107/0.2964, allocations: 0.7174 MB / 451.9 MB, free: 2.988 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001614/0.2966, allocations: 77.94 kB / 452 MB, free: 2.91 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002511/0.2968, allocations: 99.95 kB / 452.1 MB, free: 2.812 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00279/0.2996, allocations: 1.059 MB / 453.1 MB, free: 1.688 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.399e-05/0.2997, allocations: 7.938 kB / 453.1 MB, free: 1.68 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001261/0.2998, allocations: 44 kB / 453.2 MB, free: 1.637 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.412e-05/0.2998, allocations: 24 kB / 453.2 MB, free: 1.613 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001871/0.3017, allocations: 0.6363 MB / 453.8 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008273/0.31, allocations: 3.548 MB / 457.4 MB, free: 13.23 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001549/0.3115, allocations: 407.9 kB / 457.8 MB, free: 12.82 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004979/0.312, allocations: 156.8 kB / 457.9 MB, free: 12.66 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.461e-05/0.3121, allocations: 4 kB / 457.9 MB, free: 12.66 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.196e-05/0.3121, allocations: 34.56 kB / 458 MB, free: 12.62 MB / 366.1 MB Notification: Performance of pre-optimization done (n=37): time 2.725e-06/0.3121, allocations: 4 kB / 458 MB, free: 12.61 MB / 366.1 MB Notification: Performance of matching and sorting (n=40): time 0.004446/0.3166, allocations: 1.181 MB / 459.2 MB, free: 11.4 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001275/0.3167, allocations: 136.5 kB / 459.3 MB, free: 11.23 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002254/0.3189, allocations: 0.8291 MB / 460.1 MB, free: 10.39 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.111e-05/0.319, allocations: 33.7 kB / 460.2 MB, free: 10.36 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008094/0.3198, allocations: 0.6086 MB / 460.8 MB, free: 9.738 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002439/0.3201, allocations: 162.7 kB / 460.9 MB, free: 9.578 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003688/0.3205, allocations: 138.6 kB / 461.1 MB, free: 9.434 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002596/0.3207, allocations: 334 kB / 461.4 MB, free: 9.102 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007449/0.3215, allocations: 172.8 kB / 461.6 MB, free: 8.93 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001217/0.3227, allocations: 0.5661 MB / 462.1 MB, free: 8.191 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001923/0.3246, allocations: 0.6867 MB / 462.8 MB, free: 7.359 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.065e-05/0.3246, allocations: 4 kB / 462.8 MB, free: 7.355 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002677/0.3273, allocations: 0.7432 MB / 463.6 MB, free: 6.602 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.427e-05/0.3273, allocations: 8 kB / 463.6 MB, free: 6.594 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.857e-05/0.3274, allocations: 12 kB / 463.6 MB, free: 6.582 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002538/0.3276, allocations: 33.52 kB / 463.6 MB, free: 6.547 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00117/0.3288, allocations: 175.7 kB / 463.8 MB, free: 6.375 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001871/0.3307, allocations: 1.264 MB / 465 MB, free: 5.012 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001248/0.3319, allocations: 39.94 kB / 465.1 MB, free: 4.973 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.771e-05/0.332, allocations: 36.16 kB / 465.1 MB, free: 4.938 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001079/0.3331, allocations: 361.9 kB / 465.5 MB, free: 4.578 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001062/0.3341, allocations: 0.5465 MB / 466 MB, free: 3.863 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001664/0.3358, allocations: 0.6714 MB / 466.7 MB, free: 3.047 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.076e-06/0.3358, allocations: 4 kB / 466.7 MB, free: 3.043 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.002508/0.3383, allocations: 0.7127 MB / 467.4 MB, free: 2.32 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.733e-05/0.3383, allocations: 12 kB / 467.4 MB, free: 2.309 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.946e-05/0.3384, allocations: 15.98 kB / 467.4 MB, free: 2.293 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000191/0.3386, allocations: 32.84 kB / 467.5 MB, free: 2.258 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00106/0.3396, allocations: 175.7 kB / 467.6 MB, free: 2.086 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001755/0.3414, allocations: 1.256 MB / 468.9 MB, free: 0.7305 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001223/0.3426, allocations: 40 kB / 468.9 MB, free: 0.6914 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.63e-05/0.3427, allocations: 40 kB / 469 MB, free: 0.6523 MB / 366.1 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.0004032/0.3431, allocations: 224 kB / 469.2 MB, free: 436 kB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003066/0.3434, allocations: 95.38 kB / 469.3 MB, free: 340 kB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001676/0.3451, allocations: 422.3 kB / 469.7 MB, free: 15.9 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.105e-05/0.3451, allocations: 8 kB / 469.7 MB, free: 15.89 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.262e-05/0.3451, allocations: 4 kB / 469.7 MB, free: 15.89 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.168e-05/0.3451, allocations: 3.984 kB / 469.7 MB, free: 15.89 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00363/0.3487, allocations: 1.141 MB / 470.9 MB, free: 14.69 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.892e-06/0.3487, allocations: 224 / 470.9 MB, free: 14.69 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007532/0.3495, allocations: 79.91 kB / 470.9 MB, free: 14.61 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001895/0.3497, allocations: 24.78 kB / 471 MB, free: 14.58 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.21e-05/0.3497, allocations: 12 kB / 471 MB, free: 14.57 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001742/0.3515, allocations: 1.237 MB / 472.2 MB, free: 13.23 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.477e-06/0.3515, allocations: 0 / 472.2 MB, free: 13.23 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002303/0.3538, allocations: 0.7113 MB / 472.9 MB, free: 12.48 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006551/0.3544, allocations: 127.4 kB / 473 MB, free: 12.36 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000186/0.3546, allocations: 16 kB / 473.1 MB, free: 12.34 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008204/0.3555, allocations: 19.98 kB / 473.1 MB, free: 12.32 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001682/0.3556, allocations: 35.83 kB / 473.1 MB, free: 12.29 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.275e-05/0.3557, allocations: 19.98 kB / 473.1 MB, free: 12.27 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001555/0.3572, allocations: 0.5498 MB / 473.7 MB, free: 11.72 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.3572, allocations: 0 / 473.7 MB, free: 11.72 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002259/0.3595, allocations: 344 kB / 474 MB, free: 11.39 MB / 382.1 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.0003371/0.3598, allocations: 119.1 kB / 474.1 MB, free: 11.26 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003113/0.3629, allocations: 0.9348 MB / 475.1 MB, free: 10.3 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.764e-06/0.3629, allocations: 4.125 kB / 475.1 MB, free: 10.3 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007952/0.3637, allocations: 282.4 kB / 475.3 MB, free: 10.01 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002439/0.3662, allocations: 214.1 kB / 475.6 MB, free: 9.801 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00597/0.3721, allocations: 1.865 MB / 477.4 MB, free: 7.879 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008611/0.373, allocations: 435.3 kB / 477.8 MB, free: 7.418 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003737/0.3734, allocations: 67.42 kB / 477.9 MB, free: 7.352 MB / 382.1 MB Notification: Performance of SimCode: time 2.224e-06/0.3734, allocations: 0 / 477.9 MB, free: 7.352 MB / 382.1 MB Notification: Performance of Templates: time 0.0443/0.4177, allocations: 17.05 MB / 495 MB, free: 6.336 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_CurrentControlled/DCPM_CurrentControlled.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 8.940155131014762]