Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|PID.I.y|dcpm.la.i|firstOrder.y|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|PID.I.y|dcpm.la.i|firstOrder.y|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001051/0.001051, allocations: 115.6 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00111/0.00111, allocations: 204.9 kB / 19.4 MB, free: 3.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.229/1.229, allocations: 227.4 MB / 247.6 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0011/0.0011, allocations: 63.88 kB / 359.4 MB, free: 12.9 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2252/0.2263, allocations: 50.54 MB / 409.9 MB, free: 1.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.007898/0.2342, allocations: 8.185 MB / 418.1 MB, free: 9.359 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003768/0.238, allocations: 2.723 MB / 420.8 MB, free: 6.629 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004688/0.2385, allocations: 35.88 kB / 420.9 MB, free: 6.594 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001077/0.2396, allocations: 0.5278 MB / 421.4 MB, free: 6.062 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006937/0.2403, allocations: 440.4 kB / 421.8 MB, free: 5.629 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000563/0.2409, allocations: 367.5 kB / 422.2 MB, free: 5.27 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001157/0.242, allocations: 1.499 MB / 423.7 MB, free: 3.766 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006757/0.2427, allocations: 0.61 MB / 424.3 MB, free: 3.129 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005489/0.2433, allocations: 0.5641 MB / 424.9 MB, free: 2.562 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005284/0.2438, allocations: 0.5988 MB / 425.5 MB, free: 1.961 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001417/0.244, allocations: 136 kB / 425.6 MB, free: 1.828 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002572/0.2442, allocations: 183.9 kB / 425.8 MB, free: 1.648 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001703/0.2444, allocations: 286.9 kB / 426.1 MB, free: 1.367 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004536/0.2449, allocations: 0.6685 MB / 426.7 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00133/0.2462, allocations: 1.721 MB / 428.5 MB, free: 14.97 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.858e-06/0.2462, allocations: 0 / 428.5 MB, free: 14.97 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.2462, allocations: 0 / 428.5 MB, free: 14.97 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.315e-05/0.2462, allocations: 4 kB / 428.5 MB, free: 14.96 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.002048/0.2483, allocations: 1.507 MB / 430 MB, free: 13.41 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.198e-05/0.2483, allocations: 16.03 kB / 430 MB, free: 13.39 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005283/0.2489, allocations: 183.2 kB / 430.2 MB, free: 13.21 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00111/0.25, allocations: 0.7939 MB / 431 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.805e-05/0.2501, allocations: 77.94 kB / 431 MB, free: 12.3 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001169/0.2502, allocations: 96 kB / 431.1 MB, free: 12.2 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001336/0.2515, allocations: 0.9623 MB / 432.1 MB, free: 11.2 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.292e-05/0.2516, allocations: 11.84 kB / 432.1 MB, free: 11.19 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.137e-05/0.2516, allocations: 40 kB / 432.1 MB, free: 11.15 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.791e-05/0.2517, allocations: 24 kB / 432.2 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00104/0.2527, allocations: 0.6402 MB / 432.8 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00433/0.257, allocations: 4.076 MB / 436.9 MB, free: 6.184 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008978/0.258, allocations: 429.4 kB / 437.3 MB, free: 5.758 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002572/0.2582, allocations: 160.8 kB / 437.4 MB, free: 5.598 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.065e-05/0.2583, allocations: 8 kB / 437.5 MB, free: 5.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.125e-05/0.2583, allocations: 34.56 kB / 437.5 MB, free: 5.547 MB / 350.1 MB Notification: Performance of pre-optimization done (n=37): time 1.944e-06/0.2583, allocations: 3.938 kB / 437.5 MB, free: 5.543 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.002065/0.2604, allocations: 1.323 MB / 438.8 MB, free: 4.148 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.029e-05/0.2604, allocations: 132.5 kB / 438.9 MB, free: 3.988 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009661/0.2614, allocations: 0.8976 MB / 439.8 MB, free: 3.066 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.546e-05/0.2615, allocations: 29.7 kB / 439.9 MB, free: 3.031 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003432/0.2618, allocations: 0.5876 MB / 440.5 MB, free: 2.434 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.666e-05/0.2619, allocations: 150 kB / 440.6 MB, free: 2.285 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001617/0.2621, allocations: 138.5 kB / 440.7 MB, free: 2.145 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.773e-05/0.2622, allocations: 334 kB / 441.1 MB, free: 1.812 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002919/0.2625, allocations: 176.8 kB / 441.2 MB, free: 1.637 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004573/0.2629, allocations: 0.4907 MB / 441.7 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007649/0.2637, allocations: 0.6867 MB / 442.4 MB, free: 160 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/0.2637, allocations: 4 kB / 442.4 MB, free: 156 kB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001063/0.2648, allocations: 0.7467 MB / 443.2 MB, free: 15.39 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.933e-05/0.2648, allocations: 14.97 kB / 443.2 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.107e-05/0.2648, allocations: 8 kB / 443.2 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001326/0.265, allocations: 36.86 kB / 443.2 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005004/0.2655, allocations: 171.7 kB / 443.4 MB, free: 15.17 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008569/0.2664, allocations: 1.387 MB / 444.8 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004607/0.2668, allocations: 44.05 kB / 444.8 MB, free: 13.6 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.78e-05/0.2669, allocations: 32 kB / 444.9 MB, free: 13.57 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004611/0.2673, allocations: 350.1 kB / 445.2 MB, free: 13.22 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004123/0.2678, allocations: 482.5 kB / 445.7 MB, free: 12.6 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006824/0.2685, allocations: 0.6638 MB / 446.3 MB, free: 11.79 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.829e-06/0.2685, allocations: 4 kB / 446.3 MB, free: 11.79 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.0009528/0.2694, allocations: 0.7196 MB / 447.1 MB, free: 11.06 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.471e-05/0.2695, allocations: 20.2 kB / 447.1 MB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.718e-06/0.2695, allocations: 15.94 kB / 447.1 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.386e-05/0.2695, allocations: 28.8 kB / 447.1 MB, free: 10.99 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004816/0.27, allocations: 171.7 kB / 447.3 MB, free: 10.82 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007737/0.2708, allocations: 1.379 MB / 448.7 MB, free: 9.305 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004605/0.2713, allocations: 35.89 kB / 448.7 MB, free: 9.27 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.854e-05/0.2713, allocations: 40 kB / 448.7 MB, free: 9.23 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.0001471/0.2715, allocations: 236.1 kB / 449 MB, free: 8.992 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001126/0.2716, allocations: 94.86 kB / 449.1 MB, free: 8.898 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007245/0.2723, allocations: 435.4 kB / 449.5 MB, free: 8.465 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.2724, allocations: 8 kB / 449.5 MB, free: 8.457 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.114e-06/0.2724, allocations: 0 / 449.5 MB, free: 8.457 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.51e-06/0.2724, allocations: 7.938 kB / 449.5 MB, free: 8.449 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00172/0.2741, allocations: 1.384 MB / 450.9 MB, free: 6.988 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.772e-06/0.2741, allocations: 3.984 kB / 450.9 MB, free: 6.984 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003245/0.2745, allocations: 71.91 kB / 451 MB, free: 6.914 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.923e-05/0.2745, allocations: 28.78 kB / 451 MB, free: 6.883 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.56e-05/0.2746, allocations: 12 kB / 451 MB, free: 6.871 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007533/0.2753, allocations: 1.367 MB / 452.4 MB, free: 5.363 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.2753, allocations: 0 / 452.4 MB, free: 5.363 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009465/0.2763, allocations: 0.7067 MB / 453.1 MB, free: 4.617 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002706/0.2766, allocations: 207.9 kB / 453.3 MB, free: 4.395 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.353e-05/0.2767, allocations: 12 kB / 453.3 MB, free: 4.383 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003642/0.277, allocations: 19.98 kB / 453.3 MB, free: 4.363 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.134e-05/0.2771, allocations: 39.89 kB / 453.3 MB, free: 4.324 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.248e-05/0.2771, allocations: 12 kB / 453.4 MB, free: 4.312 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007254/0.2779, allocations: 0.6054 MB / 454 MB, free: 3.695 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.2779, allocations: 0 / 454 MB, free: 3.695 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001068/0.279, allocations: 355.9 kB / 454.3 MB, free: 3.348 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.000191/0.2792, allocations: 127.1 kB / 454.4 MB, free: 3.211 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001366/0.2805, allocations: 0.9736 MB / 455.4 MB, free: 2.215 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.2805, allocations: 0 / 455.4 MB, free: 2.215 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003575/0.2809, allocations: 286.4 kB / 455.7 MB, free: 1.922 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009989/0.2819, allocations: 239.1 kB / 455.9 MB, free: 1.695 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002501/0.2844, allocations: 1.834 MB / 457.8 MB, free: 15.8 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004709/0.2849, allocations: 1.025 MB / 458.8 MB, free: 14.75 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001485/0.2851, allocations: 67.38 kB / 458.9 MB, free: 14.68 MB / 382.1 MB Notification: Performance of SimCode: time 4.21e-07/0.2851, allocations: 0 / 458.9 MB, free: 14.68 MB / 382.1 MB Notification: Performance of Templates: time 0.01752/0.3026, allocations: 17.06 MB / 475.9 MB, free: 13.65 MB / 398.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches