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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=40000,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=40000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00104/0.00104, allocations: 114.3 kB / 17.75 MB, free: 5.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001012/0.001012, allocations: 189.3 kB / 18.67 MB, free: 4.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.316/1.316, allocations: 222.9 MB / 242.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009905/0.0009905, allocations: 39.94 kB / 352 MB, free: 3.223 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2147/0.2157, allocations: 49.45 MB / 401.4 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.008742/0.2245, allocations: 8.152 MB / 409.6 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004405/0.229, allocations: 2.699 MB / 412.3 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009048/0.2299, allocations: 31.88 kB / 412.3 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001548/0.2314, allocations: 0.5591 MB / 412.9 MB, free: 13.35 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001303/0.2328, allocations: 468.5 kB / 413.3 MB, free: 12.89 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008523/0.2336, allocations: 366.2 kB / 413.7 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001802/0.2354, allocations: 1.499 MB / 415.2 MB, free: 11.03 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009675/0.2364, allocations: 0.6088 MB / 415.8 MB, free: 10.39 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007716/0.2372, allocations: 0.5603 MB / 416.4 MB, free: 9.832 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008022/0.238, allocations: 0.6026 MB / 417 MB, free: 9.227 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002546/0.2383, allocations: 136 kB / 417.1 MB, free: 9.094 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004383/0.2387, allocations: 184 kB / 417.3 MB, free: 8.914 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002454/0.239, allocations: 290.8 kB / 417.6 MB, free: 8.629 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007179/0.2397, allocations: 0.6647 MB / 418.2 MB, free: 7.961 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001584/0.2413, allocations: 1.721 MB / 419.9 MB, free: 6.234 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.2413, allocations: 0 / 419.9 MB, free: 6.234 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.2413, allocations: 0 / 419.9 MB, free: 6.234 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.906e-05/0.2414, allocations: 0 / 419.9 MB, free: 6.234 MB / 334.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.002377/0.2438, allocations: 1.511 MB / 421.5 MB, free: 4.672 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.714e-05/0.2438, allocations: 8.031 kB / 421.5 MB, free: 4.664 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005866/0.2444, allocations: 183.3 kB / 421.6 MB, free: 4.484 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001182/0.2456, allocations: 0.7977 MB / 422.4 MB, free: 3.645 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.058e-05/0.2456, allocations: 77.94 kB / 422.5 MB, free: 3.566 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001304/0.2458, allocations: 107.9 kB / 422.6 MB, free: 3.461 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001537/0.2473, allocations: 0.9497 MB / 423.6 MB, free: 2.473 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.457e-05/0.2474, allocations: 7.906 kB / 423.6 MB, free: 2.465 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.167e-05/0.2475, allocations: 40 kB / 423.6 MB, free: 2.426 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.077e-05/0.2475, allocations: 27.98 kB / 423.6 MB, free: 2.398 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001203/0.2487, allocations: 0.6363 MB / 424.3 MB, free: 1.758 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005269/0.254, allocations: 4.072 MB / 428.4 MB, free: 13.46 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009964/0.255, allocations: 439.6 kB / 428.8 MB, free: 13.02 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002945/0.2553, allocations: 165.4 kB / 428.9 MB, free: 12.86 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.943e-05/0.2553, allocations: 7.984 kB / 428.9 MB, free: 12.85 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.486e-05/0.2554, allocations: 34.5 kB / 429 MB, free: 12.81 MB / 350.1 MB Notification: Performance of pre-optimization done (n=37): time 2.174e-06/0.2554, allocations: 0 / 429 MB, free: 12.81 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.002391/0.2578, allocations: 1.323 MB / 430.3 MB, free: 11.41 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.269e-05/0.2578, allocations: 110.8 kB / 430.4 MB, free: 11.28 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001159/0.259, allocations: 0.8937 MB / 431.3 MB, free: 10.36 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.584e-05/0.2591, allocations: 37.7 kB / 431.3 MB, free: 10.32 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000389/0.2594, allocations: 0.5914 MB / 431.9 MB, free: 9.719 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001152/0.2596, allocations: 145.9 kB / 432.1 MB, free: 9.574 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001852/0.2598, allocations: 138.5 kB / 432.2 MB, free: 9.434 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001117/0.2599, allocations: 337.9 kB / 432.5 MB, free: 9.098 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003363/0.2602, allocations: 172.8 kB / 432.7 MB, free: 8.926 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005328/0.2608, allocations: 493.7 kB / 433.2 MB, free: 8.289 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008651/0.2616, allocations: 0.6792 MB / 433.9 MB, free: 7.465 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.243e-06/0.2617, allocations: 7.938 kB / 433.9 MB, free: 7.457 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001241/0.2629, allocations: 0.7502 MB / 434.6 MB, free: 6.695 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.896e-05/0.2629, allocations: 8 kB / 434.6 MB, free: 6.688 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.564e-05/0.263, allocations: 12.66 kB / 434.7 MB, free: 6.676 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001482/0.2631, allocations: 36.84 kB / 434.7 MB, free: 6.637 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005686/0.2637, allocations: 167.7 kB / 434.9 MB, free: 6.473 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009709/0.2647, allocations: 1.39 MB / 436.2 MB, free: 4.941 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005477/0.2652, allocations: 43.83 kB / 436.3 MB, free: 4.898 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.009e-05/0.2653, allocations: 36 kB / 436.3 MB, free: 4.863 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005219/0.2658, allocations: 350.1 kB / 436.7 MB, free: 4.52 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004568/0.2663, allocations: 485.7 kB / 437.1 MB, free: 3.898 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007571/0.2671, allocations: 0.6639 MB / 437.8 MB, free: 3.09 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.991e-06/0.2671, allocations: 4 kB / 437.8 MB, free: 3.086 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.001111/0.2682, allocations: 0.7157 MB / 438.5 MB, free: 2.359 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.379e-05/0.2682, allocations: 12 kB / 438.5 MB, free: 2.348 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.591e-05/0.2682, allocations: 8 kB / 438.5 MB, free: 2.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.351e-05/0.2683, allocations: 36.84 kB / 438.6 MB, free: 2.301 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005293/0.2689, allocations: 163.8 kB / 438.7 MB, free: 2.141 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008815/0.2698, allocations: 1.39 MB / 440.1 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005274/0.2703, allocations: 44.05 kB / 440.2 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.221e-05/0.2704, allocations: 32 kB / 440.2 MB, free: 0.5352 MB / 350.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.0001736/0.2705, allocations: 235.9 kB / 440.4 MB, free: 304 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001239/0.2707, allocations: 90.88 kB / 440.5 MB, free: 212 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008318/0.2715, allocations: 431.2 kB / 440.9 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.009e-05/0.2715, allocations: 3.984 kB / 440.9 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.2715, allocations: 3.938 kB / 440.9 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002769/0.2718, allocations: 199.9 kB / 441.1 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001172/0.272, allocations: 7.938 kB / 441.2 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00039/0.2723, allocations: 27.97 kB / 441.2 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.682e-05/0.2724, allocations: 23.91 kB / 441.2 MB, free: 15.49 MB / 366.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0009925/0.2734, allocations: 469.9 kB / 441.7 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0009954/0.2744, allocations: 0.7302 MB / 442.4 MB, free: 14.28 MB / 366.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002487/0.2747, allocations: 148.5 kB / 442.5 MB, free: 14.14 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008261/0.2755, allocations: 0.6054 MB / 443.1 MB, free: 13.52 MB / 366.1 MB Notification: Performance of Backend: time 4.91e-07/0.2755, allocations: 0 / 443.1 MB, free: 13.52 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001875/0.2774, allocations: 0.9636 MB / 444.1 MB, free: 12.53 MB / 366.1 MB Notification: Performance of SimCode: time 0.003385/0.2808, allocations: 2.356 MB / 446.5 MB, free: 10.12 MB / 366.1 MB Notification: Performance of Templates: time 0.02242/0.3032, allocations: 12.98 MB / 459.4 MB, free: 13.26 MB / 382.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile (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) 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) Reference file matches