Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=800,variableFilter="time|smpm.is.1.|smpm.is.2.|constantSpeed.phi",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=800,variableFilter="time|smpm.is.1.|smpm.is.2.|constantSpeed.phi",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001458/0.001458, allocations: 199.6 kB / 18.07 MB, free: 3.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.232/1.232, allocations: 226.5 MB / 245.4 MB, free: 8.191 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007554/0.0007553, allocations: 102.4 kB / 297.4 MB, free: 6.883 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001988/0.0001988, allocations: 8 kB / 357.4 MB, free: 10.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1746/0.1748, allocations: 51.29 MB / 408.7 MB, free: 27.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1071/0.2819, allocations: 106.1 MB / 0.5027 GB, free: 1.508 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002297/0.2822, allocations: 96.66 kB / 0.5027 GB, free: 1.414 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2317/0.5139, allocations: 39.62 MB / 0.5414 GB, free: 71.98 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.5139, allocations: 4 kB / 0.5414 GB, free: 71.98 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001318/0.5141, allocations: 47.88 kB / 0.5415 GB, free: 71.93 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: 401 * Number of variables: 401 Notification: Performance of Generate backend data structure: time 0.003889/0.518, allocations: 1.946 MB / 0.5434 GB, free: 69.92 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.071e-05/0.518, allocations: 12.03 kB / 0.5434 GB, free: 69.91 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008637/0.5189, allocations: 230.5 kB / 0.5436 GB, free: 69.68 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002338/0.5212, allocations: 1.324 MB / 0.5449 GB, free: 68.3 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.529e-05/0.5213, allocations: 119.4 kB / 0.545 GB, free: 68.18 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003213/0.5216, allocations: 152.4 kB / 0.5452 GB, free: 68.04 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002872/0.5245, allocations: 1.997 MB / 0.5471 GB, free: 65.96 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.801e-05/0.5246, allocations: 8.094 kB / 0.5471 GB, free: 65.95 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001375/0.5247, allocations: 67.94 kB / 0.5472 GB, free: 65.88 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.902e-05/0.5248, allocations: 66.92 kB / 0.5473 GB, free: 65.82 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002221/0.527, allocations: 1.573 MB / 0.5488 GB, free: 64.24 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007641/0.5347, allocations: 6.862 MB / 0.5555 GB, free: 57.07 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006175/0.5353, allocations: 0.4939 MB / 0.556 GB, free: 56.57 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003322/0.5357, allocations: 278 kB / 0.5562 GB, free: 56.3 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002085/0.5378, allocations: 1.462 MB / 0.5577 GB, free: 54.79 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.718e-05/0.5378, allocations: 38.56 kB / 0.5577 GB, free: 54.74 MB / 378.7 MB Notification: Performance of pre-optimization done (n=38): time 2.204e-06/0.5378, allocations: 0 / 0.5577 GB, free: 54.74 MB / 378.7 MB Notification: Performance of matching and sorting (n=54): time 0.005388/0.5432, allocations: 3.135 MB / 0.5608 GB, free: 51.52 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001683/0.5449, allocations: 2.17 MB / 0.5629 GB, free: 49.19 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001741/0.5467, allocations: 1.565 MB / 0.5644 GB, free: 47.62 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.342e-05/0.5467, allocations: 45.64 kB / 0.5645 GB, free: 47.57 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004403/0.5472, allocations: 1.029 MB / 0.5655 GB, free: 46.52 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001148/0.5473, allocations: 209.3 kB / 0.5657 GB, free: 46.32 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.002e-05/0.5474, allocations: 32 kB / 0.5657 GB, free: 46.29 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.442e-05/0.5474, allocations: 369.9 kB / 0.5661 GB, free: 45.92 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006125/0.5481, allocations: 499.7 kB / 0.5665 GB, free: 45.43 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008871/0.549, allocations: 1.418 MB / 0.5679 GB, free: 43.56 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001622/0.5506, allocations: 2.048 MB / 0.5699 GB, free: 41.05 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.025e-05/0.5506, allocations: 8 kB / 0.5699 GB, free: 41.05 MB / 378.7 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.002599/0.5532, allocations: 2.071 MB / 0.5719 GB, free: 38.96 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.453e-05/0.5532, allocations: 19.98 kB / 0.572 GB, free: 38.94 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.363e-05/0.5533, allocations: 36 kB / 0.572 GB, free: 38.9 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004638/0.5537, allocations: 226.9 kB / 0.5722 GB, free: 38.67 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000941/0.5547, allocations: 383.2 kB / 0.5726 GB, free: 38.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00111/0.5558, allocations: 1.745 MB / 0.5743 GB, free: 36.42 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001118/0.557, allocations: 127.5 kB / 0.5744 GB, free: 36.29 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.103e-05/0.5571, allocations: 91.98 kB / 0.5745 GB, free: 36.2 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 148 * 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 (195): * Single equations (assignments): 192 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007801/0.5578, allocations: 0.583 MB / 0.5751 GB, free: 35.61 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000152/0.558, allocations: 154.1 kB / 0.5752 GB, free: 35.46 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001545/0.5595, allocations: 1.055 MB / 0.5762 GB, free: 34.38 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.418e-06/0.5596, allocations: 4 kB / 0.5762 GB, free: 34.38 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.5596, allocations: 192 / 0.5762 GB, free: 34.38 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.514e-06/0.5596, allocations: 11.98 kB / 0.5763 GB, free: 34.36 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004115/0.5637, allocations: 3.104 MB / 0.5793 GB, free: 31.15 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.5637, allocations: 4 kB / 0.5793 GB, free: 31.14 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003456/0.5641, allocations: 95.81 kB / 0.5794 GB, free: 31.05 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005393/0.5646, allocations: 226.4 kB / 0.5796 GB, free: 30.82 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.032e-05/0.5647, allocations: 20.2 kB / 0.5796 GB, free: 30.8 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002656/0.5674, allocations: 3.733 MB / 0.5833 GB, free: 26.8 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001406/0.5688, allocations: 2.017 MB / 0.5852 GB, free: 24.62 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001881/0.5707, allocations: 1.618 MB / 0.5868 GB, free: 22.94 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004066/0.5711, allocations: 299.1 kB / 0.5871 GB, free: 22.62 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001624/0.5713, allocations: 12 kB / 0.5871 GB, free: 22.61 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006106/0.5719, allocations: 48 kB / 0.5872 GB, free: 22.57 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.476e-05/0.572, allocations: 55.81 kB / 0.5872 GB, free: 22.51 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.685e-05/0.572, allocations: 16 kB / 0.5872 GB, free: 22.5 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001278/0.5733, allocations: 1.035 MB / 0.5882 GB, free: 21.46 MB / 378.7 MB Notification: Performance of sort global known variables: time 2e-07/0.5733, allocations: 0 / 0.5882 GB, free: 21.46 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001469/0.5748, allocations: 404 kB / 0.5886 GB, free: 21.07 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 1 ($STATESET1.x) * 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 (49): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 1 {3 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004224/0.5752, allocations: 382.4 kB / 0.589 GB, free: 20.7 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001865/0.5771, allocations: 1.535 MB / 0.5905 GB, free: 19.12 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.5771, allocations: 0 / 0.5905 GB, free: 19.12 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009217/0.578, allocations: 0.8044 MB / 0.5913 GB, free: 18.27 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002137/0.5802, allocations: 388.7 kB / 0.5916 GB, free: 17.89 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003975/0.5842, allocations: 3.654 MB / 0.5952 GB, free: 14.14 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008328/0.585, allocations: 1.46 MB / 0.5966 GB, free: 12.65 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002811/0.5853, allocations: 115.4 kB / 0.5967 GB, free: 12.54 MB / 378.7 MB Notification: Performance of SimCode: time 4.61e-07/0.5853, allocations: 4 kB / 0.5967 GB, free: 12.54 MB / 378.7 MB Notification: Performance of Templates: time 0.04993/0.6353, allocations: 47.58 MB / 0.6432 GB, free: 12.98 MB / 426.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_NoLoad/SMPM_NoLoad.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches