Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.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_QuasiStationary,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001489/0.001489, allocations: 177.7 kB / 8.698 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.372/1.372, allocations: 205.3 MB / 214.4 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008266/0.0008266, allocations: 88.09 kB / 262.4 MB, free: 1.684 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.287e-05/1.305e-05, allocations: 4 kB / 315.5 MB, free: 22.72 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07912/0.07914, allocations: 47.59 MB / 363.1 MB, free: 7.078 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2839/0.3631, allocations: 94.05 MB / 457.1 MB, free: 1.875 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001946/0.3633, allocations: 85.56 kB / 457.2 MB, free: 1.828 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09926/0.4626, allocations: 40.24 MB / 497.4 MB, free: 15.06 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.4626, allocations: 0 / 497.4 MB, free: 15.06 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.484e-05/0.4627, allocations: 39.94 kB / 497.5 MB, free: 15.02 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.002359/0.4651, allocations: 1.55 MB / 499 MB, free: 13.41 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.029e-05/0.4651, allocations: 12.03 kB / 499 MB, free: 13.4 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006986/0.4658, allocations: 253.6 kB / 499.3 MB, free: 13.15 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001743/0.4676, allocations: 1.102 MB / 0.4887 GB, free: 12.01 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.37e-05/0.4677, allocations: 52 kB / 0.4887 GB, free: 11.96 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001627/0.4678, allocations: 91.91 kB / 0.4888 GB, free: 11.87 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001467/0.4693, allocations: 0.8145 MB / 0.4896 GB, free: 11.05 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001953/0.4713, allocations: 1.212 MB / 0.4908 GB, free: 9.766 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.445e-05/0.4713, allocations: 11.91 kB / 0.4908 GB, free: 9.754 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.475e-05/0.4714, allocations: 0 / 0.4908 GB, free: 9.754 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.933e-05/0.4714, allocations: 40 kB / 0.4908 GB, free: 9.715 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006841/0.4783, allocations: 6.358 MB / 0.497 GB, free: 3.008 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005369/0.4788, allocations: 335.9 kB / 0.4974 GB, free: 2.668 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002876/0.4791, allocations: 186.8 kB / 0.4975 GB, free: 2.484 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.671e-05/0.4792, allocations: 4.438 kB / 0.4975 GB, free: 2.48 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003557/0.4795, allocations: 244.8 kB / 0.4978 GB, free: 2.215 MB / 378.7 MB Notification: Performance of pre-optimization done (n=50): time 2.124e-06/0.4796, allocations: 0 / 0.4978 GB, free: 2.215 MB / 378.7 MB Notification: Performance of matching and sorting (n=56): time 0.002139/0.4817, allocations: 1.506 MB / 0.4993 GB, free: 0.6484 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.503e-05/0.4818, allocations: 200.5 kB / 0.4994 GB, free: 420 kB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001036/0.4828, allocations: 0.8515 MB / 0.5003 GB, free: 15.55 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.07e-05/0.4829, allocations: 25.7 kB / 0.5003 GB, free: 15.52 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005511/0.4834, allocations: 0.8819 MB / 0.5012 GB, free: 14.62 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000137/0.4836, allocations: 197.2 kB / 0.5013 GB, free: 14.43 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.87e-05/0.4836, allocations: 0 / 0.5013 GB, free: 14.43 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001587/0.4838, allocations: 353.9 kB / 0.5017 GB, free: 14.07 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003096/0.4841, allocations: 186.6 kB / 0.5019 GB, free: 13.89 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006795/0.4848, allocations: 0.7502 MB / 0.5026 GB, free: 12.87 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004497/0.4853, allocations: 329.8 kB / 0.5029 GB, free: 12.54 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.105e-06/0.4853, allocations: 8 kB / 0.5029 GB, free: 12.54 MB / 394.7 MB Notification: Performance of matching and sorting (n=151) (initialization): time 0.00136/0.4866, allocations: 0.9495 MB / 0.5038 GB, free: 11.57 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.955e-05/0.4867, allocations: 41.69 kB / 0.5039 GB, free: 11.53 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.967e-05/0.4867, allocations: 20 kB / 0.5039 GB, free: 11.51 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001889/0.4869, allocations: 65.7 kB / 0.504 GB, free: 11.44 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007604/0.4877, allocations: 267.6 kB / 0.5042 GB, free: 11.18 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001502/0.4892, allocations: 2.477 MB / 0.5066 GB, free: 8.461 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006888/0.4899, allocations: 48.05 kB / 0.5067 GB, free: 8.414 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.595e-05/0.49, allocations: 67.98 kB / 0.5068 GB, free: 8.348 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (148): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000149/0.4901, allocations: 156.4 kB / 0.5069 GB, free: 8.188 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001263/0.4903, allocations: 118.5 kB / 0.507 GB, free: 8.07 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007318/0.491, allocations: 468.3 kB / 0.5075 GB, free: 7.602 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.46e-06/0.491, allocations: 8.031 kB / 0.5075 GB, free: 7.594 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.722e-06/0.491, allocations: 3.984 kB / 0.5075 GB, free: 7.59 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.998e-06/0.4911, allocations: 7.984 kB / 0.5075 GB, free: 7.582 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00202/0.4931, allocations: 1.661 MB / 0.5091 GB, free: 5.82 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.771e-06/0.4931, allocations: 4 kB / 0.5091 GB, free: 5.816 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004208/0.4935, allocations: 103.8 kB / 0.5092 GB, free: 5.715 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001222/0.4937, allocations: 46.11 kB / 0.5092 GB, free: 5.664 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.678e-05/0.4937, allocations: 11.98 kB / 0.5093 GB, free: 5.652 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001434/0.4951, allocations: 2.454 MB / 0.5117 GB, free: 2.969 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.592e-06/0.4952, allocations: 7.938 kB / 0.5117 GB, free: 2.961 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001093/0.4963, allocations: 1.008 MB / 0.5126 GB, free: 1.812 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000288/0.4966, allocations: 227.7 kB / 0.5129 GB, free: 1.57 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001411/0.4967, allocations: 11.98 kB / 0.5129 GB, free: 1.559 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004702/0.4972, allocations: 19.98 kB / 0.5129 GB, free: 1.539 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001043/0.4973, allocations: 59.83 kB / 0.513 GB, free: 1.48 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.361e-05/0.4973, allocations: 23.98 kB / 0.513 GB, free: 1.457 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0007992/0.4981, allocations: 0.6071 MB / 0.5136 GB, free: 0.8438 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4981, allocations: 0 / 0.5136 GB, free: 0.8438 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0009689/0.4991, allocations: 276 kB / 0.5138 GB, free: 0.5742 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.phi,dcpm1.inertiaRotor.w,dcpm1.la.i,dcpm2.inertiaRotor.phi,dcpm2.inertiaRotor.w) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003882/0.4995, allocations: 278.3 kB / 0.5141 GB, free: 300 kB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001039/0.5006, allocations: 0.8097 MB / 0.5149 GB, free: 15.46 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.5006, allocations: 4 kB / 0.5149 GB, free: 15.45 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005435/0.5011, allocations: 428.3 kB / 0.5153 GB, free: 15.02 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001181/0.5023, allocations: 273.7 kB / 0.5156 GB, free: 14.75 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002901/0.5052, allocations: 1.847 MB / 0.5174 GB, free: 12.82 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007545/0.506, allocations: 1.205 MB / 0.5185 GB, free: 11.58 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0005631/0.5066, allocations: 154.2 kB / 0.5187 GB, free: 11.43 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001531/0.5067, allocations: 87.42 kB / 0.5188 GB, free: 11.34 MB / 410.7 MB Notification: Performance of SimCode: time 4e-07/0.5068, allocations: 0 / 0.5188 GB, free: 11.34 MB / 410.7 MB Notification: Performance of Templates: time 0.1889/0.6957, allocations: 12.24 MB / 0.5307 GB, free: 111.4 MB / 410.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary_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_QuasiStationary/DCPM_QuasiStationary.csv","../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches