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.001035/0.001035, allocations: 113.6 kB / 17.69 MB, free: 5.309 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.00113/0.00113, allocations: 191 kB / 18.63 MB, free: 4.375 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.356/1.356, allocations: 222.9 MB / 242.3 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009558/0.0009559, allocations: 50.98 kB / 302.1 MB, free: 5.188 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09084/0.09181, allocations: 49.45 MB / 351.5 MB, free: 3.711 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.007815/0.09966, allocations: 7.123 MB / 358.6 MB, free: 12.55 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003606/0.1033, allocations: 2.349 MB / 361 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004752/0.1038, allocations: 23.94 kB / 361 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001139/0.105, allocations: 0.4892 MB / 361.5 MB, free: 9.676 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007281/0.1057, allocations: 377 kB / 361.9 MB, free: 9.305 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003616/0.1061, allocations: 207.8 kB / 362.1 MB, free: 9.102 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0011/0.1072, allocations: 1.199 MB / 363.3 MB, free: 7.898 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006603/0.1079, allocations: 0.4997 MB / 363.8 MB, free: 7.379 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005076/0.1084, allocations: 462.1 kB / 364.2 MB, free: 6.926 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004831/0.1089, allocations: 0.49 MB / 364.7 MB, free: 6.434 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001169/0.109, allocations: 112 kB / 364.8 MB, free: 6.324 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002475/0.1093, allocations: 155.9 kB / 365 MB, free: 6.172 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001608/0.1094, allocations: 227.2 kB / 365.2 MB, free: 5.949 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004354/0.1099, allocations: 0.5443 MB / 365.7 MB, free: 5.402 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001193/0.1111, allocations: 1.436 MB / 367.2 MB, free: 3.961 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.1111, allocations: 0 / 367.2 MB, free: 3.961 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1111, allocations: 0 / 367.2 MB, free: 3.961 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.164e-05/0.1111, allocations: 0 / 367.2 MB, free: 3.961 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.001937/0.1131, allocations: 1.25 MB / 368.4 MB, free: 2.656 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.861e-05/0.1131, allocations: 15.83 kB / 368.4 MB, free: 2.641 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004654/0.1136, allocations: 147.6 kB / 368.6 MB, free: 2.496 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009822/0.1146, allocations: 0.6494 MB / 369.2 MB, free: 1.809 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.078e-05/0.1146, allocations: 58.38 kB / 369.3 MB, free: 1.75 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001236/0.1148, allocations: 84.28 kB / 369.4 MB, free: 1.668 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001252/0.116, allocations: 0.7793 MB / 370.2 MB, free: 0.8594 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.88e-05/0.1161, allocations: 0 / 370.2 MB, free: 0.8594 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.072e-05/0.1161, allocations: 39.94 kB / 370.2 MB, free: 0.8203 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.492e-05/0.1162, allocations: 20 kB / 370.2 MB, free: 0.8008 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009551/0.1171, allocations: 0.5191 MB / 370.7 MB, free: 288 kB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.204/0.3212, allocations: 3.348 MB / 374.1 MB, free: 23.74 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006873/0.3219, allocations: 235.9 kB / 374.3 MB, free: 23.64 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003518/0.3223, allocations: 113.3 kB / 374.4 MB, free: 23.6 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.156e-05/0.3223, allocations: 4.188 kB / 374.4 MB, free: 23.6 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.512e-05/0.3224, allocations: 37.09 kB / 374.5 MB, free: 23.55 MB / 302.1 MB Notification: Performance of pre-optimization done (n=25): time 3.256e-06/0.3224, allocations: 1.969 kB / 374.5 MB, free: 23.55 MB / 302.1 MB Notification: Performance of matching and sorting (n=28): time 0.002784/0.3252, allocations: 1.038 MB / 375.5 MB, free: 22.89 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.214e-05/0.3252, allocations: 82.55 kB / 375.6 MB, free: 22.8 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001376/0.3266, allocations: 0.7372 MB / 376.3 MB, free: 22.47 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.732e-05/0.3267, allocations: 31.08 kB / 376.3 MB, free: 22.43 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003738/0.3271, allocations: 0.4908 MB / 376.8 MB, free: 22.04 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.607e-05/0.3272, allocations: 106.1 kB / 376.9 MB, free: 21.96 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002019/0.3274, allocations: 114.3 kB / 377.1 MB, free: 21.89 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001429/0.3275, allocations: 380.5 kB / 377.4 MB, free: 21.55 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004183/0.328, allocations: 127.2 kB / 377.5 MB, free: 21.51 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005232/0.3285, allocations: 421.6 kB / 378 MB, free: 21.08 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008847/0.3294, allocations: 0.5747 MB / 378.5 MB, free: 20.58 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.613e-06/0.3294, allocations: 2.75 kB / 378.5 MB, free: 20.58 MB / 302.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001546/0.331, allocations: 0.6055 MB / 379.1 MB, free: 20.32 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.058e-05/0.331, allocations: 9.141 kB / 379.2 MB, free: 20.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.331e-05/0.3311, allocations: 10.31 kB / 379.2 MB, free: 20.32 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002137/0.3313, allocations: 37.89 kB / 379.2 MB, free: 20.3 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007061/0.332, allocations: 142.8 kB / 379.3 MB, free: 20.29 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009849/0.333, allocations: 1.387 MB / 380.7 MB, free: 18.88 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007353/0.3338, allocations: 32.67 kB / 380.8 MB, free: 18.87 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.062e-05/0.3338, allocations: 31.73 kB / 380.8 MB, free: 18.86 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.0004062/0.3342, allocations: 249.7 kB / 381 MB, free: 18.66 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001542/0.3344, allocations: 74.25 kB / 381.1 MB, free: 18.62 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009359/0.3354, allocations: 318.4 kB / 381.4 MB, free: 18.47 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.242e-06/0.3354, allocations: 7.047 kB / 381.4 MB, free: 18.47 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.3354, allocations: 1.562 kB / 381.4 MB, free: 18.47 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.783e-06/0.3354, allocations: 1.359 kB / 381.4 MB, free: 18.47 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00233/0.3377, allocations: 1.112 MB / 382.5 MB, free: 17.79 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.442e-06/0.3378, allocations: 2.156 kB / 382.5 MB, free: 17.79 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004361/0.3382, allocations: 57.48 kB / 382.6 MB, free: 17.79 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001217/0.3384, allocations: 23.31 kB / 382.6 MB, free: 17.77 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.211e-05/0.3384, allocations: 8.094 kB / 382.6 MB, free: 17.77 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000913/0.3393, allocations: 1.369 MB / 384 MB, free: 16.37 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.751e-06/0.3393, allocations: 6.312 kB / 384 MB, free: 16.37 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001253/0.3406, allocations: 0.5603 MB / 384.6 MB, free: 16.01 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003097/0.3409, allocations: 169.9 kB / 384.7 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001296/0.3411, allocations: 12.7 kB / 384.7 MB, free: 15.85 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005545/0.3417, allocations: 19.23 kB / 384.8 MB, free: 15.84 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001058/0.3418, allocations: 26 kB / 384.8 MB, free: 15.84 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.01e-05/0.3418, allocations: 16.27 kB / 384.8 MB, free: 15.83 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001065/0.3429, allocations: 0.5014 MB / 385.3 MB, free: 15.6 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.9e-07/0.3429, allocations: 0 / 385.3 MB, free: 15.6 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007448/0.3437, allocations: 157.1 kB / 385.5 MB, free: 15.59 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.00021/0.3439, allocations: 126.6 kB / 385.6 MB, free: 15.49 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008594/0.3447, allocations: 471.4 kB / 386 MB, free: 15.26 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.3448, allocations: 0 / 386 MB, free: 15.26 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003138/0.3451, allocations: 240.6 kB / 386.3 MB, free: 15.11 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008401/0.3459, allocations: 183 kB / 386.5 MB, free: 15.05 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002035/0.348, allocations: 1.409 MB / 387.9 MB, free: 14.21 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003996/0.3484, allocations: 0.94 MB / 388.8 MB, free: 13.5 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002974/0.3487, allocations: 88.58 kB / 388.9 MB, free: 13.47 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001034/0.3488, allocations: 47.72 kB / 388.9 MB, free: 13.46 MB / 302.1 MB Notification: Performance of SimCode: time 3.71e-07/0.3488, allocations: 0 / 388.9 MB, free: 13.46 MB / 302.1 MB Notification: Performance of Templates: time 0.01551/0.3643, allocations: 8.135 MB / 397.1 MB, free: 10.15 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Start/DCPM_Start.csv","/var/lib/jenkins1/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