Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001186/0.001186, allocations: 108.3 kB / 16.51 MB, free: 6.707 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001076/0.001076, allocations: 190.5 kB / 17.43 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.318/1.318, allocations: 222.9 MB / 241.1 MB, free: 15.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009349/0.0009349, allocations: 42.98 kB / 300 MB, free: 6.32 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08973/0.09068, allocations: 49.45 MB / 349.4 MB, free: 4.863 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.007943/0.09866, allocations: 7.109 MB / 356.5 MB, free: 13.71 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00348/0.1022, allocations: 2.333 MB / 358.8 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003801/0.1026, allocations: 19.94 kB / 358.9 MB, free: 11.35 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001111/0.1037, allocations: 445.7 kB / 359.3 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006564/0.1044, allocations: 329.7 kB / 359.6 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003168/0.1047, allocations: 179.8 kB / 359.8 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00124/0.106, allocations: 1.132 MB / 360.9 MB, free: 9.277 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000579/0.1066, allocations: 438.7 kB / 361.4 MB, free: 8.828 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004455/0.107, allocations: 422 kB / 361.8 MB, free: 8.414 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004144/0.1074, allocations: 465.8 kB / 362.2 MB, free: 7.957 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001035/0.1076, allocations: 72 kB / 362.3 MB, free: 7.887 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002384/0.1078, allocations: 108 kB / 362.4 MB, free: 7.781 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001424/0.1079, allocations: 187.1 kB / 362.6 MB, free: 7.598 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004928/0.1084, allocations: 0.5052 MB / 363.1 MB, free: 7.09 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001201/0.1097, allocations: 1.382 MB / 364.5 MB, free: 5.703 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.728e-06/0.1097, allocations: 0 / 364.5 MB, free: 5.703 MB / 302.1 MB Notification: Performance of FrontEnd: time 6.52e-07/0.1097, allocations: 3.938 kB / 364.5 MB, free: 5.699 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.375e-05/0.1097, allocations: 0 / 364.5 MB, free: 5.699 MB / 302.1 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.001899/0.1116, allocations: 1.25 MB / 365.7 MB, free: 4.398 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.75e-05/0.1116, allocations: 8.031 kB / 365.7 MB, free: 4.391 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004961/0.1121, allocations: 143.6 kB / 365.9 MB, free: 4.25 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009131/0.1131, allocations: 0.6416 MB / 366.5 MB, free: 3.562 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.662e-05/0.1132, allocations: 62.31 kB / 366.6 MB, free: 3.504 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001072/0.1133, allocations: 80.28 kB / 366.7 MB, free: 3.426 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001303/0.1146, allocations: 0.7871 MB / 367.4 MB, free: 2.605 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.515e-05/0.1146, allocations: 0 / 367.4 MB, free: 2.605 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.58e-05/0.1147, allocations: 32 kB / 367.5 MB, free: 2.574 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.801e-05/0.1147, allocations: 20 kB / 367.5 MB, free: 2.555 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001055/0.1158, allocations: 0.5231 MB / 368 MB, free: 2.035 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1716/0.2874, allocations: 3.385 MB / 371.4 MB, free: 23.79 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005017/0.288, allocations: 234 kB / 371.6 MB, free: 23.77 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002488/0.2882, allocations: 113.9 kB / 371.7 MB, free: 23.76 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.778e-05/0.2883, allocations: 5.781 kB / 371.7 MB, free: 23.76 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.841e-05/0.2883, allocations: 36.59 kB / 371.8 MB, free: 23.72 MB / 302.1 MB Notification: Performance of pre-optimization done (n=25): time 2.154e-06/0.2883, allocations: 0 / 371.8 MB, free: 23.72 MB / 302.1 MB Notification: Performance of matching and sorting (n=28): time 0.002041/0.2903, allocations: 1.046 MB / 372.8 MB, free: 23.27 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.268e-05/0.2904, allocations: 80.09 kB / 372.9 MB, free: 23.17 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009389/0.2913, allocations: 0.7378 MB / 373.6 MB, free: 23.04 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.854e-05/0.2914, allocations: 29.48 kB / 373.7 MB, free: 23.01 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003045/0.2917, allocations: 499.4 kB / 374.2 MB, free: 22.64 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.229e-05/0.2918, allocations: 105.7 kB / 374.3 MB, free: 22.56 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001446/0.2919, allocations: 116.4 kB / 374.4 MB, free: 22.49 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001106/0.292, allocations: 381.3 kB / 374.8 MB, free: 22.15 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002725/0.2923, allocations: 121.4 kB / 374.9 MB, free: 22.11 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003871/0.2927, allocations: 417.2 kB / 375.3 MB, free: 21.69 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006496/0.2934, allocations: 0.5765 MB / 375.9 MB, free: 21.19 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.861e-06/0.2934, allocations: 3.438 kB / 375.9 MB, free: 21.19 MB / 302.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001058/0.2944, allocations: 0.6048 MB / 376.5 MB, free: 20.92 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.515e-05/0.2945, allocations: 10.25 kB / 376.5 MB, free: 20.92 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.717e-05/0.2945, allocations: 10.66 kB / 376.5 MB, free: 20.92 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001748/0.2947, allocations: 36.69 kB / 376.5 MB, free: 20.9 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004441/0.2951, allocations: 140.8 kB / 376.7 MB, free: 20.89 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007918/0.2959, allocations: 1.29 MB / 377.9 MB, free: 19.58 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000505/0.2964, allocations: 39.11 kB / 378 MB, free: 19.56 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.747e-05/0.2965, allocations: 30.12 kB / 378 MB, free: 19.56 MB / 302.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002924/0.2968, allocations: 236.3 kB / 378.2 MB, free: 19.36 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.22e-05/0.2969, allocations: 73.45 kB / 378.3 MB, free: 19.33 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000614/0.2975, allocations: 330.8 kB / 378.6 MB, free: 19.16 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.04e-06/0.2975, allocations: 7.391 kB / 378.6 MB, free: 19.16 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.938e-06/0.2975, allocations: 1.375 kB / 378.6 MB, free: 19.16 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.48e-06/0.2975, allocations: 1.359 kB / 378.6 MB, free: 19.16 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001556/0.2991, allocations: 1.101 MB / 379.7 MB, free: 18.49 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/0.2991, allocations: 5.469 kB / 379.8 MB, free: 18.49 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00026/0.2994, allocations: 56.86 kB / 379.8 MB, free: 18.48 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.817e-05/0.2995, allocations: 23.25 kB / 379.8 MB, free: 18.47 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.014e-05/0.2995, allocations: 8.969 kB / 379.8 MB, free: 18.47 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000628/0.3001, allocations: 1.28 MB / 381.1 MB, free: 17.16 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.3002, allocations: 2.25 kB / 381.1 MB, free: 17.16 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008447/0.301, allocations: 0.5562 MB / 381.7 MB, free: 16.8 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001967/0.3012, allocations: 178.4 kB / 381.9 MB, free: 16.64 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.442e-05/0.3013, allocations: 9.672 kB / 381.9 MB, free: 16.64 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003162/0.3016, allocations: 18.31 kB / 381.9 MB, free: 16.64 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.5e-05/0.3017, allocations: 19.7 kB / 381.9 MB, free: 16.64 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.767e-05/0.3017, allocations: 19.44 kB / 381.9 MB, free: 16.62 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006603/0.3024, allocations: 0.5008 MB / 382.4 MB, free: 16.4 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3024, allocations: 4 kB / 382.4 MB, free: 16.4 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007243/0.3031, allocations: 158.1 kB / 382.6 MB, free: 16.39 MB / 302.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001906/0.3033, allocations: 122.1 kB / 382.7 MB, free: 16.28 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008185/0.3042, allocations: 460.1 kB / 383.1 MB, free: 16.06 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.3042, allocations: 4.125 kB / 383.2 MB, free: 16.06 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003407/0.3045, allocations: 235.7 kB / 383.4 MB, free: 15.91 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009957/0.3055, allocations: 166.5 kB / 383.5 MB, free: 15.86 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002664/0.3082, allocations: 1.763 MB / 385.3 MB, free: 14.66 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004824/0.3087, allocations: 0.9452 MB / 386.3 MB, free: 13.95 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003985/0.3091, allocations: 89.16 kB / 386.3 MB, free: 13.92 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001132/0.3092, allocations: 46.98 kB / 386.4 MB, free: 13.91 MB / 302.1 MB Notification: Performance of SimCode: time 4.4e-07/0.3093, allocations: 1.438 kB / 386.4 MB, free: 13.91 MB / 302.1 MB Notification: Performance of Templates: time 0.01613/0.3254, allocations: 7.717 MB / 394.1 MB, free: 11.28 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches