Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.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.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.w|speedSensor.flange.phi|smpm.is.1.|smpm.is.2.",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.w|speedSensor.flange.phi|smpm.is.1.|smpm.is.2.",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001626/0.001626, allocations: 183.2 kB / 8.481 MB, free: 1.867 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.276/1.276, allocations: 205.2 MB / 214.1 MB, free: 5.156 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.000823/0.0008228, allocations: 94.3 kB / 262.1 MB, free: 5.188 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.112e-06/6.152e-06, allocations: 0 / 315 MB, free: 41.48 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07827/0.07829, allocations: 47.58 MB / 362.6 MB, free: 9.949 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2726/0.3509, allocations: 115 MB / 477.5 MB, free: 10.24 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002253/0.3512, allocations: 89.56 kB / 477.6 MB, free: 10.19 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.1859/0.5371, allocations: 73.73 MB / 0.5384 GB, free: 7.312 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001872/0.5373, allocations: 83.88 kB / 0.5385 GB, free: 7.23 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.00652/0.5438, allocations: 3.148 MB / 0.5416 GB, free: 4.016 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.688e-05/0.5439, allocations: 12.03 kB / 0.5416 GB, free: 4.004 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002816/0.5467, allocations: 0.5968 MB / 0.5422 GB, free: 3.402 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007035/0.5538, allocations: 3.099 MB / 0.5452 GB, free: 252 kB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001026/0.5539, allocations: 104 kB / 0.5453 GB, free: 148 kB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004683/0.5544, allocations: 187.9 kB / 0.5455 GB, free: 15.96 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005342/0.5597, allocations: 2.918 MB / 0.5483 GB, free: 13.04 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005967/0.5657, allocations: 3.51 MB / 0.5517 GB, free: 9.391 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.507e-05/0.5658, allocations: 4 kB / 0.5517 GB, free: 9.387 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000235/0.566, allocations: 0 / 0.5517 GB, free: 9.387 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001407/0.5662, allocations: 154.2 kB / 0.5519 GB, free: 9.234 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01927/0.5855, allocations: 12.85 MB / 0.5644 GB, free: 11.94 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001202/0.5867, allocations: 0.912 MB / 0.5653 GB, free: 11.02 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001535/0.5882, allocations: 0.9966 MB / 0.5663 GB, free: 10.03 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004296/0.5925, allocations: 2.695 MB / 0.5689 GB, free: 7.242 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.955e-05/0.5926, allocations: 51.5 kB / 0.569 GB, free: 7.184 MB / 426.7 MB Notification: Performance of pre-optimization done (n=123): time 2.485e-06/0.5926, allocations: 0 / 0.569 GB, free: 7.184 MB / 426.7 MB Notification: Performance of matching and sorting (n=159): time 0.01089/0.6035, allocations: 5.338 MB / 0.5742 GB, free: 1.777 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.893e-05/0.6036, allocations: 72.72 kB / 0.5743 GB, free: 1.691 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002045/0.6056, allocations: 1.387 MB / 0.5756 GB, free: 312 kB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 9.114e-05/0.6057, allocations: 25.7 kB / 0.5756 GB, free: 280 kB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.1334/0.7391, allocations: 1.229 MB / 0.5768 GB, free: 140 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000568/0.7398, allocations: 0.515 MB / 0.5773 GB, free: 139.7 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001021/0.7399, allocations: 0 / 0.5773 GB, free: 139.7 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001092/0.74, allocations: 381.8 kB / 0.5777 GB, free: 139.4 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001109/0.7411, allocations: 0.7687 MB / 0.5785 GB, free: 139.4 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001258/0.7424, allocations: 1.357 MB / 0.5798 GB, free: 138.7 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0015/0.7439, allocations: 1.041 MB / 0.5808 GB, free: 138.7 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.236e-05/0.7439, allocations: 15.56 kB / 0.5808 GB, free: 138.7 MB / 426.7 MB Notification: Performance of matching and sorting (n=250) (initialization): time 0.003648/0.7476, allocations: 2.377 MB / 0.5831 GB, free: 138.5 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.929e-05/0.7476, allocations: 7.688 kB / 0.5831 GB, free: 138.5 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.568e-05/0.7476, allocations: 24.55 kB / 0.5832 GB, free: 138.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003513/0.748, allocations: 126.2 kB / 0.5833 GB, free: 138.5 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001978/0.75, allocations: 0.4929 MB / 0.5838 GB, free: 138.5 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000801/0.7508, allocations: 1.258 MB / 0.585 GB, free: 137.3 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001524/0.7523, allocations: 59.83 kB / 0.5851 GB, free: 137.3 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001397/0.7525, allocations: 86.98 kB / 0.5851 GB, free: 137.3 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 85 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (247): * Single equations (assignments): 244 * 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 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002618/0.7527, allocations: 166 kB / 0.5853 GB, free: 137.2 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002439/0.753, allocations: 187.7 kB / 0.5855 GB, free: 137.1 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003339/0.7563, allocations: 2.003 MB / 0.5874 GB, free: 137 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.461e-05/0.7564, allocations: 17.25 kB / 0.5874 GB, free: 137 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.159e-05/0.7564, allocations: 7.75 kB / 0.5875 GB, free: 137 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.595e-05/0.7564, allocations: 7.547 kB / 0.5875 GB, free: 137 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007532/0.7639, allocations: 4.868 MB / 0.5922 GB, free: 136.5 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.434e-06/0.764, allocations: 3.469 kB / 0.5922 GB, free: 136.5 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001518/0.7655, allocations: 342.2 kB / 0.5925 GB, free: 136.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002741/0.7658, allocations: 91.64 kB / 0.5926 GB, free: 136.4 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.39e-05/0.7659, allocations: 18.33 kB / 0.5926 GB, free: 136.4 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006628/0.7666, allocations: 1.22 MB / 0.5938 GB, free: 135.3 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.46e-06/0.7666, allocations: 5.812 kB / 0.5938 GB, free: 135.3 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004161/0.7707, allocations: 3.34 MB / 0.5971 GB, free: 134.7 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009785/0.7718, allocations: 466.1 kB / 0.5976 GB, free: 134.5 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002972/0.7721, allocations: 4.312 kB / 0.5976 GB, free: 134.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001004/0.7731, allocations: 51.66 kB / 0.5976 GB, free: 134.5 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001537/0.7732, allocations: 80.44 kB / 0.5977 GB, free: 134.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.4e-05/0.7733, allocations: 42.3 kB / 0.5977 GB, free: 134.5 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.00143/0.7748, allocations: 1.028 MB / 0.5987 GB, free: 134.4 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001698/0.7765, allocations: 0.5026 MB / 0.5992 GB, free: 134.4 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (156): * Single equations (assignments): 153 * 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 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005368/0.777, allocations: 433.4 kB / 0.5996 GB, free: 134.3 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002701/0.7797, allocations: 2.225 MB / 0.6018 GB, free: 134 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.047e-06/0.7798, allocations: 3.094 kB / 0.6018 GB, free: 134 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001237/0.781, allocations: 1.207 MB / 0.603 GB, free: 133.7 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001928/0.7829, allocations: 379.1 kB / 0.6033 GB, free: 133.7 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009025/0.792, allocations: 4.467 MB / 0.6077 GB, free: 132.7 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002393/0.7944, allocations: 2.481 MB / 0.6101 GB, free: 132 MB / 426.7 MB Notification: Performance of SimCode: time 1.002e-06/0.7944, allocations: 0 / 0.6101 GB, free: 132 MB / 426.7 MB Notification: Performance of Templates: time 0.0429/0.8373, allocations: 26.04 MB / 0.6356 GB, free: 130.5 MB / 426.7 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches