Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_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.DCPM_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_cpp_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_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00287/0.002876, allocations: 188.6 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.717/3.717, allocations: 205.4 MB / 222.5 MB, free: 13.85 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.001767/0.001766, allocations: 94.84 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006318/0.0006319, allocations: 8 kB / 327 MB, free: 15.09 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2292/0.2298, allocations: 47.59 MB / 374.5 MB, free: 15.43 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.01412/0.244, allocations: 5.678 MB / 380.2 MB, free: 9.719 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.00763/0.2517, allocations: 2.27 MB / 382.5 MB, free: 7.438 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001433/0.2533, allocations: 19.94 kB / 382.5 MB, free: 7.418 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002838/0.2561, allocations: 422 kB / 382.9 MB, free: 7.004 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002678/0.2589, allocations: 402.8 kB / 383.3 MB, free: 6.609 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00114/0.2601, allocations: 119.9 kB / 383.4 MB, free: 6.492 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.00386/0.2639, allocations: 0.8507 MB / 384.3 MB, free: 5.641 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001355/0.2654, allocations: 360.6 kB / 384.6 MB, free: 5.277 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001248/0.2667, allocations: 350.6 kB / 385 MB, free: 4.934 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001311/0.268, allocations: 378.2 kB / 385.4 MB, free: 4.562 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003411/0.2684, allocations: 52 kB / 385.4 MB, free: 4.512 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007634/0.2692, allocations: 95.84 kB / 385.5 MB, free: 4.418 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002695/0.2695, allocations: 147.4 kB / 385.6 MB, free: 4.273 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006502/0.2702, allocations: 221.2 kB / 385.9 MB, free: 4.051 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00286/0.2731, allocations: 1.071 MB / 386.9 MB, free: 2.977 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.2731, allocations: 0 / 386.9 MB, free: 2.977 MB / 282.7 MB Notification: Performance of FrontEnd: time 4.329e-06/0.2732, allocations: 0 / 386.9 MB, free: 2.977 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.999e-05/0.2732, allocations: 4 kB / 386.9 MB, free: 2.973 MB / 282.7 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.004054/0.2773, allocations: 1.083 MB / 388 MB, free: 1.84 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.558e-05/0.2774, allocations: 8.031 kB / 388 MB, free: 1.832 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001108/0.2785, allocations: 134.7 kB / 388.2 MB, free: 1.699 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002431/0.281, allocations: 0.6212 MB / 388.8 MB, free: 1.031 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001111/0.2812, allocations: 58 kB / 388.8 MB, free: 0.9766 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002772/0.2815, allocations: 76 kB / 388.9 MB, free: 0.9023 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003609/0.2851, allocations: 0.7754 MB / 389.7 MB, free: 96 kB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.8e-05/0.2852, allocations: 7.844 kB / 389.7 MB, free: 88 kB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001828/0.2854, allocations: 36 kB / 389.7 MB, free: 52 kB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.118e-05/0.2855, allocations: 23.94 kB / 389.8 MB, free: 28 kB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4378/0.7233, allocations: 0.5165 MB / 390.3 MB, free: 20.75 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02006/0.7435, allocations: 3.356 MB / 393.6 MB, free: 18.75 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001295/0.7448, allocations: 230.8 kB / 393.8 MB, free: 18.65 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.148e-05/0.7449, allocations: 5.391 kB / 393.9 MB, free: 18.65 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.12e-05/0.745, allocations: 33.69 kB / 393.9 MB, free: 18.61 MB / 282.7 MB Notification: Performance of pre-optimization done (n=25): time 4.979e-06/0.745, allocations: 0 / 393.9 MB, free: 18.61 MB / 282.7 MB Notification: Performance of matching and sorting (n=28): time 0.005111/0.7502, allocations: 1.086 MB / 395 MB, free: 17.9 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.777e-05/0.7503, allocations: 80.5 kB / 395.1 MB, free: 17.8 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002317/0.7526, allocations: 0.6696 MB / 395.7 MB, free: 17.5 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 8.824e-05/0.7528, allocations: 31.27 kB / 395.8 MB, free: 17.47 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000578/0.7534, allocations: 0.5151 MB / 396.3 MB, free: 17.02 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001916/0.7536, allocations: 101.9 kB / 396.4 MB, free: 16.95 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.138e-05/0.7537, allocations: 10.25 kB / 396.4 MB, free: 16.94 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001299/0.7539, allocations: 335.3 kB / 396.7 MB, free: 16.62 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007754/0.7547, allocations: 134.9 kB / 396.8 MB, free: 16.57 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009897/0.7557, allocations: 420.4 kB / 397.2 MB, free: 16.14 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001023/0.7567, allocations: 202.5 kB / 397.4 MB, free: 16.05 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-05/0.7568, allocations: 2.281 kB / 397.4 MB, free: 16.05 MB / 282.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.002977/0.7598, allocations: 0.5697 MB / 398 MB, free: 15.8 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.943e-05/0.7599, allocations: 10.19 kB / 398 MB, free: 15.8 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.247e-05/0.76, allocations: 14.06 kB / 398 MB, free: 15.8 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003418/0.7604, allocations: 34.81 kB / 398.1 MB, free: 15.79 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001444/0.7618, allocations: 142.4 kB / 398.2 MB, free: 15.77 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001814/0.7637, allocations: 1.3 MB / 399.5 MB, free: 14.45 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001396/0.7652, allocations: 35.19 kB / 399.5 MB, free: 14.44 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001621/0.7654, allocations: 34.88 kB / 399.6 MB, free: 14.43 MB / 282.7 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 (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.0009655/0.7664, allocations: 248.5 kB / 399.8 MB, free: 14.23 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003652/0.7668, allocations: 70.22 kB / 399.9 MB, free: 14.19 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001768/0.7686, allocations: 330.8 kB / 400.2 MB, free: 14.04 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.628e-05/0.7686, allocations: 3.281 kB / 400.2 MB, free: 14.04 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.027e-05/0.7687, allocations: 1.844 kB / 400.2 MB, free: 14.04 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.461e-05/0.7687, allocations: 1.5 kB / 400.2 MB, free: 14.04 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004708/0.7734, allocations: 1.077 MB / 401.3 MB, free: 13.39 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.425e-05/0.7735, allocations: 2.984 kB / 401.3 MB, free: 13.39 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008523/0.7744, allocations: 68.11 kB / 401.4 MB, free: 13.38 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002243/0.7746, allocations: 19.72 kB / 401.4 MB, free: 13.37 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.975e-05/0.7747, allocations: 7.406 kB / 401.4 MB, free: 13.37 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001521/0.7762, allocations: 1.281 MB / 402.7 MB, free: 12.06 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.398e-06/0.7763, allocations: 2.531 kB / 402.7 MB, free: 12.06 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002516/0.7788, allocations: 0.6605 MB / 403.3 MB, free: 11.57 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006124/0.7795, allocations: 164.6 kB / 403.5 MB, free: 11.43 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001886/0.7797, allocations: 8.828 kB / 403.5 MB, free: 11.42 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007808/0.7805, allocations: 25.92 kB / 403.5 MB, free: 11.41 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001629/0.7807, allocations: 29.56 kB / 403.6 MB, free: 11.4 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.955e-05/0.7808, allocations: 16.62 kB / 403.6 MB, free: 11.39 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.001606/0.7824, allocations: 461.9 kB / 404 MB, free: 11.19 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.242e-06/0.7825, allocations: 0 / 404 MB, free: 11.19 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001981/0.7845, allocations: 159.2 kB / 404.2 MB, free: 11.17 MB / 282.7 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 (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.0004191/0.785, allocations: 118.9 kB / 404.3 MB, free: 11.07 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.002445/0.7874, allocations: 471.4 kB / 404.8 MB, free: 10.85 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.376e-05/0.7875, allocations: 1.031 kB / 404.8 MB, free: 10.85 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001052/0.7886, allocations: 246 kB / 405 MB, free: 10.7 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002548/0.7912, allocations: 162.9 kB / 405.2 MB, free: 10.64 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006752/0.798, allocations: 1.772 MB / 406.9 MB, free: 9.473 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001021/0.7991, allocations: 0.9622 MB / 407.9 MB, free: 8.758 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003678/0.7995, allocations: 49.83 kB / 407.9 MB, free: 8.75 MB / 282.7 MB Notification: Performance of SimCode: time 1.933e-06/0.7995, allocations: 0 / 407.9 MB, free: 8.75 MB / 282.7 MB Notification: Performance of Templates: time 0.04402/0.8436, allocations: 12.6 MB / 420.5 MB, free: 0.875 MB / 282.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Start/DCPM_Start.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches