Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.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.0008295/0.0008295, allocations: 80.62 kB / 22.21 MB, free: 2.293 MB / 18.57 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.0008645/0.0008645, allocations: 149.5 kB / 25.59 MB, free: 8.91 MB / 18.57 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 0.876/0.876, allocations: 173.4 MB / 202.3 MB, free: 8.309 MB / 186.7 MB " [Timeout remaining time 179] 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.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Vtr|Vqs",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Vtr|Vqs",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.954e-06/1.954e-06, allocations: 0 / 269.2 MB, free: 9.742 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.358e-05/2.554e-05, allocations: 2.312 kB / 269.2 MB, free: 9.738 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.0226/0.02262, allocations: 28.67 MB / 297.9 MB, free: 12.95 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.01451/0.03713, allocations: 8.52 MB / 306.4 MB, free: 4.422 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002951/0.04009, allocations: 218.9 kB / 306.6 MB, free: 4.207 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006758/0.04684, allocations: 5.05 MB / 311.7 MB, free: 15.13 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006059/0.0529, allocations: 3.115 MB / 314.8 MB, free: 12 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002402/0.05531, allocations: 1.586 MB / 316.4 MB, free: 10.41 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.007402/0.06271, allocations: 9.091 MB / 325.5 MB, free: 1.293 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009497/0.0722, allocations: 9.126 MB / 334.6 MB, free: 8.062 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006685/0.07889, allocations: 6.415 MB / 341 MB, free: 1.637 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1439/0.2228, allocations: 4.55 MB / 345.6 MB, free: 30.43 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003344/0.2262, allocations: 1.158 MB / 346.7 MB, free: 30.43 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003145/0.2293, allocations: 1.516 MB / 348.2 MB, free: 30.43 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001445/0.2308, allocations: 2.497 MB / 350.7 MB, free: 30.43 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003764/0.2345, allocations: 3.17 MB / 353.9 MB, free: 30.43 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00644/0.241, allocations: 7.759 MB / 361.7 MB, free: 29.84 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.241, allocations: 0 / 361.7 MB, free: 29.84 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.241, allocations: 1.062 kB / 361.7 MB, free: 29.84 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001175/0.2411, allocations: 0 / 361.7 MB, free: 29.84 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1994 * Number of variables: 1994 Notification: Performance of Generate backend data structure: time 0.01137/0.2525, allocations: 9.861 MB / 371.5 MB, free: 25.18 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.748e-05/0.2525, allocations: 7.594 kB / 371.5 MB, free: 25.18 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01296/0.2655, allocations: 5.006 MB / 376.5 MB, free: 23.85 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005532/0.271, allocations: 4.557 MB / 381.1 MB, free: 21.23 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002047/0.2712, allocations: 0.5299 MB / 381.6 MB, free: 20.71 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007915/0.272, allocations: 0.7121 MB / 382.3 MB, free: 20.01 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00654/0.2785, allocations: 5.842 MB / 388.2 MB, free: 14.36 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001261/0.2787, allocations: 26.34 kB / 388.2 MB, free: 14.34 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004948/0.2791, allocations: 292.1 kB / 388.5 MB, free: 14.06 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002285/0.2794, allocations: 446.9 kB / 388.9 MB, free: 13.62 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003983/0.2834, allocations: 2.892 MB / 391.8 MB, free: 10.73 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02906/0.3124, allocations: 30.18 MB / 422 MB, free: 13.29 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005747/0.3182, allocations: 5.708 MB / 427.7 MB, free: 8.848 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001157/0.3193, allocations: 1.061 MB / 428.8 MB, free: 7.816 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006141/0.3255, allocations: 4.701 MB / 433.5 MB, free: 3.277 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.597e-05/0.3255, allocations: 63.39 kB / 433.5 MB, free: 3.207 MB / 346.7 MB Notification: Performance of pre-optimization done (n=217): time 3.497e-06/0.3255, allocations: 4 kB / 433.5 MB, free: 3.203 MB / 346.7 MB Notification: Performance of matching and sorting (n=233): time 0.00868/0.3342, allocations: 5.12 MB / 438.7 MB, free: 14.14 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001261/0.3354, allocations: 2.2 MB / 440.9 MB, free: 11.83 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003536/0.339, allocations: 3.267 MB / 444.1 MB, free: 9.082 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001179/0.3391, allocations: 65.7 kB / 444.2 MB, free: 9.012 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001928/0.341, allocations: 3.89 MB / 448.1 MB, free: 5.258 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005664/0.3416, allocations: 0.889 MB / 449 MB, free: 4.414 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009731/0.3426, allocations: 1.044 MB / 450 MB, free: 3.453 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001053/0.3427, allocations: 480.7 kB / 450.5 MB, free: 2.98 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00126/0.3439, allocations: 0.5791 MB / 451.1 MB, free: 2.398 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002632/0.3466, allocations: 4.346 MB / 455.4 MB, free: 12.53 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003964/0.3505, allocations: 5.305 MB / 460.7 MB, free: 6.047 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.373e-05/0.3506, allocations: 27.98 kB / 460.7 MB, free: 6.02 MB / 378.7 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.004948/0.3555, allocations: 4.234 MB / 465 MB, free: 2.34 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.983e-05/0.3555, allocations: 44 kB / 465 MB, free: 2.297 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.443e-05/0.3556, allocations: 87.98 kB / 465.1 MB, free: 2.211 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001263/0.3569, allocations: 0.6872 MB / 465.8 MB, free: 1.523 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00179/0.3587, allocations: 1.05 MB / 466.8 MB, free: 0.5664 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003218/0.3619, allocations: 3.632 MB / 470.5 MB, free: 12.91 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001987/0.3639, allocations: 239.6 kB / 470.7 MB, free: 12.68 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002342/0.3641, allocations: 232.1 kB / 470.9 MB, free: 12.45 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 393 * 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 (590): * Single equations (assignments): 587 * 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 {(4,32,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001641/0.3657, allocations: 0.5179 MB / 471.4 MB, free: 12.01 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004851/0.3662, allocations: 453.6 kB / 471.9 MB, free: 11.56 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002813/0.369, allocations: 2.235 MB / 474.1 MB, free: 9.336 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.362e-05/0.369, allocations: 24 kB / 474.1 MB, free: 9.312 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/0.3691, allocations: 4 kB / 474.2 MB, free: 9.309 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.531e-05/0.3691, allocations: 11.95 kB / 474.2 MB, free: 9.297 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01189/0.381, allocations: 11.2 MB / 485.4 MB, free: 14.74 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.178e-05/0.381, allocations: 12 kB / 485.4 MB, free: 14.73 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001075/0.382, allocations: 411.2 kB / 485.8 MB, free: 14.36 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001281/0.3833, allocations: 0.6444 MB / 486.4 MB, free: 13.71 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001173/0.3834, allocations: 71.97 kB / 486.5 MB, free: 13.64 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004034/0.3875, allocations: 5.515 MB / 492 MB, free: 7.98 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001145/0.3886, allocations: 2.149 MB / 494.2 MB, free: 5.73 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003709/0.3923, allocations: 3.251 MB / 497.4 MB, free: 2.23 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009648/0.3933, allocations: 0.6134 MB / 498 MB, free: 1.621 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002793/0.3936, allocations: 63.98 kB / 498.1 MB, free: 1.559 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000782/0.3944, allocations: 92 kB / 498.2 MB, free: 1.469 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002682/0.3946, allocations: 232.7 kB / 498.4 MB, free: 1.25 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001082/0.3947, allocations: 74.83 kB / 498.5 MB, free: 1.18 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.1484/0.5431, allocations: 1.455 MB / 499.9 MB, free: 106.5 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.8e-07/0.5431, allocations: 0 / 499.9 MB, free: 106.5 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005994/0.5491, allocations: 1.283 MB / 0.4895 GB, free: 106.5 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 1 ($STATESET1.x) * 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 (241): * Single equations (assignments): 238 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 1 system {(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 {(4,32,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004177/0.5495, allocations: 237.2 kB / 0.4897 GB, free: 106.4 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003475/0.553, allocations: 2.871 MB / 0.4925 GB, free: 106.1 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.704e-06/0.553, allocations: 1.375 kB / 0.4925 GB, free: 106.1 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001503/0.5545, allocations: 1.513 MB / 0.494 GB, free: 105.6 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002513/0.557, allocations: 0.8676 MB / 0.4948 GB, free: 105.6 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01281/0.5698, allocations: 10.79 MB / 0.5054 GB, free: 100.9 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001332/0.5711, allocations: 1.766 MB / 0.5071 GB, free: 100.7 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001564/0.5727, allocations: 0.6001 MB / 0.5077 GB, free: 100.6 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00142/0.5741, allocations: 0.9392 MB / 0.5086 GB, free: 100.6 MB / 410.7 MB Notification: Performance of SimCode: time 1.563e-06/0.5741, allocations: 0 / 0.5086 GB, free: 100.6 MB / 410.7 MB Notification: Performance of Templates: time 0.06446/0.6386, allocations: 53.17 MB / 0.5605 GB, free: 61.18 MB / 410.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_OpenCircuit/SMPM_OpenCircuit.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.268488442990929]