Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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_3.2.3_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_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001507/0.001508, allocations: 175.3 kB / 16.72 MB, free: 4.961 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.724/1.724, allocations: 205.4 MB / 222.9 MB, free: 9.008 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008026/0.0008025, allocations: 89.17 kB / 271.2 MB, free: 8.234 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003274/0.0003279, allocations: 8 kB / 327.5 MB, free: 15.87 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2372/0.2376, allocations: 47.57 MB / 375.1 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start): time 0.005848/0.2435, allocations: 6.983 MB / 382.1 MB, free: 39.92 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004003/0.2475, allocations: 2.462 MB / 384.5 MB, free: 37.88 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006214/0.2481, allocations: 27.59 kB / 384.6 MB, free: 37.87 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001162/0.2493, allocations: 458 kB / 385 MB, free: 37.55 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000905/0.2502, allocations: 378.5 kB / 385.4 MB, free: 37.22 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003766/0.2506, allocations: 149.2 kB / 385.5 MB, free: 37.1 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001322/0.252, allocations: 1.319 MB / 386.8 MB, free: 36.3 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007287/0.2527, allocations: 0.5064 MB / 387.4 MB, free: 35.98 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006637/0.2534, allocations: 444.5 kB / 387.8 MB, free: 35.74 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004997/0.2539, allocations: 488.9 kB / 388.3 MB, free: 35.42 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001312/0.254, allocations: 67.44 kB / 388.3 MB, free: 35.4 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002599/0.2543, allocations: 95.98 kB / 388.4 MB, free: 35.31 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001044/0.2544, allocations: 191 kB / 388.6 MB, free: 35.12 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003642/0.2548, allocations: 0.5654 MB / 389.2 MB, free: 34.55 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007687/0.2555, allocations: 1.328 MB / 390.5 MB, free: 33.21 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/0.2556, allocations: 3.938 kB / 390.5 MB, free: 33.21 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.824e-06/0.2556, allocations: 0 / 390.5 MB, free: 33.21 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.324e-05/0.2556, allocations: 0 / 390.5 MB, free: 33.21 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.001645/0.2572, allocations: 1.242 MB / 391.8 MB, free: 31.91 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.537e-05/0.2573, allocations: 12.03 kB / 391.8 MB, free: 31.9 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004642/0.2578, allocations: 171.3 kB / 391.9 MB, free: 31.73 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008175/0.2586, allocations: 0.7191 MB / 392.7 MB, free: 30.97 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.066e-05/0.2586, allocations: 74 kB / 392.7 MB, free: 30.9 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001042/0.2587, allocations: 92 kB / 392.8 MB, free: 30.81 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001258/0.26, allocations: 0.9229 MB / 393.7 MB, free: 29.86 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.941e-05/0.2601, allocations: 7.906 kB / 393.7 MB, free: 29.85 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.488e-05/0.2601, allocations: 40 kB / 393.8 MB, free: 29.81 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.441e-05/0.2601, allocations: 24 kB / 393.8 MB, free: 29.79 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009958/0.2611, allocations: 0.6363 MB / 394.4 MB, free: 29.15 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003626/0.2648, allocations: 3.932 MB / 398.4 MB, free: 24.98 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004611/0.2653, allocations: 366.1 kB / 398.7 MB, free: 24.6 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002401/0.2655, allocations: 148.8 kB / 398.9 MB, free: 24.45 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.085e-05/0.2655, allocations: 4 kB / 398.9 MB, free: 24.45 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.666e-05/0.2656, allocations: 34.56 kB / 398.9 MB, free: 24.41 MB / 298.7 MB Notification: Performance of pre-optimization done (n=32): time 2.295e-06/0.2656, allocations: 0 / 398.9 MB, free: 24.41 MB / 298.7 MB Notification: Performance of matching and sorting (n=35): time 0.001845/0.2674, allocations: 1.228 MB / 400.1 MB, free: 23.1 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.8e-05/0.2675, allocations: 81.11 kB / 400.2 MB, free: 23 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007966/0.2683, allocations: 0.8136 MB / 401 MB, free: 22.18 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.007e-05/0.2683, allocations: 37.64 kB / 401.1 MB, free: 22.14 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002333/0.2685, allocations: 0.5717 MB / 401.6 MB, free: 21.55 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.812e-05/0.2686, allocations: 126.2 kB / 401.8 MB, free: 21.43 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.049e-05/0.2686, allocations: 16 kB / 401.8 MB, free: 21.41 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.501e-05/0.2687, allocations: 326 kB / 402.1 MB, free: 21.09 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002595/0.269, allocations: 157.9 kB / 402.3 MB, free: 20.93 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003429/0.2693, allocations: 471.9 kB / 402.7 MB, free: 20.33 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006164/0.2699, allocations: 0.647 MB / 403.4 MB, free: 19.54 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/0.2699, allocations: 4 kB / 403.4 MB, free: 19.54 MB / 298.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.0009136/0.2709, allocations: 0.6932 MB / 404.1 MB, free: 18.84 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.803e-05/0.2709, allocations: 12 kB / 404.1 MB, free: 18.82 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.028e-05/0.2709, allocations: 12 kB / 404.1 MB, free: 18.81 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001308/0.2711, allocations: 28.86 kB / 404.1 MB, free: 18.78 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004259/0.2715, allocations: 163.7 kB / 404.3 MB, free: 18.62 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006428/0.2722, allocations: 1.307 MB / 405.6 MB, free: 17.18 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004271/0.2726, allocations: 47.98 kB / 405.6 MB, free: 17.14 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.086e-05/0.2726, allocations: 32 kB / 405.7 MB, free: 17.11 MB / 298.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.0002763/0.2729, allocations: 257 kB / 405.9 MB, free: 16.85 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.901e-05/0.273, allocations: 79.06 kB / 406 MB, free: 16.77 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006081/0.2736, allocations: 390.1 kB / 406.4 MB, free: 16.37 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.418e-06/0.2736, allocations: 7.938 kB / 406.4 MB, free: 16.36 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/0.2736, allocations: 0 / 406.4 MB, free: 16.36 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.848e-06/0.2737, allocations: 4 kB / 406.4 MB, free: 16.36 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001399/0.2751, allocations: 1.284 MB / 407.7 MB, free: 15 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.537e-06/0.2751, allocations: 0 / 407.7 MB, free: 15 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002845/0.2754, allocations: 79.83 kB / 407.7 MB, free: 14.92 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.077e-05/0.2754, allocations: 25.06 kB / 407.8 MB, free: 14.89 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.894e-05/0.2755, allocations: 12 kB / 407.8 MB, free: 14.88 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005515/0.276, allocations: 1.276 MB / 409.1 MB, free: 13.47 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.276, allocations: 7.969 kB / 409.1 MB, free: 13.46 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007721/0.2768, allocations: 0.6472 MB / 409.7 MB, free: 12.77 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001731/0.277, allocations: 196 kB / 409.9 MB, free: 12.56 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.887e-05/0.2771, allocations: 11.98 kB / 409.9 MB, free: 12.55 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003315/0.2774, allocations: 27.98 kB / 409.9 MB, free: 12.52 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.868e-05/0.2775, allocations: 31.97 kB / 410 MB, free: 12.49 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.649e-05/0.2775, allocations: 8 kB / 410 MB, free: 12.48 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0005823/0.2781, allocations: 0.5498 MB / 410.5 MB, free: 11.94 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.2781, allocations: 4 kB / 410.5 MB, free: 11.94 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005817/0.2787, allocations: 188 kB / 410.7 MB, free: 11.75 MB / 298.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.0001655/0.2789, allocations: 131 kB / 410.8 MB, free: 11.62 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007578/0.2796, allocations: 0.5159 MB / 411.4 MB, free: 11.09 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.2797, allocations: 4 kB / 411.4 MB, free: 11.09 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000322/0.28, allocations: 270.6 kB / 411.6 MB, free: 10.81 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0011/0.2811, allocations: 195.4 kB / 411.8 MB, free: 10.62 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002146/0.2832, allocations: 2.131 MB / 413.9 MB, free: 8.434 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003472/0.2836, allocations: 0.9923 MB / 414.9 MB, free: 7.414 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001278/0.2837, allocations: 59.44 kB / 415 MB, free: 7.355 MB / 298.7 MB Notification: Performance of SimCode: time 6.01e-07/0.2838, allocations: 4 kB / 415 MB, free: 7.352 MB / 298.7 MB Notification: Performance of Templates: time 0.01603/0.2998, allocations: 15.54 MB / 430.5 MB, free: 7.812 MB / 314.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCEE_Start/DCEE_Start.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches