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.001886/0.001886, allocations: 103.6 kB / 21.18 MB, free: 0.6445 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.002222/0.002222, allocations: 209 kB / 24.48 MB, free: 3.938 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.475/1.475, 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.001599/0.001599, allocations: 51.91 kB / 379 MB, free: 2.434 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2469/0.2485, allocations: 53.35 MB / 432.3 MB, free: 6.848 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.009837/0.2583, allocations: 7.263 MB / 439.6 MB, free: 15.55 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005215/0.2636, allocations: 2.567 MB / 442.2 MB, free: 12.98 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001094/0.2647, allocations: 27.88 kB / 442.2 MB, free: 12.95 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001602/0.2663, allocations: 0.5084 MB / 442.7 MB, free: 12.44 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001347/0.2676, allocations: 476.5 kB / 443.2 MB, free: 11.97 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008185/0.2684, allocations: 362.7 kB / 443.5 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001878/0.2703, allocations: 1.503 MB / 445 MB, free: 10.11 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007041/0.271, allocations: 396 kB / 445.4 MB, free: 9.699 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008818/0.2719, allocations: 0.5797 MB / 446 MB, free: 9.117 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006918/0.2726, allocations: 0.5167 MB / 446.5 MB, free: 8.598 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001742/0.2728, allocations: 136 kB / 446.6 MB, free: 8.465 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003383/0.2731, allocations: 184 kB / 446.8 MB, free: 8.285 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002394/0.2733, allocations: 290.9 kB / 447.1 MB, free: 8 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005318/0.2739, allocations: 0.5287 MB / 447.6 MB, free: 7.469 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001959/0.2758, allocations: 1.743 MB / 449.4 MB, free: 5.719 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.2758, allocations: 0 / 449.4 MB, free: 5.719 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.637e-06/0.2758, allocations: 7.984 kB / 449.4 MB, free: 5.711 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.813e-05/0.2758, allocations: 0 / 449.4 MB, free: 5.711 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.002605/0.2785, allocations: 1.465 MB / 450.8 MB, free: 4.211 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.638e-05/0.2785, allocations: 12.03 kB / 450.9 MB, free: 4.199 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006362/0.2791, allocations: 192 kB / 451 MB, free: 4.012 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00137/0.2805, allocations: 0.7213 MB / 451.8 MB, free: 3.262 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.301e-05/0.2806, allocations: 73.94 kB / 451.8 MB, free: 3.188 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001483/0.2807, allocations: 104 kB / 451.9 MB, free: 3.086 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001703/0.2824, allocations: 1.059 MB / 453 MB, free: 1.961 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.802e-05/0.2825, allocations: 7.938 kB / 453 MB, free: 1.953 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.293e-05/0.2825, allocations: 44 kB / 453.1 MB, free: 1.91 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.645e-05/0.2826, allocations: 27.98 kB / 453.1 MB, free: 1.883 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001254/0.2838, allocations: 0.6324 MB / 453.7 MB, free: 1.25 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005307/0.2891, allocations: 3.544 MB / 457.3 MB, free: 13.5 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00106/0.2902, allocations: 414.3 kB / 457.7 MB, free: 13.09 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003067/0.2905, allocations: 155.4 kB / 457.8 MB, free: 12.94 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.22e-05/0.2905, allocations: 4 kB / 457.8 MB, free: 12.94 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.646e-05/0.2906, allocations: 42.55 kB / 457.9 MB, free: 12.89 MB / 366.1 MB Notification: Performance of pre-optimization done (n=37): time 2.765e-06/0.2906, allocations: 0 / 457.9 MB, free: 12.89 MB / 366.1 MB Notification: Performance of matching and sorting (n=40): time 0.002545/0.2931, allocations: 1.185 MB / 459 MB, free: 11.67 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001038/0.2932, allocations: 132.5 kB / 459.2 MB, free: 11.51 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001172/0.2944, allocations: 0.8292 MB / 460 MB, free: 10.67 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.785e-05/0.2944, allocations: 29.7 kB / 460 MB, free: 10.63 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004748/0.2949, allocations: 0.6164 MB / 460.6 MB, free: 10.01 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001316/0.295, allocations: 158.7 kB / 460.8 MB, free: 9.852 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002096/0.2952, allocations: 138.6 kB / 460.9 MB, free: 9.707 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001562/0.2954, allocations: 337.9 kB / 461.3 MB, free: 9.371 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003525/0.2957, allocations: 172.8 kB / 461.4 MB, free: 9.199 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006643/0.2964, allocations: 0.57 MB / 462 MB, free: 8.453 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001039/0.2975, allocations: 0.6828 MB / 462.7 MB, free: 7.625 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.415e-06/0.2975, allocations: 4 kB / 462.7 MB, free: 7.621 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001425/0.2989, allocations: 0.7432 MB / 463.4 MB, free: 6.867 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.624e-05/0.2989, allocations: 8 kB / 463.4 MB, free: 6.859 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.742e-05/0.2989, allocations: 12 kB / 463.5 MB, free: 6.848 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001812/0.2991, allocations: 29.47 kB / 463.5 MB, free: 6.816 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005956/0.2997, allocations: 179.7 kB / 463.7 MB, free: 6.641 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001164/0.3009, allocations: 1.268 MB / 464.9 MB, free: 5.273 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006549/0.3015, allocations: 39.94 kB / 465 MB, free: 5.234 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.12e-05/0.3016, allocations: 36.16 kB / 465 MB, free: 5.199 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006359/0.3022, allocations: 365.9 kB / 465.4 MB, free: 4.836 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005932/0.3028, allocations: 0.5543 MB / 465.9 MB, free: 4.113 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009068/0.3037, allocations: 0.6559 MB / 466.6 MB, free: 3.312 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.085e-06/0.3037, allocations: 8 kB / 466.6 MB, free: 3.305 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.001316/0.305, allocations: 0.7126 MB / 467.3 MB, free: 2.582 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.56e-05/0.305, allocations: 16.03 kB / 467.3 MB, free: 2.566 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.309e-05/0.3051, allocations: 12 kB / 467.3 MB, free: 2.555 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001088/0.3052, allocations: 32.84 kB / 467.3 MB, free: 2.52 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005268/0.3057, allocations: 163.7 kB / 467.5 MB, free: 2.359 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001138/0.3068, allocations: 1.256 MB / 468.8 MB, free: 1.004 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000705/0.3075, allocations: 40.11 kB / 468.8 MB, free: 0.9648 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.43e-05/0.3076, allocations: 39.98 kB / 468.8 MB, free: 0.9258 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.0002698/0.3079, allocations: 230.3 kB / 469.1 MB, free: 0.6953 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001573/0.308, allocations: 91.38 kB / 469.2 MB, free: 0.6055 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001016/0.309, allocations: 422.4 kB / 469.6 MB, free: 180 kB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.462e-06/0.309, allocations: 8 kB / 469.6 MB, free: 172 kB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.357e-06/0.309, allocations: 96 / 469.6 MB, free: 172 kB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.227e-06/0.3091, allocations: 7.969 kB / 469.6 MB, free: 164 kB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002167/0.3112, allocations: 1.141 MB / 470.7 MB, free: 14.96 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.115e-06/0.3112, allocations: 8 kB / 470.7 MB, free: 14.95 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004054/0.3116, allocations: 84.11 kB / 470.8 MB, free: 14.87 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001008/0.3117, allocations: 28.78 kB / 470.8 MB, free: 14.84 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.198e-05/0.3118, allocations: 8 kB / 470.9 MB, free: 14.83 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00109/0.3129, allocations: 1.241 MB / 472.1 MB, free: 13.49 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.897e-06/0.3129, allocations: 4.031 kB / 472.1 MB, free: 13.48 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001261/0.3141, allocations: 0.7112 MB / 472.8 MB, free: 12.73 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003422/0.3145, allocations: 115.4 kB / 472.9 MB, free: 12.62 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001377/0.3146, allocations: 19.98 kB / 472.9 MB, free: 12.6 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004418/0.315, allocations: 19.98 kB / 473 MB, free: 12.58 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.634e-05/0.3151, allocations: 31.83 kB / 473 MB, free: 12.55 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.882e-05/0.3152, allocations: 20 kB / 473 MB, free: 12.53 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008812/0.316, allocations: 0.5459 MB / 473.6 MB, free: 11.99 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.316, allocations: 0 / 473.6 MB, free: 11.99 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001367/0.3174, allocations: 344 kB / 473.9 MB, free: 11.66 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.0002292/0.3176, allocations: 127.1 kB / 474 MB, free: 11.52 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001967/0.3196, allocations: 0.931 MB / 474.9 MB, free: 10.57 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.731e-06/0.3196, allocations: 4 kB / 475 MB, free: 10.57 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004853/0.3201, allocations: 282.4 kB / 475.2 MB, free: 10.28 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001348/0.3214, allocations: 216.8 kB / 475.4 MB, free: 10.07 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003858/0.3253, allocations: 1.862 MB / 477.3 MB, free: 8.145 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005713/0.3259, allocations: 431.4 kB / 477.7 MB, free: 7.688 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002169/0.3261, allocations: 59.44 kB / 477.8 MB, free: 7.629 MB / 382.1 MB Notification: Performance of SimCode: time 7.32e-07/0.3261, allocations: 0 / 477.8 MB, free: 7.629 MB / 382.1 MB Notification: Performance of Templates: time 0.0279/0.354, allocations: 17.07 MB / 494.8 MB, free: 6.605 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: 9.221042084041983]