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.001079/0.001079, allocations: 115.2 kB / 18.46 MB, free: 4.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001133/0.001133, allocations: 206.7 kB / 19.41 MB, free: 3.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.32/1.32, allocations: 227.4 MB / 247.6 MB, free: 10.58 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001224/0.001224, allocations: 63.91 kB / 359.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.22/0.2212, allocations: 50.53 MB / 409.9 MB, free: 1.605 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.008849/0.2301, allocations: 8.17 MB / 418.1 MB, free: 9.395 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004032/0.2341, allocations: 2.73 MB / 420.9 MB, free: 6.656 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005298/0.2347, allocations: 27.94 kB / 420.9 MB, free: 6.629 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001181/0.2359, allocations: 0.5278 MB / 421.4 MB, free: 6.098 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007642/0.2367, allocations: 452.4 kB / 421.8 MB, free: 5.652 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006084/0.2373, allocations: 359 kB / 422.2 MB, free: 5.305 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001246/0.2385, allocations: 1.495 MB / 423.7 MB, free: 3.801 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007491/0.2393, allocations: 0.6139 MB / 424.3 MB, free: 3.16 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005774/0.2399, allocations: 0.5641 MB / 424.9 MB, free: 2.594 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005738/0.2405, allocations: 0.5988 MB / 425.5 MB, free: 1.992 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001642/0.2406, allocations: 140 kB / 425.6 MB, free: 1.855 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002894/0.2409, allocations: 183.9 kB / 425.8 MB, free: 1.676 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000212/0.2412, allocations: 290.9 kB / 426.1 MB, free: 1.391 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005273/0.2417, allocations: 0.6647 MB / 426.7 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001438/0.2431, allocations: 1.717 MB / 428.5 MB, free: 15 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.2432, allocations: 3.938 kB / 428.5 MB, free: 15 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.2432, allocations: 0 / 428.5 MB, free: 15 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.252e-05/0.2432, allocations: 0 / 428.5 MB, free: 15 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.002223/0.2454, allocations: 1.515 MB / 430 MB, free: 13.43 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.151e-05/0.2454, allocations: 8.031 kB / 430 MB, free: 13.42 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005835/0.246, allocations: 187.2 kB / 430.2 MB, free: 13.24 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00116/0.2472, allocations: 0.79 MB / 431 MB, free: 12.41 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.623e-05/0.2473, allocations: 77.94 kB / 431 MB, free: 12.33 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001224/0.2474, allocations: 96 kB / 431.1 MB, free: 12.23 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001433/0.2488, allocations: 0.9661 MB / 432.1 MB, free: 11.23 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.224e-05/0.2489, allocations: 7.906 kB / 432.1 MB, free: 11.22 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.011e-05/0.249, allocations: 40 kB / 432.1 MB, free: 11.18 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.993e-05/0.249, allocations: 24 kB / 432.2 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001155/0.2502, allocations: 0.6402 MB / 432.8 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004798/0.255, allocations: 4.076 MB / 436.9 MB, free: 6.215 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009483/0.2559, allocations: 437.2 kB / 437.3 MB, free: 5.781 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002884/0.2562, allocations: 164 kB / 437.5 MB, free: 5.621 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.314e-05/0.2563, allocations: 7.984 kB / 437.5 MB, free: 5.613 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.568e-05/0.2563, allocations: 42.5 kB / 437.5 MB, free: 5.562 MB / 350.1 MB Notification: Performance of pre-optimization done (n=37): time 2.274e-06/0.2563, allocations: 0 / 437.5 MB, free: 5.562 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.002273/0.2586, allocations: 1.312 MB / 438.8 MB, free: 4.18 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.3e-05/0.2587, allocations: 136.5 kB / 439 MB, free: 4.016 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001105/0.2598, allocations: 0.8937 MB / 439.8 MB, free: 3.098 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.864e-05/0.2598, allocations: 29.7 kB / 439.9 MB, free: 3.062 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000438/0.2603, allocations: 0.5954 MB / 440.5 MB, free: 2.457 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.891e-05/0.2604, allocations: 153.9 kB / 440.6 MB, free: 2.305 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001726/0.2605, allocations: 134.5 kB / 440.8 MB, free: 2.168 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001305/0.2607, allocations: 337.9 kB / 441.1 MB, free: 1.832 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000332/0.261, allocations: 172.8 kB / 441.3 MB, free: 1.66 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005185/0.2616, allocations: 498.5 kB / 441.7 MB, free: 1.016 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008574/0.2624, allocations: 0.6828 MB / 442.4 MB, free: 192 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.31e-06/0.2624, allocations: 4 kB / 442.4 MB, free: 188 kB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001218/0.2637, allocations: 0.7505 MB / 443.2 MB, free: 15.42 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.275e-05/0.2637, allocations: 12 kB / 443.2 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.512e-05/0.2637, allocations: 8 kB / 443.2 MB, free: 15.4 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001843/0.2639, allocations: 37.38 kB / 443.2 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005708/0.2645, allocations: 171.7 kB / 443.4 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001136/0.2656, allocations: 1.379 MB / 444.8 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006235/0.2663, allocations: 43.83 kB / 444.8 MB, free: 13.63 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.907e-05/0.2663, allocations: 36 kB / 444.9 MB, free: 13.6 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006202/0.267, allocations: 354.1 kB / 445.2 MB, free: 13.25 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004673/0.2674, allocations: 490.6 kB / 445.7 MB, free: 12.62 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007823/0.2682, allocations: 0.6677 MB / 446.3 MB, free: 11.81 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.496e-06/0.2682, allocations: 0 / 446.3 MB, free: 11.81 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.001125/0.2694, allocations: 0.7233 MB / 447.1 MB, free: 11.07 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.558e-05/0.2694, allocations: 8 kB / 447.1 MB, free: 11.07 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.197e-05/0.2694, allocations: 15.94 kB / 447.1 MB, free: 11.05 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.637e-05/0.2695, allocations: 36.84 kB / 447.1 MB, free: 11.01 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005176/0.27, allocations: 159.7 kB / 447.3 MB, free: 10.86 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008899/0.2709, allocations: 1.394 MB / 448.7 MB, free: 9.32 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005411/0.2715, allocations: 44.05 kB / 448.7 MB, free: 9.277 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.924e-05/0.2716, allocations: 32 kB / 448.8 MB, free: 9.246 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.0001986/0.2718, allocations: 231.9 kB / 449 MB, free: 9.012 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001407/0.2719, allocations: 94.88 kB / 449.1 MB, free: 8.918 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008281/0.2727, allocations: 435.4 kB / 449.5 MB, free: 8.484 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.704e-06/0.2728, allocations: 3.984 kB / 449.5 MB, free: 8.48 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.2728, allocations: 0 / 449.5 MB, free: 8.48 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002797/0.2731, allocations: 199.9 kB / 449.7 MB, free: 8.266 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000103/0.2732, allocations: 15.94 kB / 449.7 MB, free: 8.25 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003944/0.2736, allocations: 19.98 kB / 449.7 MB, free: 8.23 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.727e-05/0.2736, allocations: 27.91 kB / 449.8 MB, free: 8.203 MB / 366.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0009351/0.2746, allocations: 469.4 kB / 450.2 MB, free: 7.734 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0009712/0.2756, allocations: 0.7308 MB / 451 MB, free: 6.988 MB / 366.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002541/0.2758, allocations: 139.9 kB / 451.1 MB, free: 6.852 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007946/0.2766, allocations: 0.6054 MB / 451.7 MB, free: 6.234 MB / 366.1 MB Notification: Performance of Backend: time 2.755e-06/0.2766, allocations: 0 / 451.7 MB, free: 6.234 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001758/0.2784, allocations: 0.9643 MB / 452.7 MB, free: 5.242 MB / 366.1 MB Notification: Performance of SimCode: time 0.003143/0.2816, allocations: 2.343 MB / 455 MB, free: 2.852 MB / 366.1 MB Notification: Performance of Templates: time 0.02207/0.3036, allocations: 12.98 MB / 468 MB, free: 5.977 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