Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001376/0.001376, allocations: 104.2 kB / 17.58 MB, free: 5.559 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.001097/0.001097, allocations: 192 kB / 18.51 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.676/1.676, allocations: 205.1 MB / 224.4 MB, free: 12.31 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001208/0.001208, allocations: 55.91 kB / 280.7 MB, free: 3.168 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1428/0.144, allocations: 46.63 MB / 327.3 MB, free: 4.473 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.01305/0.1571, allocations: 8.139 MB / 335.4 MB, free: 12.28 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.007271/0.1645, allocations: 2.739 MB / 338.2 MB, free: 9.527 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001284/0.1659, allocations: 35.81 kB / 338.2 MB, free: 9.492 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001912/0.1678, allocations: 0.5356 MB / 338.7 MB, free: 8.953 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002139/0.17, allocations: 432.5 kB / 339.2 MB, free: 8.527 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00104/0.171, allocations: 363.5 kB / 339.5 MB, free: 8.172 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002588/0.1736, allocations: 1.499 MB / 341 MB, free: 6.664 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001097/0.1747, allocations: 0.6088 MB / 341.6 MB, free: 6.035 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008416/0.1756, allocations: 0.5524 MB / 342.2 MB, free: 5.48 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000648/0.1762, allocations: 0.6026 MB / 342.8 MB, free: 4.875 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001681/0.1764, allocations: 140 kB / 342.9 MB, free: 4.738 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003565/0.1768, allocations: 180 kB / 343.1 MB, free: 4.562 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002234/0.177, allocations: 286.9 kB / 343.4 MB, free: 4.281 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000641/0.1777, allocations: 0.6725 MB / 344 MB, free: 3.605 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001983/0.1797, allocations: 1.686 MB / 345.7 MB, free: 1.914 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.001e-06/0.1797, allocations: 0 / 345.7 MB, free: 1.914 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.1797, allocations: 4 kB / 345.7 MB, free: 1.91 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.075e-05/0.1797, allocations: 0 / 345.7 MB, free: 1.91 MB / 286.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.002697/0.1824, allocations: 1.522 MB / 347.2 MB, free: 340 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.994e-05/0.1825, allocations: 12.03 kB / 347.3 MB, free: 328 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006615/0.1831, allocations: 187.2 kB / 347.4 MB, free: 140 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001234/0.1844, allocations: 0.7783 MB / 348.2 MB, free: 15.32 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.971e-05/0.1845, allocations: 74.12 kB / 348.3 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001437/0.1846, allocations: 100 kB / 348.4 MB, free: 15.15 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001599/0.1862, allocations: 0.9497 MB / 349.3 MB, free: 14.16 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.102e-05/0.1863, allocations: 11.84 kB / 349.4 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.088e-05/0.1864, allocations: 40 kB / 349.4 MB, free: 14.11 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.835e-05/0.1864, allocations: 24 kB / 349.4 MB, free: 14.08 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00118/0.1876, allocations: 0.6402 MB / 350.1 MB, free: 13.44 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005243/0.1928, allocations: 4.119 MB / 354.2 MB, free: 9.094 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009562/0.1938, allocations: 427 kB / 354.6 MB, free: 8.668 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002888/0.1941, allocations: 165.4 kB / 354.8 MB, free: 8.504 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.588e-05/0.1942, allocations: 7.75 kB / 354.8 MB, free: 8.496 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.117e-05/0.1942, allocations: 38.56 kB / 354.8 MB, free: 8.449 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 2.354e-06/0.1942, allocations: 0 / 354.8 MB, free: 8.449 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.00248/0.1967, allocations: 1.322 MB / 356.1 MB, free: 7.055 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.703e-05/0.1968, allocations: 110.8 kB / 356.2 MB, free: 6.922 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001182/0.198, allocations: 0.8979 MB / 357.1 MB, free: 6 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.134e-05/0.198, allocations: 29.7 kB / 357.2 MB, free: 5.965 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004531/0.1985, allocations: 0.5914 MB / 357.7 MB, free: 5.363 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001162/0.1986, allocations: 157.9 kB / 357.9 MB, free: 5.207 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001938/0.1988, allocations: 134.5 kB / 358 MB, free: 5.07 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001487/0.199, allocations: 337.9 kB / 358.4 MB, free: 4.734 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003327/0.1993, allocations: 172.8 kB / 358.5 MB, free: 4.562 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005618/0.1999, allocations: 497.5 kB / 359 MB, free: 3.926 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008859/0.2008, allocations: 0.6831 MB / 359.7 MB, free: 3.098 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.506e-06/0.2008, allocations: 0 / 359.7 MB, free: 3.098 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001171/0.202, allocations: 0.7543 MB / 360.5 MB, free: 2.332 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.392e-05/0.202, allocations: 8 kB / 360.5 MB, free: 2.324 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.454e-05/0.202, allocations: 12.05 kB / 360.5 MB, free: 2.312 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001809/0.2022, allocations: 40.83 kB / 360.5 MB, free: 2.27 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005363/0.2028, allocations: 168.1 kB / 360.7 MB, free: 2.105 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001137/0.2039, allocations: 1.386 MB / 362.1 MB, free: 0.582 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005184/0.2044, allocations: 43.83 kB / 362.1 MB, free: 0.5391 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.28e-05/0.2045, allocations: 32 kB / 362.1 MB, free: 0.5078 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005577/0.2051, allocations: 354.1 kB / 362.5 MB, free: 160 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005216/0.2056, allocations: 485.7 kB / 363 MB, free: 15.54 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000803/0.2064, allocations: 0.6676 MB / 363.6 MB, free: 14.72 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.338e-06/0.2064, allocations: 7.938 kB / 363.6 MB, free: 14.71 MB / 318.1 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.001094/0.2075, allocations: 0.7082 MB / 364.3 MB, free: 14 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.374e-05/0.2075, allocations: 8 kB / 364.3 MB, free: 13.99 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.122e-05/0.2076, allocations: 12 kB / 364.4 MB, free: 13.98 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.993e-05/0.2077, allocations: 36.78 kB / 364.4 MB, free: 13.94 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005092/0.2082, allocations: 167.7 kB / 364.6 MB, free: 13.77 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001054/0.2092, allocations: 1.406 MB / 366 MB, free: 12.23 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004804/0.2097, allocations: 28 kB / 366 MB, free: 12.2 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.931e-05/0.2098, allocations: 36 kB / 366 MB, free: 12.17 MB / 318.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.0001883/0.21, allocations: 231.9 kB / 366.3 MB, free: 11.93 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001299/0.2101, allocations: 90.88 kB / 366.3 MB, free: 11.84 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007936/0.2109, allocations: 439.2 kB / 366.8 MB, free: 11.4 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.27e-06/0.2109, allocations: 4 kB / 366.8 MB, free: 11.4 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.395e-06/0.2109, allocations: 0 / 366.8 MB, free: 11.4 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.663e-06/0.2109, allocations: 3.984 kB / 366.8 MB, free: 11.39 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001986/0.2129, allocations: 1.378 MB / 368.2 MB, free: 9.938 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.581e-06/0.2129, allocations: 4 kB / 368.2 MB, free: 9.934 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003462/0.2133, allocations: 76.11 kB / 368.2 MB, free: 9.859 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.154e-05/0.2134, allocations: 20.86 kB / 368.3 MB, free: 9.836 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.955e-05/0.2134, allocations: 15.98 kB / 368.3 MB, free: 9.82 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000911/0.2144, allocations: 1.367 MB / 369.6 MB, free: 8.312 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.2144, allocations: 4.031 kB / 369.6 MB, free: 8.309 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001011/0.2154, allocations: 0.7095 MB / 370.4 MB, free: 7.559 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000249/0.2157, allocations: 207.9 kB / 370.6 MB, free: 7.336 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.562e-05/0.2158, allocations: 12.12 kB / 370.6 MB, free: 7.324 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003727/0.2161, allocations: 27.97 kB / 370.6 MB, free: 7.297 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.622e-05/0.2162, allocations: 27.91 kB / 370.6 MB, free: 7.27 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.058e-05/0.2162, allocations: 12 kB / 370.6 MB, free: 7.258 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007498/0.217, allocations: 0.6133 MB / 371.2 MB, free: 6.633 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.217, allocations: 0 / 371.2 MB, free: 6.633 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.00112/0.2181, allocations: 352 kB / 371.6 MB, free: 6.289 MB / 318.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.0002259/0.2184, allocations: 119.2 kB / 371.7 MB, free: 6.164 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001588/0.22, allocations: 1.002 MB / 372.7 MB, free: 5.141 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.387e-06/0.22, allocations: 8 kB / 372.7 MB, free: 5.133 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004387/0.2204, allocations: 282.5 kB / 373 MB, free: 4.844 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001111/0.2215, allocations: 240.3 kB / 373.2 MB, free: 4.613 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002991/0.2245, allocations: 1.846 MB / 375.1 MB, free: 2.715 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005809/0.2251, allocations: 1.021 MB / 376.1 MB, free: 1.664 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005522/0.2257, allocations: 127.4 kB / 376.2 MB, free: 1.535 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001372/0.2258, allocations: 59.44 kB / 376.3 MB, free: 1.477 MB / 318.1 MB Notification: Performance of SimCode: time 8.72e-07/0.2259, allocations: 0 / 376.3 MB, free: 1.477 MB / 318.1 MB Notification: Performance of Templates: time 0.185/0.4108, allocations: 10.62 MB / 386.9 MB, free: 49.5 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_CurrentControlled/DCPM_CurrentControlled.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches