Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000883/0.000883, allocations: 92.28 kB / 21.44 MB, free: 3.129 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.005628/0.005628, allocations: 157.9 kB / 24.7 MB, free: 8.906 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9181/0.9181, allocations: 177 MB / 204.9 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.452e-06/1.452e-06, allocations: 0 / 325.8 MB, free: 15.39 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.011e-05/2.156e-05, allocations: 2.281 kB / 325.8 MB, free: 15.38 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.0111/0.01112, allocations: 13.81 MB / 339.6 MB, free: 1.5 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.009131/0.02025, allocations: 5.088 MB / 344.7 MB, free: 12.39 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002209/0.02246, allocations: 123.2 kB / 344.8 MB, free: 12.27 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002314/0.02478, allocations: 1.083 MB / 345.9 MB, free: 11.18 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00302/0.0278, allocations: 1.304 MB / 347.2 MB, free: 9.863 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001424/0.02922, allocations: 0.9039 MB / 348.1 MB, free: 8.957 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.003166/0.03239, allocations: 3.805 MB / 351.9 MB, free: 5.137 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001865/0.03425, allocations: 1.842 MB / 353.8 MB, free: 3.227 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002791/0.03704, allocations: 2.612 MB / 356.4 MB, free: 0.6094 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00187/0.03891, allocations: 1.742 MB / 358.1 MB, free: 14.86 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005701/0.03948, allocations: 480 kB / 358.6 MB, free: 14.39 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001067/0.04055, allocations: 0.687 MB / 359.3 MB, free: 13.7 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000737/0.04129, allocations: 1.176 MB / 360.4 MB, free: 12.52 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001313/0.0426, allocations: 1.384 MB / 361.8 MB, free: 11.14 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004735/0.04733, allocations: 6.353 MB / 368.2 MB, free: 4.766 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.409e-06/0.04734, allocations: 0 / 368.2 MB, free: 4.766 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.214e-06/0.04734, allocations: 0 / 368.2 MB, free: 4.766 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001108/0.04745, allocations: 0 / 368.2 MB, free: 4.766 MB / 330.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.006458/0.05391, allocations: 4.248 MB / 372.4 MB, free: 468 kB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.653e-05/0.05396, allocations: 11.98 kB / 372.4 MB, free: 456 kB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001535/0.05549, allocations: 0.631 MB / 373.1 MB, free: 15.81 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002656/0.05815, allocations: 2.217 MB / 375.3 MB, free: 13.55 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001305/0.05828, allocations: 238.7 kB / 375.5 MB, free: 13.31 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003547/0.05863, allocations: 312.3 kB / 375.8 MB, free: 13.01 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004632/0.06326, allocations: 4.126 MB / 380 MB, free: 8.801 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.889e-05/0.06332, allocations: 11.89 kB / 380 MB, free: 8.789 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001989/0.06352, allocations: 128 kB / 380.1 MB, free: 8.664 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001111/0.06363, allocations: 150.2 kB / 380.2 MB, free: 8.516 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003814/0.06745, allocations: 3.382 MB / 383.6 MB, free: 5.125 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01188/0.07932, allocations: 11.31 MB / 394.9 MB, free: 9.426 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002244/0.08157, allocations: 1.756 MB / 396.7 MB, free: 7.703 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001075/0.08264, allocations: 0.926 MB / 397.6 MB, free: 6.781 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003168/0.08581, allocations: 2.148 MB / 399.8 MB, free: 4.605 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.016e-05/0.08585, allocations: 43.56 kB / 399.8 MB, free: 4.555 MB / 362.7 MB Notification: Performance of pre-optimization done (n=108): time 4.548e-06/0.08585, allocations: 4 kB / 399.8 MB, free: 4.551 MB / 362.7 MB Notification: Performance of matching and sorting (n=142): time 0.008392/0.09425, allocations: 5.811 MB / 405.6 MB, free: 14.71 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.414e-05/0.0943, allocations: 68.72 kB / 405.7 MB, free: 14.63 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002168/0.09647, allocations: 1.74 MB / 407.4 MB, free: 12.89 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.931e-05/0.09655, allocations: 53.7 kB / 407.5 MB, free: 12.83 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000903/0.09745, allocations: 1.571 MB / 409 MB, free: 11.24 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003425/0.09779, allocations: 0.5035 MB / 409.6 MB, free: 10.73 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000377/0.09817, allocations: 331.4 kB / 409.9 MB, free: 10.41 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.378e-05/0.09826, allocations: 301.1 kB / 410.2 MB, free: 10.11 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008139/0.09908, allocations: 0.7691 MB / 410.9 MB, free: 9.34 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001095/0.1002, allocations: 1.404 MB / 412.3 MB, free: 7.66 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00206/0.1022, allocations: 2.32 MB / 414.7 MB, free: 5.074 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.007e-06/0.1022, allocations: 4 kB / 414.7 MB, free: 5.07 MB / 378.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.002536/0.1048, allocations: 2.471 MB / 417.1 MB, free: 2.582 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.868e-05/0.1048, allocations: 15.98 kB / 417.2 MB, free: 2.566 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.349e-05/0.1048, allocations: 20 kB / 417.2 MB, free: 2.547 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002458/0.1051, allocations: 114.5 kB / 417.3 MB, free: 2.426 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009306/0.106, allocations: 487.4 kB / 417.8 MB, free: 1.949 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000847/0.1069, allocations: 1.279 MB / 419 MB, free: 0.5664 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007581/0.1076, allocations: 115.8 kB / 419.2 MB, free: 464 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.596e-05/0.1077, allocations: 80.16 kB / 419.2 MB, free: 384 kB / 378.7 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.00135/0.109, allocations: 0.9967 MB / 420.2 MB, free: 15.37 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001887/0.1092, allocations: 202.6 kB / 420.4 MB, free: 15.17 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002057/0.1113, allocations: 1.949 MB / 422.4 MB, free: 13.19 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.207e-05/0.1113, allocations: 16 kB / 422.4 MB, free: 13.18 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.1113, allocations: 0 / 422.4 MB, free: 13.18 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.049e-05/0.1113, allocations: 7.969 kB / 422.4 MB, free: 13.17 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004789/0.1161, allocations: 4.239 MB / 426.6 MB, free: 8.855 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.979e-06/0.1161, allocations: 0 / 426.6 MB, free: 8.855 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000695/0.1168, allocations: 315.8 kB / 426.9 MB, free: 8.547 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001772/0.117, allocations: 94.52 kB / 427 MB, free: 8.445 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.938e-05/0.117, allocations: 32 kB / 427.1 MB, free: 8.414 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006161/0.1177, allocations: 1.248 MB / 428.3 MB, free: 7.062 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.357e-06/0.1177, allocations: 8.156 kB / 428.3 MB, free: 7.055 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002851/0.1205, allocations: 3.075 MB / 431.4 MB, free: 3.926 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005374/0.1211, allocations: 366.6 kB / 431.8 MB, free: 3.566 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001365/0.1212, allocations: 28 kB / 431.8 MB, free: 3.539 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004984/0.1217, allocations: 79.84 kB / 431.9 MB, free: 3.461 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001177/0.1218, allocations: 93.14 kB / 432 MB, free: 3.371 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.841e-05/0.1219, allocations: 40.05 kB / 432 MB, free: 3.332 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001204/0.1231, allocations: 1.16 MB / 433.2 MB, free: 2.18 MB / 394.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1231, allocations: 0 / 433.2 MB, free: 2.18 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001241/0.1243, allocations: 0.5351 MB / 433.7 MB, free: 1.645 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 () * 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.0003018/0.1246, allocations: 178.8 kB / 433.9 MB, free: 1.457 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002176/0.1268, allocations: 1.984 MB / 435.8 MB, free: 15.45 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.1268, allocations: 0 / 435.8 MB, free: 15.45 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008934/0.1277, allocations: 0.9564 MB / 436.8 MB, free: 14.48 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001166/0.1288, allocations: 474.5 kB / 437.3 MB, free: 14.03 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006323/0.1352, allocations: 5.628 MB / 442.9 MB, free: 8.336 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001203/0.1364, allocations: 1.667 MB / 444.6 MB, free: 6.637 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003652/0.1367, allocations: 164.5 kB / 444.7 MB, free: 6.477 MB / 410.7 MB Notification: Performance of SimCode: time 7.52e-07/0.1367, allocations: 0 / 444.7 MB, free: 6.477 MB / 410.7 MB Notification: Performance of Templates: time 0.2125/0.3492, allocations: 86.99 MB / 0.5192 GB, free: 40.6 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 8.079894405789673]