Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.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_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007875/0.0007875, allocations: 92.66 kB / 17.31 MB, free: 6.531 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.0008376/0.0008376, allocations: 176.2 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.138/1.138, allocations: 223.3 MB / 242.3 MB, free: 192 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002078/0.0002078, allocations: 8 kB / 302.1 MB, free: 6.117 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06984/0.07006, allocations: 50.42 MB / 352.5 MB, free: 3.684 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.005808/0.07588, allocations: 6.649 MB / 359.2 MB, free: 13 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003048/0.07894, allocations: 2.291 MB / 361.4 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004646/0.07942, allocations: 23.94 kB / 361.5 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001017/0.08044, allocations: 449.7 kB / 361.9 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007516/0.0812, allocations: 333.6 kB / 362.2 MB, free: 9.906 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003215/0.08153, allocations: 183.8 kB / 362.4 MB, free: 9.727 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009935/0.08253, allocations: 1.128 MB / 363.5 MB, free: 8.598 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005208/0.08306, allocations: 438.7 kB / 364 MB, free: 8.148 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004345/0.08351, allocations: 386 kB / 364.3 MB, free: 7.77 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004202/0.08394, allocations: 433.8 kB / 364.8 MB, free: 7.344 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.327e-05/0.08403, allocations: 52 kB / 364.8 MB, free: 7.293 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001953/0.08423, allocations: 95.97 kB / 364.9 MB, free: 7.199 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001143/0.08435, allocations: 159.2 kB / 365.1 MB, free: 7.043 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003904/0.08474, allocations: 0.4952 MB / 365.6 MB, free: 6.539 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008097/0.08556, allocations: 1.129 MB / 366.7 MB, free: 5.406 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.773e-06/0.08557, allocations: 0 / 366.7 MB, free: 5.406 MB / 302.1 MB Notification: Performance of FrontEnd: time 6.11e-07/0.08558, allocations: 0 / 366.7 MB, free: 5.406 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.671e-05/0.0856, allocations: 0 / 366.7 MB, free: 5.406 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: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.001476/0.08708, allocations: 1.091 MB / 367.8 MB, free: 4.266 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.747e-05/0.08711, allocations: 8.031 kB / 367.8 MB, free: 4.258 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004159/0.08753, allocations: 143.6 kB / 367.9 MB, free: 4.117 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007696/0.08831, allocations: 0.6455 MB / 368.6 MB, free: 3.426 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.585e-05/0.08836, allocations: 54.38 kB / 368.6 MB, free: 3.375 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001033/0.08847, allocations: 88.22 kB / 368.7 MB, free: 3.289 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001148/0.08962, allocations: 0.791 MB / 369.5 MB, free: 2.465 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.379e-05/0.08965, allocations: 4 kB / 369.5 MB, free: 2.461 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.369e-05/0.08971, allocations: 28 kB / 369.5 MB, free: 2.434 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.472e-05/0.08973, allocations: 20 kB / 369.6 MB, free: 2.414 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009228/0.09066, allocations: 0.5348 MB / 370.1 MB, free: 1.883 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1284/0.2191, allocations: 3.405 MB / 373.5 MB, free: 22.57 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004335/0.2195, allocations: 241.4 kB / 373.7 MB, free: 22.54 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002206/0.2198, allocations: 119.5 kB / 373.9 MB, free: 22.54 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.649e-05/0.2198, allocations: 4.547 kB / 373.9 MB, free: 22.54 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.457e-05/0.2198, allocations: 39.75 kB / 373.9 MB, free: 22.5 MB / 302.1 MB Notification: Performance of pre-optimization done (n=25): time 1.964e-06/0.2198, allocations: 0 / 373.9 MB, free: 22.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=28): time 0.001779/0.2216, allocations: 1.078 MB / 375 MB, free: 22 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.955e-05/0.2216, allocations: 85.41 kB / 375.1 MB, free: 21.9 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008945/0.2225, allocations: 0.7425 MB / 375.8 MB, free: 21.77 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.779e-05/0.2226, allocations: 31.23 kB / 375.8 MB, free: 21.74 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002427/0.2228, allocations: 497.9 kB / 376.3 MB, free: 21.48 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.433e-05/0.2229, allocations: 108.8 kB / 376.4 MB, free: 21.42 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.514e-05/0.2229, allocations: 55.75 kB / 376.5 MB, free: 21.4 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.906e-05/0.223, allocations: 381 kB / 376.8 MB, free: 21.09 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002455/0.2233, allocations: 135.1 kB / 377 MB, free: 21.08 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003112/0.2236, allocations: 425.5 kB / 377.4 MB, free: 20.72 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005699/0.2242, allocations: 0.5853 MB / 378 MB, free: 20.24 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.51e-06/0.2242, allocations: 6.75 kB / 378 MB, free: 20.24 MB / 302.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0008945/0.2251, allocations: 0.6152 MB / 378.6 MB, free: 19.97 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.938e-05/0.2251, allocations: 9.312 kB / 378.6 MB, free: 19.97 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.325e-05/0.2251, allocations: 9.812 kB / 378.6 MB, free: 19.97 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001216/0.2253, allocations: 38.08 kB / 378.7 MB, free: 19.96 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003746/0.2257, allocations: 150.1 kB / 378.8 MB, free: 19.94 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005846/0.2262, allocations: 1.291 MB / 380.1 MB, free: 18.62 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004033/0.2267, allocations: 33.09 kB / 380.1 MB, free: 18.61 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.124e-05/0.2267, allocations: 29.91 kB / 380.2 MB, free: 18.61 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (73): * Single equations (assignments): 72 * 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.0002155/0.2269, allocations: 233 kB / 380.4 MB, free: 18.42 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.965e-05/0.227, allocations: 82.73 kB / 380.5 MB, free: 18.37 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000544/0.2276, allocations: 332 kB / 380.8 MB, free: 18.21 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.998e-06/0.2276, allocations: 7.359 kB / 380.8 MB, free: 18.21 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.035e-06/0.2276, allocations: 2.062 kB / 380.8 MB, free: 18.21 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.067e-06/0.2276, allocations: 1.266 kB / 380.8 MB, free: 18.21 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001316/0.2289, allocations: 1.119 MB / 381.9 MB, free: 17.54 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.2289, allocations: 2.938 kB / 381.9 MB, free: 17.54 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002297/0.2292, allocations: 69.06 kB / 382 MB, free: 17.54 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.617e-05/0.2292, allocations: 26.95 kB / 382 MB, free: 17.52 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.624e-05/0.2293, allocations: 8.766 kB / 382 MB, free: 17.52 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004935/0.2298, allocations: 1.273 MB / 383.3 MB, free: 16.21 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.2298, allocations: 2.562 kB / 383.3 MB, free: 16.21 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007272/0.2305, allocations: 0.5741 MB / 383.9 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001563/0.2307, allocations: 180.7 kB / 384.1 MB, free: 15.7 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.131e-05/0.2307, allocations: 8.547 kB / 384.1 MB, free: 15.69 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002856/0.231, allocations: 26.48 kB / 384.1 MB, free: 15.68 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.685e-05/0.2311, allocations: 26.62 kB / 384.1 MB, free: 15.68 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.39e-05/0.2311, allocations: 11.25 kB / 384.1 MB, free: 15.67 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005362/0.2317, allocations: 0.5022 MB / 384.6 MB, free: 15.45 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2317, allocations: 0 / 384.6 MB, free: 15.45 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005518/0.2322, allocations: 163.7 kB / 384.8 MB, free: 15.43 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.phi) * 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 (27): * Single equations (assignments): 26 * 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.0001297/0.2324, allocations: 122.7 kB / 384.9 MB, free: 15.33 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006826/0.2331, allocations: 470.8 kB / 385.4 MB, free: 15.11 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.2331, allocations: 3.938 kB / 385.4 MB, free: 15.11 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003042/0.2334, allocations: 248 kB / 385.6 MB, free: 14.95 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009576/0.2343, allocations: 167 kB / 385.8 MB, free: 14.9 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001879/0.2362, allocations: 1.875 MB / 387.6 MB, free: 13.66 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003679/0.2366, allocations: 0.9415 MB / 388.6 MB, free: 12.94 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001117/0.2367, allocations: 50.09 kB / 388.6 MB, free: 12.93 MB / 302.1 MB Notification: Performance of SimCode: time 3.01e-07/0.2367, allocations: 0 / 388.6 MB, free: 12.93 MB / 302.1 MB Notification: Performance of Templates: time 0.01409/0.2508, allocations: 13.27 MB / 401.9 MB, free: 5.879 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Start/DCPM_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches