Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_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.DCPM_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_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_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001011/0.001011, allocations: 195.9 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.297/1.297, allocations: 226.5 MB / 244.3 MB, free: 6.574 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009579/0.0009578, allocations: 105.4 kB / 296.4 MB, free: 6.762 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002029/0.0002031, allocations: 4 kB / 356.2 MB, free: 10.97 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2796/0.2798, allocations: 51.29 MB / 407.5 MB, free: 27.79 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.005785/0.2857, allocations: 6.292 MB / 413.8 MB, free: 21.48 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003939/0.2897, allocations: 2.217 MB / 416 MB, free: 19.27 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000633/0.2904, allocations: 16 kB / 416 MB, free: 19.26 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001184/0.2915, allocations: 421.6 kB / 416.4 MB, free: 18.84 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007743/0.2923, allocations: 317.6 kB / 416.7 MB, free: 18.53 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003488/0.2927, allocations: 119.9 kB / 416.9 MB, free: 18.41 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008092/0.2935, allocations: 1.078 MB / 417.9 MB, free: 17.33 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004724/0.294, allocations: 368.6 kB / 418.3 MB, free: 16.96 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004728/0.2945, allocations: 374.3 kB / 418.7 MB, free: 16.59 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003354/0.2948, allocations: 418 kB / 419.1 MB, free: 16.18 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.849e-05/0.2949, allocations: 52 kB / 419.1 MB, free: 16.13 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002373/0.2952, allocations: 91.97 kB / 419.2 MB, free: 16.04 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001031/0.2953, allocations: 155.2 kB / 419.4 MB, free: 15.89 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001497/0.2954, allocations: 221.2 kB / 419.6 MB, free: 15.66 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007775/0.2962, allocations: 1.114 MB / 420.7 MB, free: 14.55 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.905e-06/0.2962, allocations: 4 kB / 420.7 MB, free: 14.54 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.385e-06/0.2962, allocations: 4 kB / 420.7 MB, free: 14.54 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.295e-05/0.2963, allocations: 0 / 420.7 MB, free: 14.54 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: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.001661/0.2979, allocations: 1.102 MB / 421.8 MB, free: 13.39 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.265e-05/0.298, allocations: 8.031 kB / 421.8 MB, free: 13.38 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004667/0.2985, allocations: 150.6 kB / 422 MB, free: 13.23 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000765/0.2992, allocations: 0.6096 MB / 422.6 MB, free: 12.58 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.732e-05/0.2993, allocations: 61.94 kB / 422.6 MB, free: 12.52 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.964e-05/0.2994, allocations: 83.95 kB / 422.7 MB, free: 12.44 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001121/0.3005, allocations: 0.7754 MB / 423.5 MB, free: 11.63 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.334e-05/0.3005, allocations: 11.91 kB / 423.5 MB, free: 11.62 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.171e-05/0.3006, allocations: 28 kB / 423.5 MB, free: 11.59 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.713e-05/0.3006, allocations: 20 kB / 423.5 MB, free: 11.57 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009128/0.3016, allocations: 0.527 MB / 424.1 MB, free: 11.04 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00329/0.3049, allocations: 3.403 MB / 427.5 MB, free: 7.43 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004325/0.3053, allocations: 242.5 kB / 427.7 MB, free: 7.184 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002133/0.3055, allocations: 128.7 kB / 427.8 MB, free: 7.055 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.436e-05/0.3056, allocations: 8 kB / 427.8 MB, free: 7.047 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.854e-05/0.3056, allocations: 30.56 kB / 427.9 MB, free: 7.008 MB / 298.7 MB Notification: Performance of pre-optimization done (n=25): time 1.393e-06/0.3056, allocations: 0 / 427.9 MB, free: 7.008 MB / 298.7 MB Notification: Performance of matching and sorting (n=28): time 0.001827/0.3074, allocations: 1.081 MB / 429 MB, free: 5.852 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.242e-05/0.3075, allocations: 81.34 kB / 429 MB, free: 5.754 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007521/0.3083, allocations: 0.7309 MB / 429.8 MB, free: 5.02 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.91e-05/0.3083, allocations: 29.7 kB / 429.8 MB, free: 4.984 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000235/0.3085, allocations: 0.4904 MB / 430.3 MB, free: 4.484 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.67e-05/0.3086, allocations: 114.5 kB / 430.4 MB, free: 4.371 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.812e-05/0.3086, allocations: 16 kB / 430.4 MB, free: 4.355 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001291/0.3088, allocations: 378.7 kB / 430.8 MB, free: 3.977 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002392/0.309, allocations: 125.2 kB / 430.9 MB, free: 3.852 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003373/0.3093, allocations: 430.2 kB / 431.3 MB, free: 3.297 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003102/0.3097, allocations: 195.9 kB / 431.5 MB, free: 3.105 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.3097, allocations: 3.938 kB / 431.5 MB, free: 3.102 MB / 298.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0008592/0.3105, allocations: 0.6187 MB / 432.1 MB, free: 2.473 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.36e-05/0.3106, allocations: 12 kB / 432.2 MB, free: 2.461 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.252e-05/0.3106, allocations: 8 kB / 432.2 MB, free: 2.453 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001614/0.3108, allocations: 40.78 kB / 432.2 MB, free: 2.41 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003894/0.3112, allocations: 136.2 kB / 432.3 MB, free: 2.277 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007091/0.3119, allocations: 1.291 MB / 433.6 MB, free: 0.8516 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003951/0.3123, allocations: 36.14 kB / 433.7 MB, free: 0.8164 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.39e-05/0.3123, allocations: 39.98 kB / 433.7 MB, free: 0.7773 MB / 298.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.0002689/0.3126, allocations: 233.5 kB / 433.9 MB, free: 0.5391 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.927e-05/0.3127, allocations: 75.06 kB / 434 MB, free: 476 kB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000563/0.3133, allocations: 337.9 kB / 434.3 MB, free: 128 kB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.517e-06/0.3133, allocations: 4 kB / 434.3 MB, free: 124 kB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.524e-06/0.3133, allocations: 0 / 434.3 MB, free: 124 kB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.079e-06/0.3133, allocations: 3.984 kB / 434.3 MB, free: 120 kB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001639/0.3149, allocations: 1.123 MB / 435.5 MB, free: 14.92 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.522e-06/0.315, allocations: 4 kB / 435.5 MB, free: 14.91 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002701/0.3152, allocations: 64.19 kB / 435.5 MB, free: 14.85 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.131e-05/0.3153, allocations: 24.78 kB / 435.6 MB, free: 14.82 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.356e-05/0.3154, allocations: 8 kB / 435.6 MB, free: 14.82 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009475/0.3163, allocations: 1.276 MB / 436.8 MB, free: 13.4 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.853e-06/0.3163, allocations: 8.016 kB / 436.8 MB, free: 13.39 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009089/0.3173, allocations: 0.5716 MB / 437.4 MB, free: 12.78 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001958/0.3175, allocations: 168.3 kB / 437.6 MB, free: 12.6 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7e-05/0.3175, allocations: 8 kB / 437.6 MB, free: 12.59 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003265/0.3179, allocations: 31.97 kB / 437.6 MB, free: 12.56 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.543e-05/0.318, allocations: 23.92 kB / 437.6 MB, free: 12.54 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.689e-05/0.318, allocations: 8 kB / 437.6 MB, free: 12.53 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0006659/0.3187, allocations: 0.4951 MB / 438.1 MB, free: 12.04 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3187, allocations: 0 / 438.1 MB, free: 12.04 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006603/0.3193, allocations: 160 kB / 438.3 MB, free: 11.88 MB / 314.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.0002505/0.3196, allocations: 119.2 kB / 438.4 MB, free: 11.75 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0009267/0.3205, allocations: 480.6 kB / 438.9 MB, free: 11.27 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.706e-06/0.3205, allocations: 0 / 438.9 MB, free: 11.27 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003986/0.321, allocations: 238.5 kB / 439.1 MB, free: 11.02 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001004/0.322, allocations: 185.4 kB / 439.3 MB, free: 10.86 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002676/0.3247, allocations: 1.775 MB / 441.1 MB, free: 9.02 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005856/0.3253, allocations: 0.9414 MB / 442 MB, free: 8.047 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001251/0.3254, allocations: 51.38 kB / 442.1 MB, free: 7.996 MB / 314.7 MB Notification: Performance of SimCode: time 3.61e-07/0.3254, allocations: 3.938 kB / 442.1 MB, free: 7.992 MB / 314.7 MB Notification: Performance of Templates: time 0.02007/0.3455, allocations: 13.28 MB / 455.4 MB, free: 10.74 MB / 330.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Start/DCPM_Start.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches