Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_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.001586/0.001586, allocations: 112.2 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.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.001967/0.001967, allocations: 209.8 kB / 24.5 MB, free: 4.133 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.407/1.407, allocations: 230.6 MB / 258.3 MB, free: 8.016 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.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.1.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.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001499/0.001499, allocations: 43.92 kB / 379.1 MB, free: 2.578 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2308/0.2323, allocations: 53.37 MB / 432.5 MB, free: 6.887 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.04532/0.2776, allocations: 40.33 MB / 472.8 MB, free: 14.38 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02275/0.3003, allocations: 10.69 MB / 483.5 MB, free: 3.66 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00854/0.3089, allocations: 377.9 kB / 483.8 MB, free: 3.289 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02083/0.3297, allocations: 8.663 MB / 492.5 MB, free: 10.6 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01227/0.342, allocations: 3.576 MB / 496.1 MB, free: 7.012 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007743/0.3497, allocations: 2.417 MB / 498.5 MB, free: 4.598 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01917/0.3689, allocations: 13.04 MB / 0.4995 GB, free: 7.512 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03257/0.4015, allocations: 17.37 MB / 0.5165 GB, free: 5.988 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01272/0.4142, allocations: 6.978 MB / 0.5233 GB, free: 14.99 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01411/0.4283, allocations: 7.927 MB / 0.5311 GB, free: 7.039 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005863/0.4341, allocations: 1.953 MB / 0.533 GB, free: 5.086 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008088/0.4422, allocations: 2.378 MB / 0.5353 GB, free: 2.707 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2455/0.6878, allocations: 3.971 MB / 0.5392 GB, free: 31.31 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01677/0.7045, allocations: 7.562 MB / 0.5466 GB, free: 30.86 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03451/0.739, allocations: 25.97 MB / 0.5719 GB, free: 24.62 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.699e-06/0.7391, allocations: 0 / 0.5719 GB, free: 24.62 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.7391, allocations: 2.625 kB / 0.5719 GB, free: 24.62 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0008862/0.7399, allocations: 5.812 kB / 0.5719 GB, free: 24.61 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.04763/0.7876, allocations: 15.25 MB / 0.5868 GB, free: 14.89 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.534e-05/0.7876, allocations: 10.88 kB / 0.5868 GB, free: 14.88 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03213/0.8197, allocations: 6.133 MB / 0.5928 GB, free: 12.06 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01812/0.8379, allocations: 8.121 MB / 0.6008 GB, free: 7.02 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007612/0.8386, allocations: 0.9027 MB / 0.6016 GB, free: 6.391 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005632/0.8443, allocations: 1.188 MB / 0.6028 GB, free: 5.211 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05384/0.8981, allocations: 18.69 MB / 0.621 GB, free: 2.461 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005235/0.8986, allocations: 31.45 kB / 0.6211 GB, free: 2.434 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005063/0.9037, allocations: 499.4 kB / 0.6216 GB, free: 1.957 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007232/0.9044, allocations: 0.6421 MB / 0.6222 GB, free: 1.312 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04148/0.9459, allocations: 16.8 MB / 0.6386 GB, free: 0.5039 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1176/1.063, allocations: 57.25 MB / 0.6945 GB, free: 7.027 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0196/1.083, allocations: 10.37 MB / 0.7046 GB, free: 14.31 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006538/1.09, allocations: 3.405 MB / 0.708 GB, free: 10.89 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01938/1.109, allocations: 8.538 MB / 0.7163 GB, free: 2.465 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.516e-05/1.109, allocations: 77.3 kB / 0.7164 GB, free: 2.379 MB / 0.545 GB Notification: Performance of pre-optimization done (n=349): time 5.78e-06/1.109, allocations: 0 / 0.7164 GB, free: 2.379 MB / 0.545 GB Notification: Performance of matching and sorting (n=389): time 0.03986/1.149, allocations: 17.28 MB / 0.7332 GB, free: 1.129 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.619e-05/1.149, allocations: 98.45 kB / 0.7333 GB, free: 1.02 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00946/1.158, allocations: 5.042 MB / 0.7383 GB, free: 11.98 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0008359/1.159, allocations: 89.7 kB / 0.7383 GB, free: 11.89 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.004705/1.164, allocations: 5.641 MB / 0.7439 GB, free: 6.238 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.001982/1.166, allocations: 1.415 MB / 0.7452 GB, free: 4.84 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002506/1.168, allocations: 1.334 MB / 0.7465 GB, free: 3.496 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001339/1.169, allocations: 305.1 kB / 0.7468 GB, free: 3.195 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00495/1.174, allocations: 2.906 MB / 0.7497 GB, free: 292 kB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2626/1.436, allocations: 5.88 MB / 0.7554 GB, free: 199.3 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01101/1.447, allocations: 9.452 MB / 0.7646 GB, free: 195.1 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002004/1.447, allocations: 29.41 kB / 0.7647 GB, free: 195.1 MB / 0.5762 GB Notification: Performance of matching and sorting (n=865) (initialization): time 0.01737/1.465, allocations: 9.88 MB / 0.7743 GB, free: 192 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001036/1.465, allocations: 48.78 kB / 0.7744 GB, free: 192 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001711/1.465, allocations: 105.1 kB / 0.7745 GB, free: 192 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002253/1.467, allocations: 0.9319 MB / 0.7754 GB, free: 191.8 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005638/1.473, allocations: 1.596 MB / 0.7769 GB, free: 191.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01053/1.483, allocations: 9.885 MB / 0.7866 GB, free: 185.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00618/1.49, allocations: 407 kB / 0.787 GB, free: 185 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001336/1.491, allocations: 357.7 kB / 0.7873 GB, free: 184.9 MB / 0.5762 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.007716/1.499, allocations: 4.253 MB / 0.7915 GB, free: 182.9 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001228/1.5, allocations: 0.5359 MB / 0.792 GB, free: 182.9 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009852/1.51, allocations: 6.454 MB / 0.7983 GB, free: 178.9 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.299e-05/1.51, allocations: 40 kB / 0.7983 GB, free: 178.8 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.555e-05/1.51, allocations: 15.94 kB / 0.7983 GB, free: 178.8 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.321e-05/1.51, allocations: 19.08 kB / 0.7984 GB, free: 178.8 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02751/1.537, allocations: 15.75 MB / 0.8137 GB, free: 166 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.431e-05/1.537, allocations: 1.094 kB / 0.8137 GB, free: 166 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00324/1.541, allocations: 0.7534 MB / 0.8145 GB, free: 165.4 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002031/1.543, allocations: 0.7839 MB / 0.8152 GB, free: 164.8 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005533/1.543, allocations: 95.05 kB / 0.8153 GB, free: 164.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00851/1.552, allocations: 9.05 MB / 0.8242 GB, free: 156.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/1.552, allocations: 4 kB / 0.8242 GB, free: 156.3 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01258/1.564, allocations: 9.519 MB / 0.8335 GB, free: 147 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003243/1.567, allocations: 1.03 MB / 0.8345 GB, free: 146 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001258/1.569, allocations: 77.34 kB / 0.8345 GB, free: 145.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002943/1.572, allocations: 219.8 kB / 0.8348 GB, free: 145.7 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005078/1.572, allocations: 286.6 kB / 0.835 GB, free: 145.4 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002315/1.572, allocations: 112 kB / 0.8351 GB, free: 145.3 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.004927/1.577, allocations: 3.359 MB / 0.8384 GB, free: 142 MB / 0.5762 GB Notification: Performance of sort global known variables: time 7e-08/1.577, allocations: 0 / 0.8384 GB, free: 142 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.007268/1.585, allocations: 1.887 MB / 0.8403 GB, free: 140.1 MB / 0.5762 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.0007465/1.585, allocations: 268.2 kB / 0.8405 GB, free: 139.8 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0104/1.596, allocations: 7.219 MB / 0.8476 GB, free: 132.6 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 8.946e-06/1.596, allocations: 0 / 0.8476 GB, free: 132.6 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.004928/1.601, allocations: 3.183 MB / 0.8507 GB, free: 129.3 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006278/1.607, allocations: 1.303 MB / 0.8519 GB, free: 128.1 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03548/1.642, allocations: 19.83 MB / 0.8713 GB, free: 108.2 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0088/1.651, allocations: 7.105 MB / 0.8783 GB, free: 101 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002135/1.653, allocations: 487.3 kB / 0.8787 GB, free: 100.6 MB / 0.5762 GB Notification: Performance of SimCode: time 1.493e-06/1.653, allocations: 0 / 0.8787 GB, free: 100.6 MB / 0.5762 GB Notification: Performance of Templates: time 0.9115/2.565, allocations: 464.4 MB / 1.332 GB, free: 91.72 MB / 0.5919 GB " [Timeout remaining time 657] make -j1 -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.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.1.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_CurrentSource/SMR_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 21.398268138058484]