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.001172/0.001172, allocations: 178.6 kB / 16.41 MB, free: 5.73 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.611/1.611, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.0007302/0.0007302, allocations: 85.48 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002804/0.0002804, allocations: 8 kB / 327 MB, free: 188 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2476/0.2479, allocations: 47.57 MB / 374.6 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.00731/0.2552, allocations: 6.233 MB / 380.8 MB, free: 40.56 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004912/0.2602, allocations: 2.22 MB / 383 MB, free: 38.72 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008737/0.2611, allocations: 20.72 kB / 383 MB, free: 38.72 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001404/0.2626, allocations: 417.7 kB / 383.4 MB, free: 38.43 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001002/0.2636, allocations: 314 kB / 383.7 MB, free: 38.16 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003833/0.264, allocations: 126.8 kB / 383.9 MB, free: 38.05 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001169/0.2651, allocations: 1.075 MB / 384.9 MB, free: 37.4 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006359/0.2658, allocations: 361.1 kB / 385.3 MB, free: 37.18 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005883/0.2664, allocations: 369.3 kB / 385.7 MB, free: 36.98 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004746/0.2669, allocations: 411.1 kB / 386.1 MB, free: 36.71 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001157/0.267, allocations: 57.17 kB / 386.1 MB, free: 36.71 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003075/0.2673, allocations: 94.88 kB / 386.2 MB, free: 36.69 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001195/0.2674, allocations: 158.2 kB / 386.4 MB, free: 36.56 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002115/0.2677, allocations: 216.7 kB / 386.6 MB, free: 36.43 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001032/0.2687, allocations: 1.126 MB / 387.7 MB, free: 35.55 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.963e-06/0.2687, allocations: 3.938 kB / 387.7 MB, free: 35.55 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.735e-06/0.2687, allocations: 1.219 kB / 387.7 MB, free: 35.55 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.908e-05/0.2688, allocations: 0 / 387.7 MB, free: 35.55 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.001815/0.2706, allocations: 1.104 MB / 388.8 MB, free: 34.49 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.901e-05/0.2706, allocations: 12.03 kB / 388.8 MB, free: 34.48 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004736/0.2711, allocations: 146.6 kB / 389 MB, free: 34.34 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008059/0.2719, allocations: 0.6096 MB / 389.6 MB, free: 33.68 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.386e-05/0.272, allocations: 62 kB / 389.6 MB, free: 33.62 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.567e-05/0.2721, allocations: 87.88 kB / 389.7 MB, free: 33.54 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001234/0.2733, allocations: 0.7755 MB / 390.5 MB, free: 32.73 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.067e-05/0.2734, allocations: 7.984 kB / 390.5 MB, free: 32.72 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.183e-05/0.2734, allocations: 32 kB / 390.5 MB, free: 32.69 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.684e-05/0.2735, allocations: 20 kB / 390.6 MB, free: 32.67 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008793/0.2743, allocations: 0.5231 MB / 391.1 MB, free: 32.15 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003416/0.2778, allocations: 3.408 MB / 394.5 MB, free: 28.54 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004511/0.2782, allocations: 246.4 kB / 394.7 MB, free: 28.29 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002168/0.2785, allocations: 121.7 kB / 394.8 MB, free: 28.16 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.937e-05/0.2785, allocations: 4 kB / 394.8 MB, free: 28.16 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.63e-05/0.2785, allocations: 34.56 kB / 394.9 MB, free: 28.12 MB / 298.7 MB Notification: Performance of pre-optimization done (n=25): time 2.525e-06/0.2785, allocations: 0 / 394.9 MB, free: 28.12 MB / 298.7 MB Notification: Performance of matching and sorting (n=28): time 0.001917/0.2805, allocations: 1.087 MB / 396 MB, free: 26.96 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.04e-05/0.2805, allocations: 77.11 kB / 396 MB, free: 26.86 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007737/0.2813, allocations: 0.7348 MB / 396.8 MB, free: 26.12 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.095e-05/0.2813, allocations: 37.7 kB / 396.8 MB, free: 26.08 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002323/0.2816, allocations: 494.2 kB / 397.3 MB, free: 25.59 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.715e-05/0.2816, allocations: 110.5 kB / 397.4 MB, free: 25.48 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.68e-05/0.2817, allocations: 12 kB / 397.4 MB, free: 25.46 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.592e-05/0.2818, allocations: 382.7 kB / 397.8 MB, free: 25.08 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000242/0.282, allocations: 125.2 kB / 397.9 MB, free: 24.96 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003493/0.2824, allocations: 426.2 kB / 398.3 MB, free: 24.41 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003132/0.2827, allocations: 199.8 kB / 398.5 MB, free: 24.21 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.257e-06/0.2827, allocations: 4 kB / 398.5 MB, free: 24.21 MB / 298.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0008784/0.2836, allocations: 0.607 MB / 399.1 MB, free: 23.59 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.693e-05/0.2836, allocations: 12 kB / 399.1 MB, free: 23.58 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.216e-05/0.2836, allocations: 11.94 kB / 399.2 MB, free: 23.57 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001618/0.2838, allocations: 40.78 kB / 399.2 MB, free: 23.53 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003943/0.2842, allocations: 140.2 kB / 399.3 MB, free: 23.39 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008146/0.285, allocations: 1.295 MB / 400.6 MB, free: 21.96 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000445/0.2855, allocations: 39.84 kB / 400.7 MB, free: 21.92 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.324e-05/0.2855, allocations: 32 kB / 400.7 MB, free: 21.89 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.0002998/0.2859, allocations: 229.6 kB / 400.9 MB, free: 21.65 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.646e-05/0.2859, allocations: 75.25 kB / 401 MB, free: 21.58 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005869/0.2865, allocations: 337.9 kB / 401.3 MB, free: 21.24 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.19e-06/0.2866, allocations: 11.98 kB / 401.3 MB, free: 21.23 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.2866, allocations: 3.953 kB / 401.3 MB, free: 21.22 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.2866, allocations: 0 / 401.3 MB, free: 21.22 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001338/0.2879, allocations: 1.136 MB / 402.5 MB, free: 20.01 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.2879, allocations: 0 / 402.5 MB, free: 20.01 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002582/0.2882, allocations: 64.17 kB / 402.5 MB, free: 19.95 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.968e-05/0.2883, allocations: 24.8 kB / 402.6 MB, free: 19.92 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.876e-05/0.2883, allocations: 8 kB / 402.6 MB, free: 19.91 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006816/0.289, allocations: 1.272 MB / 403.8 MB, free: 18.51 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.289, allocations: 4.031 kB / 403.9 MB, free: 18.5 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008908/0.2899, allocations: 0.5678 MB / 404.4 MB, free: 17.89 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001764/0.2901, allocations: 176.2 kB / 404.6 MB, free: 17.7 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.669e-05/0.2902, allocations: 8 kB / 404.6 MB, free: 17.7 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000315/0.2905, allocations: 27.98 kB / 404.6 MB, free: 17.67 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.742e-05/0.2906, allocations: 23.92 kB / 404.7 MB, free: 17.64 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.436e-05/0.2906, allocations: 8 kB / 404.7 MB, free: 17.64 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0005623/0.2912, allocations: 0.4912 MB / 405.1 MB, free: 17.15 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2912, allocations: 4 kB / 405.2 MB, free: 17.14 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006638/0.2919, allocations: 164 kB / 405.3 MB, free: 16.98 MB / 298.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.0002448/0.2921, allocations: 115.2 kB / 405.4 MB, free: 16.86 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007996/0.2929, allocations: 475.9 kB / 405.9 MB, free: 16.39 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.2929, allocations: 0 / 405.9 MB, free: 16.39 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003373/0.2933, allocations: 247.7 kB / 406.1 MB, free: 16.13 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009138/0.2942, allocations: 180.9 kB / 406.3 MB, free: 15.96 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002092/0.2963, allocations: 1.779 MB / 408.1 MB, free: 14.13 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003614/0.2967, allocations: 0.9491 MB / 409 MB, free: 13.15 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000108/0.2968, allocations: 51.44 kB / 409.1 MB, free: 13.1 MB / 298.7 MB Notification: Performance of SimCode: time 6.01e-07/0.2968, allocations: 0 / 409.1 MB, free: 13.1 MB / 298.7 MB Notification: Performance of Templates: time 0.01724/0.314, allocations: 13.26 MB / 422.3 MB, free: 15.85 MB / 314.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/jenkins/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