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.001779/0.001779, allocations: 119.5 kB / 18.41 MB, free: 4.551 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.001917/0.001917, allocations: 188.3 kB / 21.35 MB, free: 1.617 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.432/1.432, allocations: 222.9 MB / 247.1 MB, free: 4.195 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.001665/0.001665, allocations: 43.92 kB / 358.7 MB, free: 8.277 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09472/0.09639, allocations: 49.44 MB / 408.1 MB, free: 6.797 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01766/0.1141, allocations: 15.17 MB / 423.3 MB, free: 7.559 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01029/0.1244, allocations: 5.104 MB / 428.4 MB, free: 2.438 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003592/0.1281, allocations: 99.62 kB / 428.5 MB, free: 2.34 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003673/0.1318, allocations: 1.06 MB / 429.6 MB, free: 1.273 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00491/0.1367, allocations: 1.262 MB / 430.8 MB, free: 4 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2114/0.3482, allocations: 0.8728 MB / 431.7 MB, free: 5.762 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004566/0.3528, allocations: 3.62 MB / 435.3 MB, free: 5.758 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004669/0.3575, allocations: 3.313 MB / 438.6 MB, free: 5.156 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0031/0.3606, allocations: 1.723 MB / 440.4 MB, free: 4.926 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00425/0.3649, allocations: 2.06 MB / 442.4 MB, free: 4.566 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001516/0.3664, allocations: 479.8 kB / 442.9 MB, free: 4.566 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003323/0.3697, allocations: 0.6761 MB / 443.6 MB, free: 4.566 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002052/0.3718, allocations: 1.144 MB / 444.7 MB, free: 4.438 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003908/0.3757, allocations: 2.042 MB / 446.7 MB, free: 3.91 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008714/0.3845, allocations: 6.289 MB / 453 MB, free: 2.863 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.3845, allocations: 1.719 kB / 453 MB, free: 2.863 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.696e-06/0.3845, allocations: 0 / 453 MB, free: 2.863 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001836/0.3847, allocations: 7.75 kB / 453 MB, free: 2.859 MB / 350.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.01307/0.3978, allocations: 4.342 MB / 457.4 MB, free: 92 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.587e-05/0.3979, allocations: 8.875 kB / 457.4 MB, free: 92 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003502/0.4014, allocations: 0.6349 MB / 458 MB, free: 15.77 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005338/0.4067, allocations: 2.292 MB / 460.3 MB, free: 14.21 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002323/0.407, allocations: 236.2 kB / 460.5 MB, free: 14.11 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009617/0.408, allocations: 309.3 kB / 460.8 MB, free: 14 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00917/0.4171, allocations: 4.051 MB / 464.9 MB, free: 11.62 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001013/0.4173, allocations: 7.141 kB / 464.9 MB, free: 11.62 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003351/0.4176, allocations: 129.2 kB / 465 MB, free: 11.52 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000131/0.4178, allocations: 148.5 kB / 465.2 MB, free: 11.49 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006512/0.4243, allocations: 3.385 MB / 468.6 MB, free: 9.422 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0241/0.4484, allocations: 13.17 MB / 481.7 MB, free: 12.08 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004766/0.4532, allocations: 3.972 MB / 485.7 MB, free: 7.605 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001793/0.4551, allocations: 0.9879 MB / 486.7 MB, free: 6.621 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005448/0.4605, allocations: 2.648 MB / 489.3 MB, free: 3.914 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.204e-05/0.4606, allocations: 43.56 kB / 489.4 MB, free: 3.863 MB / 382.1 MB Notification: Performance of pre-optimization done (n=108): time 3.246e-06/0.4606, allocations: 0 / 489.4 MB, free: 3.863 MB / 382.1 MB Notification: Performance of matching and sorting (n=142): time 0.01334/0.474, allocations: 6.05 MB / 495.4 MB, free: 13.76 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.082e-05/0.4741, allocations: 68.72 kB / 495.5 MB, free: 13.68 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003325/0.4774, allocations: 1.889 MB / 497.4 MB, free: 11.74 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002514/0.4777, allocations: 53.7 kB / 497.4 MB, free: 11.68 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001193/0.4789, allocations: 1.543 MB / 499 MB, free: 10.13 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005557/0.4795, allocations: 0.5053 MB / 499.5 MB, free: 9.637 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005698/0.48, allocations: 331.4 kB / 499.8 MB, free: 9.305 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001295/0.4802, allocations: 309.1 kB / 0.4884 GB, free: 9 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001322/0.4815, allocations: 0.7725 MB / 0.4892 GB, free: 8.23 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00176/0.4833, allocations: 1.374 MB / 0.4905 GB, free: 6.598 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003369/0.4867, allocations: 2.311 MB / 0.4928 GB, free: 4.098 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.089e-05/0.4867, allocations: 11.38 kB / 0.4928 GB, free: 4.09 MB / 398.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004677/0.4914, allocations: 2.479 MB / 0.4952 GB, free: 1.707 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.416e-05/0.4915, allocations: 15.38 kB / 0.4952 GB, free: 1.695 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.207e-05/0.4915, allocations: 20 kB / 0.4952 GB, free: 1.676 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000393/0.4919, allocations: 118.9 kB / 0.4953 GB, free: 1.551 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001796/0.4937, allocations: 485.8 kB / 0.4958 GB, free: 1.105 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001216/0.495, allocations: 1.415 MB / 0.4972 GB, free: 15.56 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001841/0.4968, allocations: 107.9 kB / 0.4973 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002195/0.497, allocations: 88.08 kB / 0.4974 GB, free: 15.37 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.002411/0.4995, allocations: 0.9837 MB / 0.4983 GB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006189/0.5001, allocations: 214.6 kB / 0.4985 GB, free: 14.2 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00373/0.5038, allocations: 1.956 MB / 0.5004 GB, free: 12.23 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.616e-05/0.5039, allocations: 16 kB / 0.5005 GB, free: 12.21 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.696e-06/0.5039, allocations: 3.938 kB / 0.5005 GB, free: 12.21 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.779e-05/0.5039, allocations: 11.95 kB / 0.5005 GB, free: 12.2 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009237/0.5132, allocations: 4.986 MB / 0.5053 GB, free: 7.152 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.011e-05/0.5132, allocations: 4 kB / 0.5053 GB, free: 7.148 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001374/0.5146, allocations: 309.5 kB / 0.5056 GB, free: 6.859 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003189/0.5149, allocations: 102.8 kB / 0.5057 GB, free: 6.75 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.016e-05/0.515, allocations: 24 kB / 0.5058 GB, free: 6.727 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001143/0.5162, allocations: 1.378 MB / 0.5071 GB, free: 5.219 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.681e-06/0.5162, allocations: 7.656 kB / 0.5071 GB, free: 5.215 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005249/0.5215, allocations: 3.094 MB / 0.5101 GB, free: 2.07 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001386/0.5229, allocations: 471.6 kB / 0.5106 GB, free: 1.59 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003058/0.5232, allocations: 20 kB / 0.5106 GB, free: 1.57 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001014/0.5242, allocations: 83.91 kB / 0.5107 GB, free: 1.488 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001953/0.5244, allocations: 88.66 kB / 0.5108 GB, free: 1.406 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.987e-05/0.5245, allocations: 36 kB / 0.5108 GB, free: 1.371 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002197/0.5267, allocations: 1.297 MB / 0.5121 GB, free: 52 kB / 414.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.5267, allocations: 0 / 0.5121 GB, free: 52 kB / 414.1 MB Notification: Performance of remove unused functions: time 0.002114/0.5288, allocations: 0.5312 MB / 0.5126 GB, free: 15.52 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.0004003/0.5293, allocations: 168.5 kB / 0.5127 GB, free: 15.36 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003786/0.5331, allocations: 2.217 MB / 0.5149 GB, free: 13.16 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.651e-06/0.5331, allocations: 0 / 0.5149 GB, free: 13.16 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00177/0.5349, allocations: 1.173 MB / 0.5161 GB, free: 11.96 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003096/0.538, allocations: 0.5069 MB / 0.5166 GB, free: 11.46 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01159/0.5496, allocations: 5.711 MB / 0.5221 GB, free: 5.699 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002335/0.552, allocations: 2.213 MB / 0.5243 GB, free: 3.449 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009417/0.5529, allocations: 171.3 kB / 0.5245 GB, free: 3.281 MB / 430.1 MB Notification: Performance of SimCode: time 1.102e-06/0.553, allocations: 0 / 0.5245 GB, free: 3.281 MB / 430.1 MB Notification: Performance of Templates: time 0.3689/0.9219, allocations: 86.19 MB / 0.6086 GB, free: 151.3 MB / 0.4981 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.11437277495861]