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.SMR_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.001389/0.001389, allocations: 108.6 kB / 21.19 MB, free: 0.7578 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.00149/0.00149, allocations: 193.1 kB / 24.47 MB, free: 4.152 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.439/1.439, allocations: 225.6 MB / 253.3 MB, free: 13.01 MB / 206.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.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|dqToThreePhase.y.1.|dqToThreePhase.y.2.|dqToThreePhase.y.3.",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|dqToThreePhase.y.1.|dqToThreePhase.y.2.|dqToThreePhase.y.3.",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001711/0.001711, allocations: 51.92 kB / 371.8 MB, free: 9.316 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2585/0.2602, allocations: 52.18 MB / 423.9 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.04761/0.3078, allocations: 39.7 MB / 463.6 MB, free: 6.801 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02393/0.3317, allocations: 10.46 MB / 474.1 MB, free: 12.31 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007606/0.3393, allocations: 366 kB / 474.4 MB, free: 11.95 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0218/0.3611, allocations: 8.659 MB / 483.1 MB, free: 3.273 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01258/0.3737, allocations: 3.562 MB / 486.7 MB, free: 15.7 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008039/0.3817, allocations: 2.382 MB / 489 MB, free: 13.32 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01958/0.4013, allocations: 12.97 MB / 0.4903 GB, free: 304 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03607/0.4374, allocations: 17.35 MB / 0.5072 GB, free: 14.79 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0126/0.45, allocations: 6.974 MB / 0.514 GB, free: 7.793 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01412/0.4641, allocations: 7.821 MB / 0.5217 GB, free: 15.95 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005533/0.4696, allocations: 1.953 MB / 0.5236 GB, free: 13.99 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007227/0.4769, allocations: 2.355 MB / 0.5259 GB, free: 11.64 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006855/0.4837, allocations: 3.967 MB / 0.5297 GB, free: 7.66 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01401/0.4977, allocations: 7.552 MB / 0.5371 GB, free: 80 kB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2667/0.7645, allocations: 25.94 MB / 0.5624 GB, free: 41.58 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.231e-06/0.7645, allocations: 0.8125 kB / 0.5624 GB, free: 41.58 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.7645, allocations: 3.625 kB / 0.5624 GB, free: 41.58 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0008844/0.7654, allocations: 1.062 kB / 0.5624 GB, free: 41.58 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3329 * Number of variables: 3329 Notification: Performance of Generate backend data structure: time 0.04868/0.814, allocations: 15.22 MB / 0.5773 GB, free: 33.79 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.488e-05/0.8141, allocations: 11.69 kB / 0.5773 GB, free: 33.79 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03225/0.8463, allocations: 6.204 MB / 0.5834 GB, free: 30.94 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01816/0.8645, allocations: 8.097 MB / 0.5913 GB, free: 25.92 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007569/0.8653, allocations: 0.9058 MB / 0.5922 GB, free: 25.16 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005485/0.8707, allocations: 1.194 MB / 0.5933 GB, free: 23.98 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04737/0.9181, allocations: 18.65 MB / 0.6115 GB, free: 5.27 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004503/0.9186, allocations: 19.91 kB / 0.6116 GB, free: 5.25 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004186/0.9227, allocations: 498.3 kB / 0.612 GB, free: 4.773 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005096/0.9233, allocations: 0.6455 MB / 0.6127 GB, free: 4.129 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04432/0.9676, allocations: 16.77 MB / 0.629 GB, free: 3.352 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1231/1.091, allocations: 57.16 MB / 0.6849 GB, free: 9.969 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02/1.111, allocations: 10.24 MB / 0.6949 GB, free: 1.355 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006972/1.118, allocations: 3.367 MB / 0.6981 GB, free: 13.97 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02198/1.14, allocations: 8.463 MB / 0.7064 GB, free: 5.617 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.409e-05/1.14, allocations: 73.3 kB / 0.7065 GB, free: 5.535 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=349): time 6.062e-06/1.14, allocations: 0 / 0.7065 GB, free: 5.535 MB / 0.5294 GB Notification: Performance of matching and sorting (n=389): time 0.04303/1.183, allocations: 17.23 MB / 0.7233 GB, free: 4.336 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.371e-05/1.183, allocations: 94.47 kB / 0.7234 GB, free: 4.23 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01139/1.194, allocations: 5.017 MB / 0.7283 GB, free: 15.22 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0008245/1.195, allocations: 89.7 kB / 0.7284 GB, free: 15.12 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.005457/1.201, allocations: 5.639 MB / 0.7339 GB, free: 9.477 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.002204/1.203, allocations: 1.419 MB / 0.7353 GB, free: 8.078 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0048/1.208, allocations: 1.331 MB / 0.7366 GB, free: 6.738 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001436/1.208, allocations: 301.1 kB / 0.7369 GB, free: 6.441 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006008/1.214, allocations: 2.906 MB / 0.7397 GB, free: 3.531 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.255/1.469, allocations: 5.868 MB / 0.7454 GB, free: 193.3 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01231/1.481, allocations: 9.445 MB / 0.7547 GB, free: 189 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002526/1.481, allocations: 27.72 kB / 0.7547 GB, free: 189 MB / 0.5606 GB Notification: Performance of matching and sorting (n=865) (initialization): time 0.01765/1.499, allocations: 9.84 MB / 0.7643 GB, free: 185.4 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001233/1.499, allocations: 54.02 kB / 0.7643 GB, free: 185.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000181/1.499, allocations: 101.4 kB / 0.7644 GB, free: 185.4 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002311/1.502, allocations: 0.9358 MB / 0.7654 GB, free: 185.2 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005825/1.507, allocations: 1.582 MB / 0.7669 GB, free: 185.1 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009996/1.517, allocations: 9.898 MB / 0.7766 GB, free: 178.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005783/1.523, allocations: 407.6 kB / 0.777 GB, free: 178.4 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001314/1.524, allocations: 359.1 kB / 0.7773 GB, free: 178.3 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 455 * 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 (816): * Single equations (assignments): 811 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * 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): 3 systems {(1,1,100.0%), (1,1,100.0%), (8,38,59.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.008206/1.533, allocations: 4.236 MB / 0.7814 GB, free: 176.3 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001552/1.534, allocations: 0.5437 MB / 0.782 GB, free: 176.3 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0121/1.546, allocations: 6.45 MB / 0.7883 GB, free: 173.1 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.819e-05/1.546, allocations: 40 kB / 0.7883 GB, free: 173 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.318e-05/1.546, allocations: 11.94 kB / 0.7883 GB, free: 173 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-05/1.546, allocations: 22.94 kB / 0.7883 GB, free: 173 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02846/1.575, allocations: 15.7 MB / 0.8037 GB, free: 160.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.574e-05/1.575, allocations: 7.75 kB / 0.8037 GB, free: 160.2 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003353/1.578, allocations: 0.7556 MB / 0.8044 GB, free: 159.6 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001999/1.58, allocations: 0.7791 MB / 0.8052 GB, free: 159 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005747/1.581, allocations: 86.41 kB / 0.8053 GB, free: 158.9 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008469/1.589, allocations: 9.034 MB / 0.8141 GB, free: 149.9 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.528e-06/1.589, allocations: 14.38 kB / 0.8141 GB, free: 149.9 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01322/1.602, allocations: 9.497 MB / 0.8234 GB, free: 140.6 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004354/1.607, allocations: 1.024 MB / 0.8244 GB, free: 139.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001542/1.608, allocations: 77.83 kB / 0.8244 GB, free: 139.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002635/1.611, allocations: 223.7 kB / 0.8247 GB, free: 139.3 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005078/1.612, allocations: 274.5 kB / 0.8249 GB, free: 139.1 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002378/1.612, allocations: 116 kB / 0.825 GB, free: 138.9 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004878/1.617, allocations: 3.354 MB / 0.8283 GB, free: 135.6 MB / 0.5606 GB Notification: Performance of sort global known variables: time 8e-08/1.617, allocations: 0 / 0.8283 GB, free: 135.6 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.007678/1.624, allocations: 1.88 MB / 0.8301 GB, free: 133.7 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.w,quadraticSpeedDependentTorqueQS.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 (368): * Single equations (assignments): 363 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * 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): 3 systems {(1,1,100.0%), (8,38,59.4%), (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.0008162/1.625, allocations: 259.8 kB / 0.8304 GB, free: 133.5 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01083/1.636, allocations: 7.209 MB / 0.8374 GB, free: 126.2 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.512e-05/1.636, allocations: 0 / 0.8374 GB, free: 126.2 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.005496/1.641, allocations: 3.173 MB / 0.8405 GB, free: 123 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007656/1.649, allocations: 1.281 MB / 0.8418 GB, free: 121.8 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03506/1.684, allocations: 19.87 MB / 0.8612 GB, free: 101.8 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009076/1.693, allocations: 7.104 MB / 0.8681 GB, free: 94.68 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00206/1.695, allocations: 459.3 kB / 0.8686 GB, free: 94.23 MB / 0.5606 GB Notification: Performance of SimCode: time 1.663e-06/1.695, allocations: 0 / 0.8686 GB, free: 94.23 MB / 0.5606 GB Notification: Performance of Templates: time 0.974/2.669, allocations: 462.5 MB / 1.32 GB, free: 74.88 MB / 0.5762 GB " [Timeout remaining time 657] make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_CurrentSource/SMR_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_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: 23.15468683396466]