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.001029/0.00103, allocations: 171.1 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.669/1.669, allocations: 205.4 MB / 222.9 MB, free: 9.016 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.0007752/0.0007752, allocations: 89.36 kB / 271.2 MB, free: 8.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003517/0.0003519, allocations: 12 kB / 327.5 MB, free: 15.87 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2572/0.2576, allocations: 47.57 MB / 375.1 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.005717/0.2633, allocations: 6.236 MB / 381.3 MB, free: 40.54 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003852/0.2672, allocations: 2.223 MB / 383.6 MB, free: 38.7 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008397/0.2681, allocations: 15.72 kB / 383.6 MB, free: 38.7 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001273/0.2694, allocations: 428.6 kB / 384 MB, free: 38.4 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009722/0.2704, allocations: 312.1 kB / 384.3 MB, free: 38.13 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003476/0.2707, allocations: 125.8 kB / 384.4 MB, free: 38.03 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001121/0.2719, allocations: 1.117 MB / 385.5 MB, free: 37.34 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00059/0.2725, allocations: 437.2 kB / 386 MB, free: 37.08 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00062/0.2731, allocations: 369.5 kB / 386.3 MB, free: 36.88 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000443/0.2736, allocations: 412.2 kB / 386.7 MB, free: 36.61 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000107/0.2737, allocations: 53.44 kB / 386.8 MB, free: 36.61 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002929/0.274, allocations: 97.88 kB / 386.9 MB, free: 36.59 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001146/0.2741, allocations: 154.3 kB / 387 MB, free: 36.46 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004012/0.2745, allocations: 491.8 kB / 387.5 MB, free: 36.13 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008627/0.2754, allocations: 1.118 MB / 388.6 MB, free: 35.11 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.155e-06/0.2754, allocations: 0 / 388.6 MB, free: 35.11 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.505e-06/0.2754, allocations: 3.938 kB / 388.6 MB, free: 35.11 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.517e-05/0.2754, allocations: 0 / 388.6 MB, free: 35.11 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.001745/0.2772, allocations: 1.095 MB / 389.7 MB, free: 33.96 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.396e-05/0.2772, allocations: 8.031 kB / 389.7 MB, free: 33.96 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004767/0.2777, allocations: 143.6 kB / 389.9 MB, free: 33.82 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008388/0.2786, allocations: 0.6377 MB / 390.5 MB, free: 33.13 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.115e-05/0.2786, allocations: 66.38 kB / 390.6 MB, free: 33.07 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.048e-05/0.2787, allocations: 80.28 kB / 390.6 MB, free: 32.99 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001094/0.2798, allocations: 0.7832 MB / 391.4 MB, free: 32.18 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.755e-05/0.2799, allocations: 7.984 kB / 391.4 MB, free: 32.17 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.763e-05/0.2799, allocations: 32 kB / 391.5 MB, free: 32.14 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.422e-05/0.2799, allocations: 16 kB / 391.5 MB, free: 32.12 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008737/0.2808, allocations: 0.5309 MB / 392 MB, free: 31.59 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003203/0.284, allocations: 3.411 MB / 395.4 MB, free: 27.97 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004072/0.2845, allocations: 234.5 kB / 395.7 MB, free: 27.73 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002272/0.2847, allocations: 121.5 kB / 395.8 MB, free: 27.61 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.189e-05/0.2847, allocations: 11.97 kB / 395.8 MB, free: 27.6 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.911e-05/0.2848, allocations: 34.56 kB / 395.8 MB, free: 27.56 MB / 298.7 MB Notification: Performance of pre-optimization done (n=25): time 2.795e-06/0.2848, allocations: 4 kB / 395.8 MB, free: 27.55 MB / 298.7 MB Notification: Performance of matching and sorting (n=28): time 0.00177/0.2866, allocations: 1.087 MB / 396.9 MB, free: 26.39 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.602e-05/0.2866, allocations: 81.11 kB / 397 MB, free: 26.3 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007375/0.2873, allocations: 0.7271 MB / 397.7 MB, free: 25.56 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.705e-05/0.2874, allocations: 33.7 kB / 397.8 MB, free: 25.52 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002117/0.2876, allocations: 0.4904 MB / 398.2 MB, free: 25.02 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.057e-05/0.2876, allocations: 102.5 kB / 398.3 MB, free: 24.92 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.728e-05/0.2877, allocations: 12 kB / 398.4 MB, free: 24.91 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001018/0.2878, allocations: 382.7 kB / 398.7 MB, free: 24.53 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000234/0.288, allocations: 133.2 kB / 398.9 MB, free: 24.4 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003239/0.2884, allocations: 426.1 kB / 399.3 MB, free: 23.85 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006015/0.289, allocations: 0.5754 MB / 399.8 MB, free: 23.14 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.289, allocations: 4 kB / 399.9 MB, free: 23.13 MB / 298.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.000848/0.2898, allocations: 0.6305 MB / 400.5 MB, free: 22.49 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.194e-05/0.2899, allocations: 8 kB / 400.5 MB, free: 22.48 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.254e-05/0.2899, allocations: 8 kB / 400.5 MB, free: 22.48 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001484/0.29, allocations: 36.84 kB / 400.5 MB, free: 22.44 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003793/0.2904, allocations: 144.1 kB / 400.7 MB, free: 22.3 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006825/0.2911, allocations: 1.288 MB / 402 MB, free: 20.88 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000432/0.2916, allocations: 39.95 kB / 402 MB, free: 20.84 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.327e-05/0.2916, allocations: 32 kB / 402 MB, free: 20.81 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.0003395/0.2919, allocations: 237.5 kB / 402.3 MB, free: 20.57 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.689e-05/0.292, allocations: 71.16 kB / 402.3 MB, free: 20.5 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005826/0.2926, allocations: 329.5 kB / 402.7 MB, free: 20.16 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.2926, allocations: 4 kB / 402.7 MB, free: 20.16 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.811e-05/0.2927, allocations: 3.938 kB / 402.7 MB, free: 20.16 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.172e-06/0.2927, allocations: 11.92 kB / 402.7 MB, free: 20.14 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001347/0.294, allocations: 1.121 MB / 403.8 MB, free: 18.95 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.2941, allocations: 0 / 403.8 MB, free: 18.95 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002381/0.2943, allocations: 68.12 kB / 403.9 MB, free: 18.88 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.838e-05/0.2944, allocations: 20.84 kB / 403.9 MB, free: 18.86 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.924e-05/0.2944, allocations: 8 kB / 403.9 MB, free: 18.85 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000612/0.295, allocations: 1.272 MB / 405.2 MB, free: 17.44 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.295, allocations: 7.969 kB / 405.2 MB, free: 17.43 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007148/0.2958, allocations: 0.5755 MB / 405.7 MB, free: 16.82 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001556/0.2959, allocations: 172.2 kB / 405.9 MB, free: 16.63 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.925e-05/0.296, allocations: 8 kB / 405.9 MB, free: 16.62 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002861/0.2963, allocations: 27.98 kB / 406 MB, free: 16.59 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.784e-05/0.2964, allocations: 23.91 kB / 406 MB, free: 16.57 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.44e-05/0.2964, allocations: 11.98 kB / 406 MB, free: 16.56 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0005431/0.2969, allocations: 0.4951 MB / 406.5 MB, free: 16.07 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.297, allocations: 0 / 406.5 MB, free: 16.07 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005876/0.2976, allocations: 160 kB / 406.6 MB, free: 15.91 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.0001741/0.2977, allocations: 123.1 kB / 406.8 MB, free: 15.78 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007127/0.2985, allocations: 469.2 kB / 407.2 MB, free: 15.31 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.005e-06/0.2985, allocations: 3.938 kB / 407.2 MB, free: 15.31 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002959/0.2988, allocations: 242.4 kB / 407.5 MB, free: 15.06 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001023/0.2998, allocations: 179.6 kB / 407.6 MB, free: 14.89 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001866/0.3017, allocations: 1.778 MB / 409.4 MB, free: 13.05 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000312/0.302, allocations: 0.9414 MB / 410.4 MB, free: 12.08 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001064/0.3021, allocations: 55.44 kB / 410.4 MB, free: 12.03 MB / 298.7 MB Notification: Performance of SimCode: time 4.51e-07/0.3021, allocations: 0 / 410.4 MB, free: 12.03 MB / 298.7 MB Notification: Performance of Templates: time 0.01416/0.3163, allocations: 13.25 MB / 423.7 MB, free: 14.79 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