Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcee.airGapDC.psi_e|dcee.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcee.airGapDC.psi_e|dcee.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001483/0.001483, allocations: 191.7 kB / 17.37 MB, free: 4.312 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.498/1.498, allocations: 226.6 MB / 244.7 MB, free: 8.18 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000798/0.0007979, allocations: 104.2 kB / 296.8 MB, free: 6.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003216/0.0003217, allocations: 8 kB / 356.8 MB, free: 10.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1978/0.1981, allocations: 51.28 MB / 408 MB, free: 27.75 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start): time 0.005075/0.2033, allocations: 7.051 MB / 415.1 MB, free: 20.67 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002961/0.2062, allocations: 2.457 MB / 417.5 MB, free: 18.22 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004617/0.2067, allocations: 23.94 kB / 417.6 MB, free: 18.2 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009384/0.2077, allocations: 461.4 kB / 418 MB, free: 17.75 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000657/0.2083, allocations: 377.2 kB / 418.4 MB, free: 17.38 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002937/0.2086, allocations: 147.8 kB / 418.5 MB, free: 17.23 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008331/0.2095, allocations: 1.33 MB / 419.9 MB, free: 15.9 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005506/0.21, allocations: 0.4966 MB / 420.4 MB, free: 15.38 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004098/0.2105, allocations: 442 kB / 420.8 MB, free: 14.95 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000349/0.2108, allocations: 493.7 kB / 421.3 MB, free: 14.46 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.477e-05/0.2109, allocations: 64 kB / 421.3 MB, free: 14.4 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002119/0.2111, allocations: 99.97 kB / 421.4 MB, free: 14.3 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.685e-05/0.2112, allocations: 195 kB / 421.6 MB, free: 14.11 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003218/0.2116, allocations: 0.5615 MB / 422.2 MB, free: 13.54 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007416/0.2123, allocations: 1.332 MB / 423.5 MB, free: 12.2 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.2123, allocations: 3.984 kB / 423.5 MB, free: 12.2 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.953e-06/0.2123, allocations: 0 / 423.5 MB, free: 12.2 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.193e-05/0.2124, allocations: 0 / 423.5 MB, free: 12.2 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 246 * Number of variables: 246 Notification: Performance of Generate backend data structure: time 0.001522/0.2139, allocations: 1.246 MB / 424.8 MB, free: 10.9 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.034e-05/0.2139, allocations: 8.031 kB / 424.8 MB, free: 10.89 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004527/0.2144, allocations: 175.4 kB / 424.9 MB, free: 10.72 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007783/0.2152, allocations: 0.7074 MB / 425.7 MB, free: 9.973 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.849e-05/0.2152, allocations: 78 kB / 425.7 MB, free: 9.895 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.388e-05/0.2153, allocations: 99.91 kB / 425.8 MB, free: 9.797 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001196/0.2165, allocations: 0.919 MB / 426.7 MB, free: 8.852 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.86e-05/0.2166, allocations: 7.984 kB / 426.8 MB, free: 8.844 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.376e-05/0.2166, allocations: 40 kB / 426.8 MB, free: 8.805 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.36e-05/0.2167, allocations: 24 kB / 426.8 MB, free: 8.781 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009926/0.2177, allocations: 0.6325 MB / 427.5 MB, free: 8.145 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003416/0.2211, allocations: 3.928 MB / 431.4 MB, free: 3.977 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004448/0.2215, allocations: 361.5 kB / 431.7 MB, free: 3.598 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002368/0.2218, allocations: 148.8 kB / 431.9 MB, free: 3.449 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.605e-05/0.2218, allocations: 7.938 kB / 431.9 MB, free: 3.441 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.363e-05/0.2218, allocations: 38.56 kB / 431.9 MB, free: 3.395 MB / 298.7 MB Notification: Performance of pre-optimization done (n=32): time 1.342e-06/0.2218, allocations: 0 / 431.9 MB, free: 3.395 MB / 298.7 MB Notification: Performance of matching and sorting (n=35): time 0.001743/0.2236, allocations: 1.226 MB / 433.2 MB, free: 2.094 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.451e-05/0.2236, allocations: 81.11 kB / 433.2 MB, free: 1.996 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000775/0.2244, allocations: 0.8213 MB / 434.1 MB, free: 1.168 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.779e-05/0.2244, allocations: 29.7 kB / 434.1 MB, free: 1.133 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002186/0.2247, allocations: 0.564 MB / 434.6 MB, free: 0.5586 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.453e-05/0.2247, allocations: 130.2 kB / 434.8 MB, free: 440 kB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.034e-05/0.2247, allocations: 20 kB / 434.8 MB, free: 420 kB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.448e-05/0.2248, allocations: 330 kB / 435.1 MB, free: 84 kB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002987/0.2251, allocations: 154 kB / 435.3 MB, free: 15.93 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004852/0.2256, allocations: 467.9 kB / 435.7 MB, free: 15.33 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008188/0.2264, allocations: 0.6438 MB / 436.4 MB, free: 14.54 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.729e-06/0.2264, allocations: 4 kB / 436.4 MB, free: 14.54 MB / 314.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001088/0.2275, allocations: 0.704 MB / 437.1 MB, free: 13.82 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.744e-05/0.2276, allocations: 8 kB / 437.1 MB, free: 13.82 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.126e-05/0.2276, allocations: 12 kB / 437.1 MB, free: 13.8 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001341/0.2277, allocations: 36.84 kB / 437.1 MB, free: 13.77 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000474/0.2282, allocations: 164 kB / 437.3 MB, free: 13.61 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008759/0.2291, allocations: 1.276 MB / 438.6 MB, free: 12.2 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004432/0.2295, allocations: 47.98 kB / 438.6 MB, free: 12.15 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.88e-05/0.2296, allocations: 32 kB / 438.6 MB, free: 12.12 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * 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 (84): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003142/0.2299, allocations: 258.1 kB / 438.9 MB, free: 11.86 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001069/0.23, allocations: 87 kB / 439 MB, free: 11.77 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007169/0.2307, allocations: 387.5 kB / 439.4 MB, free: 11.38 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.192e-06/0.2308, allocations: 7.938 kB / 439.4 MB, free: 11.37 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.154e-06/0.2308, allocations: 0 / 439.4 MB, free: 11.37 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.2308, allocations: 7.984 kB / 439.4 MB, free: 11.36 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001696/0.2325, allocations: 1.277 MB / 440.6 MB, free: 10 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.54e-06/0.2325, allocations: 3.984 kB / 440.7 MB, free: 10 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003094/0.2328, allocations: 80.12 kB / 440.7 MB, free: 9.922 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.598e-05/0.2329, allocations: 24.84 kB / 440.8 MB, free: 9.895 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.079e-05/0.2329, allocations: 12 kB / 440.8 MB, free: 9.883 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007896/0.2337, allocations: 1.272 MB / 442 MB, free: 8.48 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.821e-06/0.2338, allocations: 3.938 kB / 442 MB, free: 8.477 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009417/0.2347, allocations: 0.6546 MB / 442.7 MB, free: 7.777 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002119/0.2349, allocations: 192 kB / 442.9 MB, free: 7.57 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.163e-05/0.235, allocations: 8 kB / 442.9 MB, free: 7.562 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003565/0.2354, allocations: 31.98 kB / 442.9 MB, free: 7.531 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.382e-05/0.2355, allocations: 27.95 kB / 443 MB, free: 7.504 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.903e-05/0.2355, allocations: 12 kB / 443 MB, free: 7.492 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0006871/0.2362, allocations: 0.5498 MB / 443.5 MB, free: 6.949 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2362, allocations: 0 / 443.5 MB, free: 6.949 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006134/0.2368, allocations: 192 kB / 443.7 MB, free: 6.762 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (dcee.inertiaRotor.w,dcee.la.i,dcee.airGapDC.psi_e,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 (34): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001746/0.237, allocations: 127.1 kB / 443.8 MB, free: 6.625 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008768/0.2379, allocations: 0.5196 MB / 444.3 MB, free: 6.094 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.2379, allocations: 0 / 444.3 MB, free: 6.094 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003955/0.2383, allocations: 271.7 kB / 444.6 MB, free: 5.816 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001116/0.2394, allocations: 206.3 kB / 444.8 MB, free: 5.621 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002541/0.242, allocations: 2.119 MB / 446.9 MB, free: 3.449 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005181/0.2425, allocations: 0.9965 MB / 447.9 MB, free: 2.426 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001297/0.2426, allocations: 63.38 kB / 448 MB, free: 2.363 MB / 314.7 MB Notification: Performance of SimCode: time 2.61e-07/0.2426, allocations: 0 / 448 MB, free: 2.363 MB / 314.7 MB Notification: Performance of Templates: time 0.01724/0.2599, allocations: 15.57 MB / 463.6 MB, free: 2.828 MB / 330.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCEE_Start/DCEE_Start.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches