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.001334/0.001334, allocations: 108.6 kB / 21.18 MB, free: 0.7617 MB / 14.72 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.001438/0.001438, allocations: 189.2 kB / 24.48 MB, free: 4.164 MB / 14.72 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.441/1.441, allocations: 225.6 MB / 253.3 MB, free: 13.01 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001631/0.001631, allocations: 51.92 kB / 371.7 MB, free: 9.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2221/0.2237, allocations: 52.19 MB / 423.9 MB, free: 14.64 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.01054/0.2343, allocations: 8.239 MB / 432.1 MB, free: 6.367 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005016/0.2393, allocations: 2.715 MB / 434.9 MB, free: 3.645 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001044/0.2403, allocations: 31.81 kB / 434.9 MB, free: 3.613 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001757/0.2421, allocations: 0.5606 MB / 435.4 MB, free: 3.051 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001543/0.2436, allocations: 468.5 kB / 435.9 MB, free: 2.59 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001013/0.2446, allocations: 366.7 kB / 436.3 MB, free: 2.234 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002189/0.2468, allocations: 1.511 MB / 437.8 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007478/0.2476, allocations: 420 kB / 438.2 MB, free: 292 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008355/0.2484, allocations: 0.5758 MB / 438.8 MB, free: 15.71 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007693/0.2492, allocations: 0.5988 MB / 439.4 MB, free: 15.11 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001872/0.2494, allocations: 140 kB / 439.5 MB, free: 14.97 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003492/0.2497, allocations: 184 kB / 439.7 MB, free: 14.79 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002518/0.25, allocations: 290.9 kB / 440 MB, free: 14.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006474/0.2506, allocations: 0.6724 MB / 440.6 MB, free: 13.83 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002059/0.2527, allocations: 1.727 MB / 442.4 MB, free: 12.09 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.2527, allocations: 0 / 442.4 MB, free: 12.09 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.2527, allocations: 0 / 442.4 MB, free: 12.09 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.819e-05/0.2527, allocations: 0 / 442.4 MB, free: 12.09 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.002699/0.2554, allocations: 1.477 MB / 443.8 MB, free: 10.58 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.689e-05/0.2554, allocations: 12.03 kB / 443.9 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006438/0.2561, allocations: 188 kB / 444 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001373/0.2574, allocations: 0.7251 MB / 444.8 MB, free: 9.633 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.52e-05/0.2575, allocations: 73.94 kB / 444.8 MB, free: 9.559 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001451/0.2577, allocations: 104 kB / 444.9 MB, free: 9.457 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001619/0.2593, allocations: 0.9575 MB / 445.9 MB, free: 8.461 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.637e-05/0.2593, allocations: 7.938 kB / 445.9 MB, free: 8.453 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.683e-05/0.2594, allocations: 36 kB / 445.9 MB, free: 8.418 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.313e-05/0.2594, allocations: 24 kB / 446 MB, free: 8.395 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00184/0.2613, allocations: 0.6363 MB / 446.6 MB, free: 7.754 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007462/0.2687, allocations: 3.975 MB / 450.6 MB, free: 3.562 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001055/0.2698, allocations: 415 kB / 451 MB, free: 3.148 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003146/0.2701, allocations: 152.8 kB / 451.1 MB, free: 2.996 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.626e-05/0.2701, allocations: 11.92 kB / 451.1 MB, free: 2.984 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.341e-05/0.2702, allocations: 38.56 kB / 451.2 MB, free: 2.938 MB / 350.1 MB Notification: Performance of pre-optimization done (n=37): time 2.254e-06/0.2702, allocations: 0 / 451.2 MB, free: 2.938 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.002586/0.2727, allocations: 1.187 MB / 452.4 MB, free: 1.719 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.368e-05/0.2728, allocations: 106.8 kB / 452.5 MB, free: 1.59 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001327/0.2742, allocations: 0.8938 MB / 453.4 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.983e-05/0.2742, allocations: 33.7 kB / 453.4 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004978/0.2747, allocations: 0.6047 MB / 454 MB, free: 20 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001508/0.2748, allocations: 158.8 kB / 454.1 MB, free: 15.86 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002078/0.275, allocations: 138.6 kB / 454.3 MB, free: 15.71 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001567/0.2752, allocations: 334 kB / 454.6 MB, free: 15.38 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000363/0.2756, allocations: 172.8 kB / 454.8 MB, free: 15.21 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006306/0.2762, allocations: 0.4899 MB / 455.3 MB, free: 14.57 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001007/0.2772, allocations: 0.6791 MB / 455.9 MB, free: 13.74 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.464e-06/0.2772, allocations: 4 kB / 456 MB, free: 13.74 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001373/0.2786, allocations: 0.7432 MB / 456.7 MB, free: 12.99 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.312e-05/0.2786, allocations: 11.98 kB / 456.7 MB, free: 12.98 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.616e-05/0.2786, allocations: 15.94 kB / 456.7 MB, free: 12.96 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001599/0.2788, allocations: 33.33 kB / 456.8 MB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005975/0.2794, allocations: 179.7 kB / 456.9 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001185/0.2806, allocations: 1.283 MB / 458.2 MB, free: 11.36 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005704/0.2811, allocations: 35.98 kB / 458.2 MB, free: 11.32 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.041e-05/0.2812, allocations: 43.92 kB / 458.3 MB, free: 11.28 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006016/0.2818, allocations: 350.1 kB / 458.6 MB, free: 10.93 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005641/0.2824, allocations: 481.8 kB / 459.1 MB, free: 10.31 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009183/0.2833, allocations: 0.6637 MB / 459.8 MB, free: 9.504 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.695e-06/0.2833, allocations: 4 kB / 459.8 MB, free: 9.5 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.001258/0.2845, allocations: 0.7203 MB / 460.5 MB, free: 8.77 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.496e-05/0.2846, allocations: 8 kB / 460.5 MB, free: 8.762 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.217e-05/0.2846, allocations: 12 kB / 460.5 MB, free: 8.75 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001097/0.2847, allocations: 40.78 kB / 460.6 MB, free: 8.707 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005491/0.2852, allocations: 167.7 kB / 460.7 MB, free: 8.543 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001077/0.2863, allocations: 1.288 MB / 462 MB, free: 7.145 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005518/0.2869, allocations: 40.14 kB / 462 MB, free: 7.105 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.825e-05/0.2869, allocations: 35.94 kB / 462.1 MB, free: 7.07 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.0002135/0.2871, allocations: 232 kB / 462.3 MB, free: 6.836 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000158/0.2873, allocations: 99.39 kB / 462.4 MB, free: 6.738 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008926/0.2882, allocations: 431.2 kB / 462.8 MB, free: 6.305 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.611e-06/0.2882, allocations: 8 kB / 462.8 MB, free: 6.297 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.264e-06/0.2882, allocations: 0 / 462.8 MB, free: 6.297 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.648e-06/0.2882, allocations: 7.922 kB / 462.8 MB, free: 6.289 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002225/0.2904, allocations: 1.36 MB / 464.2 MB, free: 4.855 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/0.2904, allocations: 0 / 464.2 MB, free: 4.855 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003715/0.2908, allocations: 79.84 kB / 464.3 MB, free: 4.777 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.703e-05/0.2909, allocations: 24.84 kB / 464.3 MB, free: 4.75 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.716e-05/0.2909, allocations: 8 kB / 464.3 MB, free: 4.742 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001065/0.292, allocations: 1.275 MB / 465.6 MB, free: 3.352 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.292, allocations: 8.062 kB / 465.6 MB, free: 3.344 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001155/0.2931, allocations: 0.7185 MB / 466.3 MB, free: 2.586 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003004/0.2934, allocations: 131.4 kB / 466.4 MB, free: 2.457 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001123/0.2935, allocations: 8 kB / 466.4 MB, free: 2.449 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004123/0.294, allocations: 23.98 kB / 466.5 MB, free: 2.426 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.14e-05/0.294, allocations: 31.95 kB / 466.5 MB, free: 2.395 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.314e-05/0.2941, allocations: 11.94 kB / 466.5 MB, free: 2.383 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008935/0.2949, allocations: 0.6054 MB / 467.1 MB, free: 1.766 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2949, allocations: 0 / 467.1 MB, free: 1.766 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001189/0.2961, allocations: 355.9 kB / 467.5 MB, free: 1.418 MB / 366.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.0002063/0.2963, allocations: 130.8 kB / 467.6 MB, free: 1.285 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001711/0.2981, allocations: 0.9259 MB / 468.5 MB, free: 344 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.2981, allocations: 0 / 468.5 MB, free: 344 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004448/0.2985, allocations: 287.8 kB / 468.8 MB, free: 44 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001159/0.2997, allocations: 248.7 kB / 469 MB, free: 15.8 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003351/0.303, allocations: 1.866 MB / 470.9 MB, free: 13.88 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007567/0.3038, allocations: 1.021 MB / 471.9 MB, free: 12.82 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001862/0.304, allocations: 63.44 kB / 472 MB, free: 12.76 MB / 382.1 MB Notification: Performance of SimCode: time 5.01e-07/0.304, allocations: 0 / 472 MB, free: 12.76 MB / 382.1 MB Notification: Performance of Templates: time 0.0252/0.3292, allocations: 16.96 MB / 489 MB, free: 11.85 MB / 398.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_CurrentControlled/DCPM_CurrentControlled.csv","/var/lib/jenkins1/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: 9.380404548952356]