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.001083/0.001083, allocations: 112.7 kB / 17.68 MB, free: 5.473 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.0009736/0.0009736, allocations: 190.9 kB / 18.62 MB, free: 4.543 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.302/1.302, allocations: 222.9 MB / 242.3 MB, free: 15.1 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001066/0.001067, allocations: 59.62 kB / 302.1 MB, free: 5.164 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08963/0.09071, allocations: 49.45 MB / 351.5 MB, free: 3.688 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.00797/0.09872, allocations: 7.125 MB / 358.6 MB, free: 12.52 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003633/0.1024, allocations: 2.36 MB / 361 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004244/0.1028, allocations: 19.94 kB / 361 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001085/0.1039, allocations: 489 kB / 361.5 MB, free: 9.652 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006888/0.1046, allocations: 385 kB / 361.9 MB, free: 9.273 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003407/0.105, allocations: 203.8 kB / 362.1 MB, free: 9.074 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00111/0.1061, allocations: 1.206 MB / 363.3 MB, free: 7.863 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006454/0.1068, allocations: 0.5036 MB / 363.8 MB, free: 7.34 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005284/0.1073, allocations: 458.1 kB / 364.2 MB, free: 6.891 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004959/0.1078, allocations: 497.8 kB / 364.7 MB, free: 6.402 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001304/0.108, allocations: 112 kB / 364.8 MB, free: 6.293 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002509/0.1082, allocations: 156 kB / 365 MB, free: 6.141 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001651/0.1084, allocations: 235.1 kB / 365.2 MB, free: 5.91 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004608/0.1089, allocations: 0.5365 MB / 365.7 MB, free: 5.371 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001248/0.1101, allocations: 1.433 MB / 367.2 MB, free: 3.934 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.1101, allocations: 0 / 367.2 MB, free: 3.934 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1101, allocations: 4 kB / 367.2 MB, free: 3.93 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.996e-05/0.1102, allocations: 0 / 367.2 MB, free: 3.93 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.001939/0.1121, allocations: 1.25 MB / 368.4 MB, free: 2.625 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.939e-05/0.1122, allocations: 11.89 kB / 368.4 MB, free: 2.613 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004653/0.1126, allocations: 147.6 kB / 368.6 MB, free: 2.469 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001033/0.1137, allocations: 0.6455 MB / 369.2 MB, free: 1.785 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.203e-05/0.1137, allocations: 62.36 kB / 369.3 MB, free: 1.723 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001087/0.1139, allocations: 84.28 kB / 369.4 MB, free: 1.641 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001199/0.1151, allocations: 0.7832 MB / 370.1 MB, free: 0.8281 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.464e-05/0.1151, allocations: 0 / 370.1 MB, free: 0.8281 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.087e-05/0.1152, allocations: 32 kB / 370.2 MB, free: 0.7969 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.846e-05/0.1152, allocations: 23.98 kB / 370.2 MB, free: 0.7734 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000969/0.1162, allocations: 0.5192 MB / 370.7 MB, free: 260 kB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1641/0.2802, allocations: 3.347 MB / 374.1 MB, free: 23.69 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005715/0.2809, allocations: 234.3 kB / 374.3 MB, free: 23.59 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002622/0.2811, allocations: 113.1 kB / 374.4 MB, free: 23.55 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.434e-05/0.2812, allocations: 8.891 kB / 374.4 MB, free: 23.55 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.574e-05/0.2812, allocations: 38.03 kB / 374.5 MB, free: 23.5 MB / 302.1 MB Notification: Performance of pre-optimization done (n=25): time 2.545e-06/0.2812, allocations: 0 / 374.5 MB, free: 23.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=28): time 0.001997/0.2832, allocations: 1.039 MB / 375.5 MB, free: 22.84 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.41e-05/0.2833, allocations: 81.47 kB / 375.6 MB, free: 22.74 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001012/0.2843, allocations: 0.7446 MB / 376.3 MB, free: 22.41 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.946e-05/0.2843, allocations: 30.67 kB / 376.3 MB, free: 22.38 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002619/0.2846, allocations: 0.4915 MB / 376.8 MB, free: 21.98 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.337e-05/0.2847, allocations: 103.1 kB / 376.9 MB, free: 21.9 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001349/0.2848, allocations: 113 kB / 377 MB, free: 21.83 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001022/0.2849, allocations: 375.8 kB / 377.4 MB, free: 21.49 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002613/0.2852, allocations: 127.4 kB / 377.5 MB, free: 21.45 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003325/0.2855, allocations: 420.4 kB / 378 MB, free: 21.03 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005872/0.2861, allocations: 0.5779 MB / 378.5 MB, free: 20.53 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.659e-06/0.2861, allocations: 6.219 kB / 378.5 MB, free: 20.53 MB / 302.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0009222/0.287, allocations: 0.6044 MB / 379.1 MB, free: 20.27 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.764e-05/0.2871, allocations: 9.625 kB / 379.1 MB, free: 20.27 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.774e-05/0.2871, allocations: 10.28 kB / 379.2 MB, free: 20.27 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001654/0.2873, allocations: 38.38 kB / 379.2 MB, free: 20.25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004277/0.2877, allocations: 140.1 kB / 379.3 MB, free: 20.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007381/0.2885, allocations: 1.384 MB / 380.7 MB, free: 18.82 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004249/0.2889, allocations: 34.77 kB / 380.8 MB, free: 18.81 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.749e-05/0.289, allocations: 29.56 kB / 380.8 MB, free: 18.81 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.0002356/0.2892, allocations: 240.7 kB / 381 MB, free: 18.61 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.059e-05/0.2893, allocations: 74.7 kB / 381.1 MB, free: 18.57 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006033/0.2899, allocations: 322.8 kB / 381.4 MB, free: 18.42 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.556e-06/0.2899, allocations: 2.531 kB / 381.4 MB, free: 18.42 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.525e-06/0.2899, allocations: 1.25 kB / 381.4 MB, free: 18.42 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-06/0.2899, allocations: 5.438 kB / 381.4 MB, free: 18.42 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001548/0.2915, allocations: 1.112 MB / 382.5 MB, free: 17.74 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/0.2915, allocations: 1.312 kB / 382.5 MB, free: 17.74 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000257/0.2918, allocations: 57.94 kB / 382.6 MB, free: 17.74 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.433e-05/0.2919, allocations: 26.58 kB / 382.6 MB, free: 17.72 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.926e-05/0.2919, allocations: 8.141 kB / 382.6 MB, free: 17.72 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005853/0.2925, allocations: 1.364 MB / 384 MB, free: 16.32 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.878e-06/0.2925, allocations: 9.734 kB / 384 MB, free: 16.32 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007636/0.2933, allocations: 0.5561 MB / 384.5 MB, free: 15.96 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001944/0.2935, allocations: 175.2 kB / 384.7 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.005e-05/0.2936, allocations: 13.36 kB / 384.7 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003329/0.2939, allocations: 18.39 kB / 384.7 MB, free: 15.79 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.657e-05/0.294, allocations: 27.22 kB / 384.8 MB, free: 15.79 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.793e-05/0.294, allocations: 7.312 kB / 384.8 MB, free: 15.79 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005896/0.2946, allocations: 0.5049 MB / 385.3 MB, free: 15.55 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2946, allocations: 0 / 385.3 MB, free: 15.55 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006521/0.2953, allocations: 162.6 kB / 385.4 MB, free: 15.54 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.00018/0.2954, allocations: 122.9 kB / 385.6 MB, free: 15.43 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00077/0.2962, allocations: 466 kB / 386 MB, free: 15.21 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.2962, allocations: 1.781 kB / 386 MB, free: 15.21 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003253/0.2966, allocations: 242.6 kB / 386.3 MB, free: 15.05 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008369/0.2974, allocations: 184.5 kB / 386.4 MB, free: 15 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001994/0.2994, allocations: 1.413 MB / 387.9 MB, free: 14.15 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004163/0.2998, allocations: 0.9399 MB / 388.8 MB, free: 13.44 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002849/0.3001, allocations: 89.3 kB / 388.9 MB, free: 13.41 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.994e-05/0.3002, allocations: 47.41 kB / 388.9 MB, free: 13.41 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3003, allocations: 1.312 kB / 388.9 MB, free: 13.41 MB / 302.1 MB Notification: Performance of Templates: time 0.01556/0.3158, allocations: 8.138 MB / 397.1 MB, free: 10.05 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 gbode -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