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.001442/0.001442, allocations: 112.1 kB / 18.46 MB, free: 4.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001851/0.001851, allocations: 206.8 kB / 19.41 MB, free: 3.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.393/1.393, allocations: 227.4 MB / 247.6 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001159/0.001159, allocations: 55.91 kB / 359.4 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2301/0.2313, allocations: 50.56 MB / 410 MB, free: 1.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.008728/0.24, allocations: 8.166 MB / 418.1 MB, free: 9.387 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003865/0.2439, allocations: 2.726 MB / 420.9 MB, free: 6.652 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004582/0.2444, allocations: 27.94 kB / 420.9 MB, free: 6.625 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001172/0.2456, allocations: 0.5629 MB / 421.4 MB, free: 6.059 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007519/0.2463, allocations: 468.5 kB / 421.9 MB, free: 5.598 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000612/0.247, allocations: 363.4 kB / 422.3 MB, free: 5.242 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001252/0.2482, allocations: 1.499 MB / 423.8 MB, free: 3.734 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000735/0.249, allocations: 0.6178 MB / 424.4 MB, free: 3.09 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005721/0.2495, allocations: 0.5641 MB / 424.9 MB, free: 2.523 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005743/0.2501, allocations: 0.5949 MB / 425.5 MB, free: 1.926 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001591/0.2503, allocations: 147.9 kB / 425.7 MB, free: 1.781 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000296/0.2506, allocations: 176 kB / 425.8 MB, free: 1.609 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001941/0.2508, allocations: 290.9 kB / 426.1 MB, free: 1.324 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005154/0.2513, allocations: 0.6647 MB / 426.8 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001406/0.2527, allocations: 1.721 MB / 428.5 MB, free: 14.92 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.2527, allocations: 0 / 428.5 MB, free: 14.92 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.512e-06/0.2528, allocations: 0 / 428.5 MB, free: 14.92 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.642e-05/0.2528, allocations: 0 / 428.5 MB, free: 14.92 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.002201/0.255, allocations: 1.511 MB / 430 MB, free: 13.36 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.396e-05/0.255, allocations: 8.031 kB / 430 MB, free: 13.35 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006093/0.2556, allocations: 187.2 kB / 430.2 MB, free: 13.17 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001156/0.2568, allocations: 0.79 MB / 431 MB, free: 12.34 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.457e-05/0.2569, allocations: 77.94 kB / 431.1 MB, free: 12.26 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001319/0.257, allocations: 103.9 kB / 431.2 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001474/0.2585, allocations: 0.9622 MB / 432.1 MB, free: 11.15 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.896e-05/0.2585, allocations: 8 kB / 432.2 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.668e-05/0.2586, allocations: 40 kB / 432.2 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.96e-05/0.2586, allocations: 24 kB / 432.2 MB, free: 11.08 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001158/0.2598, allocations: 0.6363 MB / 432.9 MB, free: 10.45 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004637/0.2645, allocations: 4.076 MB / 436.9 MB, free: 6.145 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009393/0.2654, allocations: 430.7 kB / 437.4 MB, free: 5.719 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002781/0.2657, allocations: 168.8 kB / 437.5 MB, free: 5.551 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.733e-05/0.2657, allocations: 7.938 kB / 437.5 MB, free: 5.543 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.667e-05/0.2658, allocations: 38.56 kB / 437.6 MB, free: 5.496 MB / 350.1 MB Notification: Performance of pre-optimization done (n=37): time 2.144e-06/0.2658, allocations: 0 / 437.6 MB, free: 5.496 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.002149/0.2679, allocations: 1.312 MB / 438.9 MB, free: 4.113 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.913e-05/0.268, allocations: 136.5 kB / 439 MB, free: 3.949 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001056/0.2691, allocations: 0.8936 MB / 439.9 MB, free: 3.031 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.488e-05/0.2691, allocations: 33.7 kB / 439.9 MB, free: 2.992 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003573/0.2695, allocations: 0.5992 MB / 440.5 MB, free: 2.383 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.222e-05/0.2696, allocations: 138 kB / 440.7 MB, free: 2.246 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001663/0.2697, allocations: 138.5 kB / 440.8 MB, free: 2.105 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000103/0.2699, allocations: 334 kB / 441.1 MB, free: 1.773 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003203/0.2702, allocations: 176.8 kB / 441.3 MB, free: 1.598 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005074/0.2707, allocations: 0.4908 MB / 441.8 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008266/0.2715, allocations: 0.6828 MB / 442.5 MB, free: 124 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.641e-06/0.2715, allocations: 4 kB / 442.5 MB, free: 120 kB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001142/0.2727, allocations: 0.7506 MB / 443.2 MB, free: 15.35 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.797e-05/0.2727, allocations: 12 kB / 443.2 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.173e-05/0.2727, allocations: 8 kB / 443.2 MB, free: 15.33 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001404/0.2729, allocations: 33.31 kB / 443.3 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005403/0.2734, allocations: 179.7 kB / 443.5 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008929/0.2743, allocations: 1.379 MB / 444.8 MB, free: 13.6 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00049/0.2748, allocations: 43.83 kB / 444.9 MB, free: 13.56 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.182e-05/0.2749, allocations: 40 kB / 444.9 MB, free: 13.52 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005089/0.2754, allocations: 350.1 kB / 445.3 MB, free: 13.18 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004481/0.2759, allocations: 494.5 kB / 445.7 MB, free: 12.54 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007283/0.2766, allocations: 0.6639 MB / 446.4 MB, free: 11.73 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.336e-06/0.2766, allocations: 0 / 446.4 MB, free: 11.73 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.001016/0.2776, allocations: 0.7234 MB / 447.1 MB, free: 11 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.102e-05/0.2777, allocations: 11.83 kB / 447.1 MB, free: 10.99 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.104e-05/0.2777, allocations: 12 kB / 447.2 MB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.988e-05/0.2778, allocations: 36.84 kB / 447.2 MB, free: 10.94 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000498/0.2783, allocations: 159.7 kB / 447.3 MB, free: 10.79 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008127/0.2791, allocations: 1.39 MB / 448.7 MB, free: 9.254 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005031/0.2796, allocations: 40.06 kB / 448.8 MB, free: 9.215 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.093e-05/0.2797, allocations: 35.98 kB / 448.8 MB, free: 9.18 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.0001522/0.2798, allocations: 231.9 kB / 449 MB, free: 8.945 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001187/0.28, allocations: 98.97 kB / 449.1 MB, free: 8.848 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007659/0.2807, allocations: 435.4 kB / 449.6 MB, free: 8.414 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.783e-06/0.2807, allocations: 3.984 kB / 449.6 MB, free: 8.41 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.2807, allocations: 0 / 449.6 MB, free: 8.41 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002389/0.281, allocations: 203.9 kB / 449.8 MB, free: 8.191 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001045/0.2811, allocations: 11.94 kB / 449.8 MB, free: 8.18 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003853/0.2815, allocations: 23.98 kB / 449.8 MB, free: 8.156 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.304e-05/0.2816, allocations: 27.91 kB / 449.8 MB, free: 8.129 MB / 366.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0009193/0.2825, allocations: 461.4 kB / 450.3 MB, free: 7.668 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0009654/0.2835, allocations: 0.7386 MB / 451 MB, free: 6.914 MB / 366.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002432/0.2837, allocations: 139.9 kB / 451.1 MB, free: 6.777 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007309/0.2845, allocations: 0.6054 MB / 451.8 MB, free: 6.16 MB / 366.1 MB Notification: Performance of Backend: time 1.683e-06/0.2845, allocations: 0 / 451.8 MB, free: 6.16 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001637/0.2861, allocations: 0.9669 MB / 452.7 MB, free: 5.164 MB / 366.1 MB Notification: Performance of SimCode: time 0.003029/0.2891, allocations: 2.349 MB / 455.1 MB, free: 2.773 MB / 366.1 MB Notification: Performance of Templates: time 0.02102/0.3102, allocations: 12.97 MB / 468 MB, free: 5.898 MB / 382.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