Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009584/0.0009584, allocations: 180.2 kB / 16.39 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.268/1.268, allocations: 223.2 MB / 240.3 MB, free: 11.87 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000871/0.0008709, allocations: 95.89 kB / 291.5 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00024/0.0002401, allocations: 8 kB / 351.1 MB, free: 15.3 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2517/0.2519, allocations: 50.41 MB / 401.5 MB, free: 32.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1332/0.3851, allocations: 110.2 MB / 0.4997 GB, free: 2.188 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002676/0.3854, allocations: 96.41 kB / 0.4998 GB, free: 2.094 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3383/0.7237, allocations: 53.12 MB / 0.5517 GB, free: 63.02 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.949e-06/0.7238, allocations: 4 kB / 0.5517 GB, free: 63.02 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003493/0.7241, allocations: 79.81 kB / 0.5518 GB, free: 62.94 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: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.008661/0.7328, allocations: 2.907 MB / 0.5546 GB, free: 59.97 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.556e-05/0.7329, allocations: 8.031 kB / 0.5546 GB, free: 59.96 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001896/0.7348, allocations: 348.1 kB / 0.555 GB, free: 59.62 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005536/0.7403, allocations: 1.931 MB / 0.5569 GB, free: 57.63 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001825/0.7405, allocations: 189 kB / 0.557 GB, free: 57.44 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007144/0.7413, allocations: 251.9 kB / 0.5573 GB, free: 57.2 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004844/0.7461, allocations: 3.236 MB / 0.5604 GB, free: 53.81 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.405e-05/0.7462, allocations: 7.938 kB / 0.5604 GB, free: 53.8 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002238/0.7464, allocations: 104.3 kB / 0.5605 GB, free: 53.7 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001016/0.7465, allocations: 124.9 kB / 0.5607 GB, free: 53.57 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003809/0.7504, allocations: 2.588 MB / 0.5632 GB, free: 50.97 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01545/0.7658, allocations: 10.48 MB / 0.5734 GB, free: 40.14 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001755/0.7677, allocations: 1.451 MB / 0.5748 GB, free: 38.63 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003594/0.768, allocations: 223.1 kB / 0.5751 GB, free: 38.38 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.612e-05/0.7681, allocations: 43.56 kB / 0.5751 GB, free: 38.32 MB / 378.7 MB Notification: Performance of pre-optimization done (n=104): time 3.968e-06/0.7681, allocations: 3.984 kB / 0.5751 GB, free: 38.32 MB / 378.7 MB Notification: Performance of matching and sorting (n=132): time 0.01426/0.7824, allocations: 7.078 MB / 0.582 GB, free: 31.15 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.673e-05/0.7824, allocations: 68.67 kB / 0.5821 GB, free: 31.07 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002456/0.7849, allocations: 1.55 MB / 0.5836 GB, free: 29.52 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001175/0.785, allocations: 45.7 kB / 0.5836 GB, free: 29.47 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006117/0.7857, allocations: 1.268 MB / 0.5849 GB, free: 28.19 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003233/0.786, allocations: 461.4 kB / 0.5853 GB, free: 27.73 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.143e-05/0.7861, allocations: 36 kB / 0.5854 GB, free: 27.7 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001261/0.7862, allocations: 373.9 kB / 0.5857 GB, free: 27.32 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001014/0.7872, allocations: 0.8081 MB / 0.5865 GB, free: 26.52 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001135/0.7884, allocations: 1.311 MB / 0.5878 GB, free: 24.98 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001197/0.7896, allocations: 1.025 MB / 0.5888 GB, free: 23.95 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.875e-06/0.7896, allocations: 4 kB / 0.5888 GB, free: 23.95 MB / 378.7 MB Notification: Performance of matching and sorting (n=211) (initialization): time 0.003484/0.7931, allocations: 2.548 MB / 0.5913 GB, free: 21.38 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.114e-05/0.7931, allocations: 14.81 kB / 0.5913 GB, free: 21.37 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.227e-05/0.7932, allocations: 16 kB / 0.5913 GB, free: 21.35 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005672/0.7937, allocations: 243.6 kB / 0.5915 GB, free: 21.1 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001404/0.7952, allocations: 443.3 kB / 0.592 GB, free: 20.67 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001847/0.797, allocations: 3.033 MB / 0.5949 GB, free: 17.36 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001677/0.7987, allocations: 131.8 kB / 0.595 GB, free: 17.23 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001284/0.7988, allocations: 79.98 kB / 0.5951 GB, free: 17.15 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 73 * 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 (206): * Single equations (assignments): 202 * 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: 2 * 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: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001685/0.8005, allocations: 0.8199 MB / 0.5959 GB, free: 16.32 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003912/0.8009, allocations: 185.7 kB / 0.5961 GB, free: 16.14 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0029/0.8038, allocations: 2.16 MB / 0.5982 GB, free: 13.96 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.178e-06/0.8039, allocations: 16 kB / 0.5982 GB, free: 13.94 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.8039, allocations: 0 / 0.5982 GB, free: 13.94 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.067e-05/0.8039, allocations: 7.984 kB / 0.5982 GB, free: 13.93 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006902/0.8108, allocations: 4.891 MB / 0.603 GB, free: 8.938 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.345e-06/0.8108, allocations: 4 kB / 0.603 GB, free: 8.934 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001093/0.8119, allocations: 295.8 kB / 0.6033 GB, free: 8.645 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004946/0.8125, allocations: 199.3 kB / 0.6035 GB, free: 8.438 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.658e-05/0.8125, allocations: 27.98 kB / 0.6035 GB, free: 8.41 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001688/0.8142, allocations: 3.006 MB / 0.6064 GB, free: 5.137 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.537e-06/0.8142, allocations: 7.938 kB / 0.6065 GB, free: 5.129 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003915/0.8182, allocations: 3.451 MB / 0.6098 GB, free: 1.574 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001166/0.8194, allocations: 442.6 kB / 0.6102 GB, free: 1.121 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004897/0.8199, allocations: 32.28 kB / 0.6103 GB, free: 1.09 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001238/0.8211, allocations: 99.86 kB / 0.6104 GB, free: 0.9922 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000174/0.8213, allocations: 88.91 kB / 0.6105 GB, free: 0.9062 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.614e-05/0.8214, allocations: 35.98 kB / 0.6105 GB, free: 0.8711 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002324/0.8237, allocations: 1.185 MB / 0.6116 GB, free: 15.7 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.81e-07/0.8237, allocations: 4 kB / 0.6117 GB, free: 15.69 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002309/0.826, allocations: 0.5273 MB / 0.6122 GB, free: 15.16 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.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 (130): * Single equations (assignments): 126 * 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: 2 * 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: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007838/0.8268, allocations: 422.3 kB / 0.6126 GB, free: 14.75 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003885/0.8307, allocations: 2.425 MB / 0.6149 GB, free: 12.26 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.029e-06/0.8307, allocations: 0 / 0.6149 GB, free: 12.26 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001964/0.8327, allocations: 1.395 MB / 0.6163 GB, free: 10.8 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002822/0.8356, allocations: 457.8 kB / 0.6167 GB, free: 10.36 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0107/0.8463, allocations: 5.888 MB / 0.6225 GB, free: 4.402 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001908/0.8482, allocations: 2.069 MB / 0.6245 GB, free: 2.297 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001889/0.8501, allocations: 0.5199 MB / 0.625 GB, free: 1.773 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004393/0.8506, allocations: 143.4 kB / 0.6252 GB, free: 1.633 MB / 394.7 MB Notification: Performance of SimCode: time 1.142e-06/0.8506, allocations: 0 / 0.6252 GB, free: 1.633 MB / 394.7 MB Notification: Performance of Templates: time 0.04963/0.9002, allocations: 27.15 MB / 0.6517 GB, free: 6.703 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches