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.0007722/0.0007723, allocations: 94.72 kB / 17.31 MB, free: 6.535 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.0007967/0.0007967, allocations: 179.5 kB / 18.21 MB, free: 5.684 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.101/1.101, allocations: 223.3 MB / 242.3 MB, free: 252 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002107/0.0002108, allocations: 4 kB / 302.1 MB, free: 6.141 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06947/0.0697, allocations: 50.41 MB / 352.5 MB, free: 3.719 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.006815/0.07653, allocations: 7.632 MB / 360.1 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003637/0.08018, allocations: 2.641 MB / 362.8 MB, free: 9.391 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000635/0.08082, allocations: 27.94 kB / 362.8 MB, free: 9.363 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001117/0.08195, allocations: 473.4 kB / 363.3 MB, free: 8.898 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009033/0.08286, allocations: 377.3 kB / 363.6 MB, free: 8.527 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005984/0.08347, allocations: 326.8 kB / 363.9 MB, free: 8.211 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001313/0.08479, allocations: 1.432 MB / 365.4 MB, free: 6.773 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006555/0.08546, allocations: 0.5173 MB / 365.9 MB, free: 6.23 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005166/0.08598, allocations: 461.7 kB / 366.3 MB, free: 5.777 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005135/0.0865, allocations: 0.5089 MB / 366.9 MB, free: 5.266 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001059/0.08662, allocations: 63.94 kB / 366.9 MB, free: 5.203 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002258/0.08685, allocations: 99.98 kB / 367 MB, free: 5.105 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001364/0.08699, allocations: 199 kB / 367.2 MB, free: 4.91 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004731/0.08747, allocations: 0.5961 MB / 367.8 MB, free: 4.305 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009616/0.08844, allocations: 1.324 MB / 369.1 MB, free: 2.977 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.08845, allocations: 4 kB / 369.1 MB, free: 2.973 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.32e-07/0.08845, allocations: 0 / 369.1 MB, free: 2.973 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.398e-05/0.08848, allocations: 0 / 369.1 MB, free: 2.973 MB / 302.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.001856/0.09034, allocations: 1.305 MB / 370.4 MB, free: 1.613 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.856e-05/0.09038, allocations: 12.03 kB / 370.5 MB, free: 1.602 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005351/0.09092, allocations: 187.3 kB / 370.6 MB, free: 1.418 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009727/0.0919, allocations: 0.7783 MB / 371.4 MB, free: 0.5977 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.226e-05/0.09196, allocations: 70.12 kB / 371.5 MB, free: 0.5312 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001178/0.09209, allocations: 115.9 kB / 371.6 MB, free: 428 kB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1175/0.2096, allocations: 0.9477 MB / 372.5 MB, free: 24.19 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.505e-05/0.2097, allocations: 8.562 kB / 372.5 MB, free: 24.19 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.44e-05/0.2098, allocations: 39.97 kB / 372.6 MB, free: 24.19 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.215e-05/0.2098, allocations: 27.52 kB / 372.6 MB, free: 24.19 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001067/0.2109, allocations: 0.6454 MB / 373.3 MB, free: 24.18 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004212/0.2151, allocations: 4.142 MB / 377.4 MB, free: 21.83 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008953/0.216, allocations: 463 kB / 377.9 MB, free: 21.67 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002537/0.2163, allocations: 175.8 kB / 378 MB, free: 21.6 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.646e-05/0.2163, allocations: 4.781 kB / 378 MB, free: 21.6 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.505e-05/0.2163, allocations: 36.59 kB / 378.1 MB, free: 21.55 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 2.104e-06/0.2163, allocations: 2.172 kB / 378.1 MB, free: 21.55 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.001873/0.2182, allocations: 1.346 MB / 379.4 MB, free: 20.7 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.899e-05/0.2183, allocations: 108 kB / 379.5 MB, free: 20.57 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001004/0.2193, allocations: 0.8944 MB / 380.4 MB, free: 20.18 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.417e-05/0.2193, allocations: 36.66 kB / 380.5 MB, free: 20.14 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002755/0.2196, allocations: 0.5893 MB / 381 MB, free: 19.67 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.445e-05/0.2197, allocations: 150.5 kB / 381.2 MB, free: 19.55 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.339e-05/0.2197, allocations: 63.92 kB / 381.2 MB, free: 19.52 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.802e-05/0.2198, allocations: 332.6 kB / 381.6 MB, free: 19.2 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002904/0.2201, allocations: 170.9 kB / 381.7 MB, free: 19.14 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003738/0.2205, allocations: 0.4955 MB / 382.2 MB, free: 18.66 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006777/0.2212, allocations: 0.6941 MB / 382.9 MB, free: 18.06 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.55e-06/0.2212, allocations: 4.438 kB / 382.9 MB, free: 18.06 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001058/0.2222, allocations: 0.7629 MB / 383.7 MB, free: 17.72 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001098/0.2224, allocations: 398.9 kB / 384.1 MB, free: 17.21 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.315e-05/0.2224, allocations: 11.88 kB / 384.1 MB, free: 17.21 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001236/0.2225, allocations: 37.78 kB / 384.1 MB, free: 17.19 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004954/0.223, allocations: 177.6 kB / 384.3 MB, free: 17.17 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005887/0.2236, allocations: 1.294 MB / 385.6 MB, free: 15.85 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004747/0.2241, allocations: 41.97 kB / 385.6 MB, free: 15.83 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.773e-05/0.2241, allocations: 35.06 kB / 385.7 MB, free: 15.83 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.35e-06/0.2242, allocations: 2.875 kB / 385.7 MB, free: 15.83 MB / 302.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008256/0.225, allocations: 0.613 MB / 386.3 MB, free: 15.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.332e-05/0.225, allocations: 10.83 kB / 386.3 MB, free: 15.57 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.431e-05/0.2251, allocations: 39.25 kB / 386.3 MB, free: 15.55 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004554/0.2256, allocations: 169.1 kB / 386.5 MB, free: 15.53 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000501/0.2261, allocations: 1.292 MB / 387.8 MB, free: 14.22 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004322/0.2265, allocations: 35.91 kB / 387.8 MB, free: 14.2 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.703e-05/0.2266, allocations: 32.69 kB / 387.9 MB, free: 14.2 MB / 302.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.0002804/0.2268, allocations: 339.9 kB / 388.2 MB, free: 13.91 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001031/0.2269, allocations: 100.9 kB / 388.3 MB, free: 13.86 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000694/0.2276, allocations: 441.1 kB / 388.7 MB, free: 13.66 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.599e-06/0.2277, allocations: 4.234 kB / 388.7 MB, free: 13.66 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.565e-06/0.2277, allocations: 5 kB / 388.7 MB, free: 13.65 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.93e-06/0.2277, allocations: 1.828 kB / 388.7 MB, free: 13.65 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001635/0.2293, allocations: 1.391 MB / 390.1 MB, free: 12.88 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.2293, allocations: 1.531 kB / 390.1 MB, free: 12.88 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003122/0.2296, allocations: 81.53 kB / 390.2 MB, free: 12.87 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.575e-05/0.2297, allocations: 24.06 kB / 390.2 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.305e-05/0.2298, allocations: 12.55 kB / 390.2 MB, free: 12.85 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004877/0.2302, allocations: 1.279 MB / 391.5 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.2303, allocations: 1.812 kB / 391.5 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008619/0.2311, allocations: 0.7346 MB / 392.3 MB, free: 11.11 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001944/0.2313, allocations: 210.3 kB / 392.5 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.617e-05/0.2314, allocations: 13.44 kB / 392.5 MB, free: 10.92 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003611/0.2318, allocations: 29.52 kB / 392.5 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.295e-05/0.2319, allocations: 35.41 kB / 392.5 MB, free: 10.9 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.95e-05/0.2319, allocations: 12.75 kB / 392.6 MB, free: 10.89 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006839/0.2326, allocations: 0.6035 MB / 393.2 MB, free: 10.62 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2326, allocations: 1.062 kB / 393.2 MB, free: 10.62 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009768/0.2336, allocations: 352.6 kB / 393.5 MB, free: 10.59 MB / 302.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.0001408/0.2337, allocations: 123.2 kB / 393.6 MB, free: 10.49 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001244/0.235, allocations: 0.9785 MB / 394.6 MB, free: 10.02 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.796e-06/0.235, allocations: 0.8125 kB / 394.6 MB, free: 10.02 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003164/0.2353, allocations: 293.3 kB / 394.9 MB, free: 9.844 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001147/0.2364, allocations: 224.8 kB / 395.1 MB, free: 9.77 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002341/0.2388, allocations: 2.382 MB / 397.5 MB, free: 8.137 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000386/0.2392, allocations: 1.022 MB / 398.5 MB, free: 7.293 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001463/0.2393, allocations: 62.72 kB / 398.6 MB, free: 7.285 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.2394, allocations: 0 / 398.6 MB, free: 7.285 MB / 302.1 MB Notification: Performance of Templates: time 0.01667/0.256, allocations: 16.63 MB / 415.2 MB, free: 8.379 MB / 318.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