Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0014/0.0014, allocations: 115.1 kB / 18.45 MB, free: 4.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001567/0.001567, allocations: 207.3 kB / 21.41 MB, free: 1.648 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.447/1.447, allocations: 230.6 MB / 254.8 MB, free: 15.24 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001642/0.001642, allocations: 51.91 kB / 374.2 MB, free: 9.711 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1079, allocations: 53.33 MB / 427.5 MB, free: 4.289 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01525/0.1232, allocations: 11 MB / 438.5 MB, free: 9.234 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.008223/0.1314, allocations: 3.692 MB / 442.2 MB, free: 5.527 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002116/0.1335, allocations: 87.38 kB / 442.3 MB, free: 5.441 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002968/0.1365, allocations: 0.8774 MB / 443.2 MB, free: 4.559 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003382/0.1399, allocations: 0.9048 MB / 444.1 MB, free: 3.648 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001498/0.1414, allocations: 455.3 kB / 444.5 MB, free: 3.203 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005076/0.1464, allocations: 2.956 MB / 447.5 MB, free: 240 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2228/0.3692, allocations: 1.98 MB / 449.4 MB, free: 9.801 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002827/0.3721, allocations: 1.418 MB / 450.9 MB, free: 9.699 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003396/0.3755, allocations: 1.793 MB / 452.6 MB, free: 9.414 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001568/0.377, allocations: 371.8 kB / 453 MB, free: 9.414 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002182/0.3792, allocations: 488.8 kB / 453.5 MB, free: 9.41 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002082/0.3813, allocations: 1.085 MB / 454.6 MB, free: 9.285 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003472/0.3848, allocations: 1.675 MB / 456.2 MB, free: 8.84 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00713/0.3919, allocations: 4.907 MB / 461.2 MB, free: 7.762 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.616e-06/0.3919, allocations: 0 / 461.2 MB, free: 7.762 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.3919, allocations: 4.844 kB / 461.2 MB, free: 7.762 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001841/0.3921, allocations: 0.7969 kB / 461.2 MB, free: 7.762 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: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.008428/0.4005, allocations: 3.481 MB / 464.6 MB, free: 5.785 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.933e-05/0.4006, allocations: 9.156 kB / 464.7 MB, free: 5.785 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001048/0.4016, allocations: 367.7 kB / 465 MB, free: 5.605 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002982/0.4046, allocations: 1.834 MB / 466.8 MB, free: 4.66 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000122/0.4047, allocations: 191.4 kB / 467 MB, free: 4.574 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003451/0.4051, allocations: 248.6 kB / 467.3 MB, free: 4.492 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005058/0.4101, allocations: 3.285 MB / 470.6 MB, free: 3.156 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.327e-05/0.4102, allocations: 7.062 kB / 470.6 MB, free: 3.156 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002306/0.4104, allocations: 105 kB / 470.7 MB, free: 3.078 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001514/0.4106, allocations: 126.4 kB / 470.8 MB, free: 3.066 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004187/0.4147, allocations: 2.754 MB / 473.5 MB, free: 1.98 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01589/0.4306, allocations: 10.4 MB / 483.9 MB, free: 10.5 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001986/0.4326, allocations: 1.297 MB / 485.2 MB, free: 9.684 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001178/0.4338, allocations: 0.6997 MB / 485.9 MB, free: 9.34 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003352/0.4341, allocations: 206.8 kB / 486.1 MB, free: 9.137 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.599e-05/0.4342, allocations: 47.59 kB / 486.2 MB, free: 9.086 MB / 382.1 MB Notification: Performance of pre-optimization done (n=98): time 4.429e-06/0.4342, allocations: 0.6094 kB / 486.2 MB, free: 9.086 MB / 382.1 MB Notification: Performance of matching and sorting (n=123): time 0.01642/0.4506, allocations: 6.944 MB / 493.1 MB, free: 4.871 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.783e-05/0.4507, allocations: 64.41 kB / 493.2 MB, free: 4.797 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003819/0.4545, allocations: 1.794 MB / 495 MB, free: 3.004 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001343/0.4546, allocations: 45.7 kB / 495 MB, free: 2.953 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001177/0.4558, allocations: 1.309 MB / 496.4 MB, free: 1.637 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004765/0.4563, allocations: 449.9 kB / 496.8 MB, free: 1.203 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005582/0.4568, allocations: 299.5 kB / 497.1 MB, free: 0.9023 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001323/0.457, allocations: 305.1 kB / 497.4 MB, free: 0.6016 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001382/0.4583, allocations: 0.7769 MB / 498.2 MB, free: 15.82 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001819/0.4602, allocations: 1.297 MB / 499.5 MB, free: 14.31 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003409/0.4636, allocations: 2.209 MB / 0.4899 GB, free: 11.95 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.498e-05/0.4636, allocations: 9.406 kB / 0.4899 GB, free: 11.94 MB / 398.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.00484/0.4684, allocations: 2.482 MB / 0.4923 GB, free: 9.535 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.806e-05/0.4685, allocations: 12 kB / 0.4923 GB, free: 9.523 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.203e-05/0.4685, allocations: 16 kB / 0.4924 GB, free: 9.508 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000733/0.4692, allocations: 244.6 kB / 0.4926 GB, free: 9.258 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001585/0.4708, allocations: 418.1 kB / 0.493 GB, free: 8.875 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003281/0.4741, allocations: 3.224 MB / 0.4961 GB, free: 5.391 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00187/0.476, allocations: 135.8 kB / 0.4963 GB, free: 5.258 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002427/0.4762, allocations: 71.98 kB / 0.4963 GB, free: 5.188 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * 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 (198): * Single equations (assignments): 194 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * 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): 2 systems {(2,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002005/0.4782, allocations: 0.8317 MB / 0.4972 GB, free: 4.375 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007038/0.4789, allocations: 190.8 kB / 0.4973 GB, free: 4.188 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004502/0.4834, allocations: 2.037 MB / 0.4993 GB, free: 2.137 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.396e-05/0.4834, allocations: 12 kB / 0.4993 GB, free: 2.125 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.618e-06/0.4834, allocations: 4 kB / 0.4993 GB, free: 2.121 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.871e-05/0.4835, allocations: 7.969 kB / 0.4993 GB, free: 2.113 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01068/0.4941, allocations: 4.749 MB / 0.504 GB, free: 13.33 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.215e-06/0.4941, allocations: 0 / 0.504 GB, free: 13.33 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001214/0.4954, allocations: 266.3 kB / 0.5042 GB, free: 13.08 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000663/0.496, allocations: 206.1 kB / 0.5044 GB, free: 12.87 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001097/0.4961, allocations: 28 kB / 0.5045 GB, free: 12.84 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003424/0.4996, allocations: 3.21 MB / 0.5076 GB, free: 9.371 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.801e-06/0.4996, allocations: 4.875 kB / 0.5076 GB, free: 9.367 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005362/0.5049, allocations: 3.144 MB / 0.5107 GB, free: 6.168 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001323/0.5062, allocations: 435.8 kB / 0.5111 GB, free: 5.723 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005896/0.5068, allocations: 20 kB / 0.5111 GB, free: 5.703 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001396/0.5082, allocations: 95.86 kB / 0.5112 GB, free: 5.609 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002163/0.5085, allocations: 91.52 kB / 0.5113 GB, free: 5.523 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.221e-05/0.5085, allocations: 32 kB / 0.5113 GB, free: 5.492 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002761/0.5113, allocations: 1.224 MB / 0.5125 GB, free: 4.277 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.5113, allocations: 0 / 0.5125 GB, free: 4.277 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002614/0.5139, allocations: 491.9 kB / 0.513 GB, free: 3.797 MB / 414.1 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 (121): * Single equations (assignments): 117 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * 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): 2 systems {(2,1,100.0%), (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.0005426/0.5145, allocations: 189.5 kB / 0.5132 GB, free: 3.617 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004647/0.5191, allocations: 2.269 MB / 0.5154 GB, free: 1.336 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 8.456e-06/0.5191, allocations: 0 / 0.5154 GB, free: 1.336 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002245/0.5214, allocations: 1.272 MB / 0.5166 GB, free: 28 kB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003719/0.5251, allocations: 0.5166 MB / 0.5171 GB, free: 15.54 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01191/0.537, allocations: 4.986 MB / 0.522 GB, free: 10.51 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002775/0.5398, allocations: 1.98 MB / 0.5239 GB, free: 8.504 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009064/0.5407, allocations: 151.4 kB / 0.5241 GB, free: 8.355 MB / 430.1 MB Notification: Performance of SimCode: time 1.212e-06/0.5407, allocations: 0 / 0.5241 GB, free: 8.355 MB / 430.1 MB Notification: Performance of Templates: time 0.1171/0.6578, allocations: 83.25 MB / 0.6054 GB, free: 5.156 MB / 0.4981 GB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.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.313153761991998]