Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001527/0.001527, allocations: 123.4 kB / 18.46 MB, free: 4.578 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002171/0.002171, allocations: 192.3 kB / 21.4 MB, free: 1.648 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.569/1.569, allocations: 225.6 MB / 249.8 MB, free: 3.453 MB / 190.1 MB " [Timeout remaining time 178] 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001454/0.001454, allocations: 55.91 kB / 366.8 MB, free: 272 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09322/0.09467, allocations: 52.13 MB / 419 MB, free: 12.04 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01832/0.113, allocations: 15.25 MB / 434.2 MB, free: 12.72 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01074/0.1237, allocations: 5.115 MB / 439.3 MB, free: 7.59 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002868/0.1266, allocations: 99.62 kB / 439.4 MB, free: 7.492 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003519/0.1301, allocations: 1.122 MB / 440.6 MB, free: 6.363 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004608/0.1347, allocations: 1.313 MB / 441.9 MB, free: 5.043 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003222/0.1379, allocations: 0.8884 MB / 442.8 MB, free: 4.152 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005699/0.1436, allocations: 3.612 MB / 446.4 MB, free: 0.5195 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2112/0.3549, allocations: 2.358 MB / 448.7 MB, free: 9.203 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002601/0.3575, allocations: 1.738 MB / 450.5 MB, free: 9.094 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003644/0.3611, allocations: 2.084 MB / 452.6 MB, free: 8.738 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00131/0.3624, allocations: 479 kB / 453 MB, free: 8.738 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002333/0.3647, allocations: 0.6793 MB / 453.7 MB, free: 8.738 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001276/0.366, allocations: 1.159 MB / 454.9 MB, free: 8.598 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003233/0.3692, allocations: 2.037 MB / 456.9 MB, free: 8.074 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00981/0.3791, allocations: 6.292 MB / 463.2 MB, free: 7.344 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.442e-06/0.3791, allocations: 1.25 kB / 463.2 MB, free: 7.344 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.3791, allocations: 2.953 kB / 463.2 MB, free: 7.344 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002303/0.3793, allocations: 4 kB / 463.2 MB, free: 7.34 MB / 366.1 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.01404/0.3933, allocations: 4.331 MB / 467.5 MB, free: 5.121 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.224e-05/0.3934, allocations: 9.375 kB / 467.5 MB, free: 5.121 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003401/0.3968, allocations: 0.634 MB / 468.2 MB, free: 4.879 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004626/0.4014, allocations: 2.3 MB / 470.5 MB, free: 3.66 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000197/0.4016, allocations: 238.1 kB / 470.7 MB, free: 3.555 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009114/0.4025, allocations: 311.4 kB / 471 MB, free: 3.453 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007882/0.4104, allocations: 4.049 MB / 475.1 MB, free: 1.453 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.443e-05/0.4105, allocations: 5.359 kB / 475.1 MB, free: 1.449 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002941/0.4108, allocations: 127.5 kB / 475.2 MB, free: 1.352 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001488/0.4109, allocations: 147.6 kB / 475.3 MB, free: 1.328 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006221/0.4171, allocations: 3.387 MB / 478.7 MB, free: 15.57 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02322/0.4404, allocations: 13.18 MB / 491.9 MB, free: 5.797 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004594/0.4449, allocations: 3.863 MB / 495.8 MB, free: 2.207 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001588/0.4465, allocations: 0.906 MB / 496.7 MB, free: 1.758 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00566/0.4522, allocations: 2.656 MB / 499.3 MB, free: 15.06 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.971e-05/0.4522, allocations: 47.5 kB / 499.4 MB, free: 15.01 MB / 398.1 MB Notification: Performance of pre-optimization done (n=108): time 2.946e-06/0.4522, allocations: 0 / 499.4 MB, free: 15.01 MB / 398.1 MB Notification: Performance of matching and sorting (n=142): time 0.01397/0.4662, allocations: 6.042 MB / 0.4936 GB, free: 8.906 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.606e-05/0.4663, allocations: 64.72 kB / 0.4936 GB, free: 8.832 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004175/0.4704, allocations: 1.893 MB / 0.4955 GB, free: 6.895 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001585/0.4706, allocations: 49.7 kB / 0.4955 GB, free: 6.84 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001387/0.472, allocations: 1.547 MB / 0.497 GB, free: 5.285 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005647/0.4726, allocations: 0.4984 MB / 0.4975 GB, free: 4.793 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006975/0.4733, allocations: 339.4 kB / 0.4978 GB, free: 4.453 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001277/0.4734, allocations: 301.1 kB / 0.4981 GB, free: 4.156 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001425/0.4748, allocations: 0.7724 MB / 0.4989 GB, free: 3.387 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001939/0.4767, allocations: 1.377 MB / 0.5002 GB, free: 1.754 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003476/0.4802, allocations: 2.309 MB / 0.5025 GB, free: 15.25 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.424e-05/0.4802, allocations: 4 kB / 0.5025 GB, free: 15.25 MB / 414.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004555/0.4848, allocations: 2.489 MB / 0.5049 GB, free: 12.86 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.418e-05/0.4848, allocations: 12 kB / 0.5049 GB, free: 12.85 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.744e-05/0.4849, allocations: 20 kB / 0.505 GB, free: 12.83 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003843/0.4852, allocations: 122.4 kB / 0.5051 GB, free: 12.7 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001821/0.4871, allocations: 488.5 kB / 0.5055 GB, free: 12.25 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001257/0.4883, allocations: 1.408 MB / 0.5069 GB, free: 10.72 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001749/0.4901, allocations: 115.9 kB / 0.507 GB, free: 10.61 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001483/0.4902, allocations: 84.11 kB / 0.5071 GB, free: 10.53 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * 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 (232): * Single equations (assignments): 229 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002022/0.4922, allocations: 0.9847 MB / 0.5081 GB, free: 9.562 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005064/0.4928, allocations: 210.6 kB / 0.5083 GB, free: 9.355 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003661/0.4964, allocations: 1.963 MB / 0.5102 GB, free: 7.383 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.349e-05/0.4964, allocations: 19.94 kB / 0.5102 GB, free: 7.363 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.4964, allocations: 0 / 0.5102 GB, free: 7.363 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.49e-05/0.4964, allocations: 7.969 kB / 0.5102 GB, free: 7.355 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008834/0.5053, allocations: 4.988 MB / 0.5151 GB, free: 2.312 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.051e-06/0.5053, allocations: 0 / 0.5151 GB, free: 2.312 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00137/0.5067, allocations: 304.3 kB / 0.5154 GB, free: 2.027 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003281/0.507, allocations: 106 kB / 0.5155 GB, free: 1.918 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.121e-05/0.5071, allocations: 24 kB / 0.5155 GB, free: 1.895 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001089/0.5082, allocations: 1.38 MB / 0.5168 GB, free: 400 kB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.028e-06/0.5082, allocations: 3.938 kB / 0.5168 GB, free: 396 kB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004969/0.5131, allocations: 3.095 MB / 0.5199 GB, free: 13.25 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001091/0.5142, allocations: 467.6 kB / 0.5203 GB, free: 12.77 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002738/0.5145, allocations: 24 kB / 0.5203 GB, free: 12.75 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001019/0.5155, allocations: 79.91 kB / 0.5204 GB, free: 12.67 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001961/0.5157, allocations: 92.69 kB / 0.5205 GB, free: 12.58 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.196e-05/0.5158, allocations: 39.98 kB / 0.5205 GB, free: 12.54 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002144/0.518, allocations: 1.285 MB / 0.5218 GB, free: 11.23 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.518, allocations: 0 / 0.5218 GB, free: 11.23 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00202/0.52, allocations: 0.5351 MB / 0.5223 GB, free: 10.7 MB / 430.1 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (141): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003294/0.5203, allocations: 175.4 kB / 0.5225 GB, free: 10.53 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003608/0.5239, allocations: 2.129 MB / 0.5246 GB, free: 8.418 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.516e-06/0.5239, allocations: 0 / 0.5246 GB, free: 8.418 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001624/0.5255, allocations: 1.101 MB / 0.5256 GB, free: 7.293 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002604/0.5281, allocations: 0.5165 MB / 0.5261 GB, free: 6.793 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01079/0.5389, allocations: 5.706 MB / 0.5317 GB, free: 1.039 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002179/0.5411, allocations: 2.215 MB / 0.5339 GB, free: 14.79 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008559/0.542, allocations: 167.4 kB / 0.534 GB, free: 14.62 MB / 446.1 MB Notification: Performance of SimCode: time 5.41e-07/0.542, allocations: 0 / 0.534 GB, free: 14.62 MB / 446.1 MB Notification: Performance of Templates: time 0.1059/0.6479, allocations: 86.49 MB / 0.6185 GB, free: 8.27 MB / 0.5137 GB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.1673655428458]