Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.002864/0.002869, allocations: 183.8 kB / 8.156 MB, free: 2.195 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.741/1.741, allocations: 205.2 MB / 213.7 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001309/0.001308, allocations: 87.66 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.299e-05/1.302e-05, allocations: 4 kB / 314.3 MB, free: 9.035 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2375/0.2375, allocations: 47.56 MB / 361.8 MB, free: 45.65 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1759/0.4134, allocations: 115 MB / 476.8 MB, free: 3.031 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003174/0.4138, allocations: 87.94 kB / 476.9 MB, free: 2.945 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.4468/0.8606, allocations: 73.73 MB / 0.5377 GB, free: 80.38 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0004306/0.8611, allocations: 82.03 kB / 0.5378 GB, free: 80.36 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.01388/0.875, allocations: 3.143 MB / 0.5409 GB, free: 79.01 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.148e-05/0.875, allocations: 8 kB / 0.5409 GB, free: 79.01 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005324/0.8804, allocations: 0.5941 MB / 0.5415 GB, free: 78.81 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01371/0.8941, allocations: 3.108 MB / 0.5445 GB, free: 78.17 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002786/0.8945, allocations: 103.8 kB / 0.5446 GB, free: 78.17 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001328/0.8958, allocations: 187.7 kB / 0.5448 GB, free: 78.17 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01061/0.9064, allocations: 2.918 MB / 0.5476 GB, free: 76.65 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01203/0.9185, allocations: 3.502 MB / 0.551 GB, free: 74.21 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001448/0.9187, allocations: 7.938 kB / 0.5511 GB, free: 74.2 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004903/0.9192, allocations: 3.906 kB / 0.5511 GB, free: 74.2 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001529/0.9194, allocations: 153.2 kB / 0.5512 GB, free: 74.05 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03235/0.9518, allocations: 12.85 MB / 0.5638 GB, free: 63.22 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002126/0.9539, allocations: 0.9007 MB / 0.5646 GB, free: 62.32 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00252/0.9565, allocations: 0.9989 MB / 0.5656 GB, free: 61.31 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00722/0.9637, allocations: 2.701 MB / 0.5682 GB, free: 58.55 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.771e-05/0.9638, allocations: 51.56 kB / 0.5683 GB, free: 58.49 MB / 394.7 MB Notification: Performance of pre-optimization done (n=123): time 4.137e-06/0.9639, allocations: 0 / 0.5683 GB, free: 58.49 MB / 394.7 MB Notification: Performance of matching and sorting (n=159): time 0.01833/0.9822, allocations: 5.35 MB / 0.5735 GB, free: 53.1 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.589e-05/0.9823, allocations: 68.72 kB / 0.5736 GB, free: 53.02 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00315/0.9854, allocations: 1.379 MB / 0.5749 GB, free: 51.64 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003181/0.9858, allocations: 25.7 kB / 0.575 GB, free: 51.61 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000543/0.9863, allocations: 1.18 MB / 0.5761 GB, free: 50.41 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005627/0.9869, allocations: 0.5119 MB / 0.5766 GB, free: 49.89 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001466/0.9871, allocations: 0 / 0.5766 GB, free: 49.89 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001565/0.9873, allocations: 390.8 kB / 0.577 GB, free: 49.5 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001878/0.9891, allocations: 0.7693 MB / 0.5777 GB, free: 48.73 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002169/0.9913, allocations: 1.358 MB / 0.5791 GB, free: 47.11 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002699/0.994, allocations: 1.045 MB / 0.5801 GB, free: 46.06 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.728e-05/0.9941, allocations: 8 kB / 0.5801 GB, free: 46.05 MB / 394.7 MB Notification: Performance of matching and sorting (n=250) (initialization): time 0.005876/1, allocations: 2.278 MB / 0.5823 GB, free: 43.76 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.024e-05/1, allocations: 11.94 kB / 0.5823 GB, free: 43.75 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.996e-05/1, allocations: 16 kB / 0.5823 GB, free: 43.73 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000501/1.001, allocations: 114.5 kB / 0.5824 GB, free: 43.61 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003975/1.005, allocations: 0.5032 MB / 0.5829 GB, free: 43.11 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001025/1.006, allocations: 1.259 MB / 0.5842 GB, free: 41.73 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00189/1.008, allocations: 51.95 kB / 0.5842 GB, free: 41.68 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002766/1.008, allocations: 87.98 kB / 0.5843 GB, free: 41.59 MB / 394.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.0004213/1.008, allocations: 97.02 kB / 0.5844 GB, free: 41.49 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006525/1.009, allocations: 185.7 kB / 0.5846 GB, free: 41.31 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00555/1.015, allocations: 2.005 MB / 0.5865 GB, free: 39.29 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-05/1.015, allocations: 16 kB / 0.5865 GB, free: 39.27 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.131e-05/1.015, allocations: 0 / 0.5865 GB, free: 39.27 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.707e-05/1.015, allocations: 7.969 kB / 0.5866 GB, free: 39.26 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0124/1.027, allocations: 4.865 MB / 0.5913 GB, free: 34.33 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.375e-05/1.027, allocations: 4 kB / 0.5913 GB, free: 34.33 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003053/1.03, allocations: 335.8 kB / 0.5916 GB, free: 34 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005001/1.031, allocations: 94.52 kB / 0.5917 GB, free: 33.9 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001455/1.031, allocations: 12 kB / 0.5917 GB, free: 33.89 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009119/1.032, allocations: 1.233 MB / 0.5929 GB, free: 32.54 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.177e-06/1.032, allocations: 0 / 0.5929 GB, free: 32.54 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007154/1.039, allocations: 3.343 MB / 0.5962 GB, free: 29.1 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00162/1.041, allocations: 458.6 kB / 0.5966 GB, free: 28.63 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000487/1.041, allocations: 7.906 kB / 0.5966 GB, free: 28.62 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0019/1.043, allocations: 47.94 kB / 0.5967 GB, free: 28.57 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002282/1.043, allocations: 85.16 kB / 0.5968 GB, free: 28.49 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000145/1.044, allocations: 47.97 kB / 0.5968 GB, free: 28.45 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.002256/1.046, allocations: 1.027 MB / 0.5978 GB, free: 27.43 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00308/1.049, allocations: 0.5115 MB / 0.5983 GB, free: 26.91 MB / 394.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.0009248/1.05, allocations: 432.1 kB / 0.5987 GB, free: 26.52 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.005118/1.055, allocations: 2.218 MB / 0.6009 GB, free: 24.26 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.965e-06/1.055, allocations: 0.75 kB / 0.6009 GB, free: 24.26 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002562/1.058, allocations: 1.206 MB / 0.6021 GB, free: 23 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003755/1.061, allocations: 393 kB / 0.6024 GB, free: 22.62 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01516/1.077, allocations: 4.488 MB / 0.6068 GB, free: 18.05 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004749/1.081, allocations: 2.466 MB / 0.6092 GB, free: 15.55 MB / 394.7 MB Notification: Performance of SimCode: time 1.783e-06/1.081, allocations: 4 kB / 0.6092 GB, free: 15.55 MB / 394.7 MB Notification: Performance of Templates: time 0.293/1.375, allocations: 80.44 MB / 0.6878 GB, free: 152.6 MB / 426.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/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_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches