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.001374/0.001374, allocations: 81.97 kB / 22.21 MB, free: 2.289 MB / 18.57 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.001732/0.001732, allocations: 168.5 kB / 25.61 MB, free: 8.582 MB / 18.57 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 0.8953/0.8953, allocations: 177.1 MB / 206 MB, free: 4.473 MB / 186.7 MB " [Timeout remaining time 179] 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.[0-9,]+.",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.[0-9,]+.",fileNamePrefix="Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.033e-06/2.033e-06, allocations: 0 / 274.2 MB, free: 4.352 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.987e-05/3.19e-05, allocations: 8.812 kB / 274.2 MB, free: 4.344 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.05467/0.0547, allocations: 37.57 MB / 311.8 MB, free: 14.62 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01939/0.0741, allocations: 10.54 MB / 322.4 MB, free: 4.062 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00713/0.08123, allocations: 370 kB / 322.7 MB, free: 3.699 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01252/0.09374, allocations: 8.841 MB / 331.6 MB, free: 10.82 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01081/0.1046, allocations: 3.572 MB / 335.1 MB, free: 7.223 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005132/0.1097, allocations: 2.365 MB / 337.5 MB, free: 4.855 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.149/0.2587, allocations: 13.5 MB / 351 MB, free: 17.57 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02291/0.2816, allocations: 17.19 MB / 368.2 MB, free: 13.29 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02136/0.303, allocations: 10.66 MB / 378.8 MB, free: 8.438 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01055/0.3135, allocations: 7.455 MB / 386.3 MB, free: 4.652 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004972/0.3185, allocations: 1.938 MB / 388.2 MB, free: 2.715 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01298/0.3315, allocations: 2.347 MB / 390.6 MB, free: 496 kB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.01276/0.3443, allocations: 4.076 MB / 394.7 MB, free: 13.12 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.01536/0.3596, allocations: 5.112 MB / 399.8 MB, free: 8.246 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01879/0.3784, allocations: 12.57 MB / 412.3 MB, free: 12.54 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.052e-06/0.3784, allocations: 4 kB / 412.3 MB, free: 12.54 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.3784, allocations: 1.125 kB / 412.3 MB, free: 12.54 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0005419/0.379, allocations: 0 / 412.3 MB, free: 12.54 MB / 346.7 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.03182/0.4108, allocations: 15.48 MB / 427.8 MB, free: 13.69 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.87e-05/0.4108, allocations: 8.031 kB / 427.8 MB, free: 13.68 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02142/0.4322, allocations: 6.203 MB / 434 MB, free: 7.547 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0113/0.4435, allocations: 7.258 MB / 441.3 MB, free: 0.5703 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009254/0.4445, allocations: 0.8973 MB / 442.2 MB, free: 15.68 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002414/0.4469, allocations: 1.211 MB / 443.4 MB, free: 14.48 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02285/0.4697, allocations: 9.423 MB / 452.8 MB, free: 5.453 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004289/0.4701, allocations: 22.52 kB / 452.8 MB, free: 5.438 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002561/0.4727, allocations: 0.4885 MB / 453.3 MB, free: 4.961 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000483/0.4732, allocations: 0.6499 MB / 454 MB, free: 4.309 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01371/0.4869, allocations: 4.257 MB / 458.2 MB, free: 32 kB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3156/0.8025, allocations: 46.91 MB / 0.4933 GB, free: 65.72 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007486/0.81, allocations: 7.83 MB / 0.501 GB, free: 65.3 MB / 410.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001839/0.8118, allocations: 1.47 MB / 0.5024 GB, free: 65.22 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007961/0.8198, allocations: 5.354 MB / 0.5076 GB, free: 64.79 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.524e-05/0.8198, allocations: 77.42 kB / 0.5077 GB, free: 64.74 MB / 410.8 MB Notification: Performance of pre-optimization done (n=349): time 4.409e-06/0.8198, allocations: 0 / 0.5077 GB, free: 64.74 MB / 410.8 MB Notification: Performance of matching and sorting (n=389): time 0.01513/0.8349, allocations: 8.798 MB / 0.5163 GB, free: 63.41 MB / 410.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.591e-05/0.835, allocations: 93.47 kB / 0.5164 GB, free: 63.34 MB / 410.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00387/0.8389, allocations: 4.345 MB / 0.5206 GB, free: 62.79 MB / 410.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0003905/0.8392, allocations: 88.77 kB / 0.5207 GB, free: 62.75 MB / 410.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002242/0.8415, allocations: 5.936 MB / 0.5265 GB, free: 60.23 MB / 410.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001076/0.8426, allocations: 1.451 MB / 0.5279 GB, free: 59.34 MB / 410.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001361/0.8439, allocations: 1.489 MB / 0.5294 GB, free: 59.2 MB / 410.8 MB Notification: Performance of setup shared object (initialization): time 5.031e-05/0.844, allocations: 480.6 kB / 0.5298 GB, free: 58.73 MB / 410.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009368/0.8449, allocations: 0.7357 MB / 0.5306 GB, free: 58.72 MB / 410.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002236/0.8471, allocations: 5.243 MB / 0.5357 GB, free: 53.21 MB / 410.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004588/0.8517, allocations: 6.716 MB / 0.5422 GB, free: 47.64 MB / 410.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.08e-05/0.8518, allocations: 27.25 kB / 0.5423 GB, free: 47.64 MB / 410.8 MB Notification: Performance of matching and sorting (n=865) (initialization): time 0.007195/0.859, allocations: 5.609 MB / 0.5477 GB, free: 47.05 MB / 410.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.692e-05/0.8591, allocations: 57.81 kB / 0.5478 GB, free: 47.05 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001029/0.8592, allocations: 99.91 kB / 0.5479 GB, free: 47.05 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001586/0.8608, allocations: 0.8533 MB / 0.5487 GB, free: 46.95 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002797/0.8635, allocations: 1.465 MB / 0.5501 GB, free: 46.95 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00476/0.8683, allocations: 8.179 MB / 0.5581 GB, free: 41.27 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00294/0.8712, allocations: 286.1 kB / 0.5584 GB, free: 41.1 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003402/0.8716, allocations: 303.9 kB / 0.5587 GB, free: 40.87 MB / 410.8 MB 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.002266/0.8739, allocations: 0.6221 MB / 0.5593 GB, free: 40.54 MB / 410.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008325/0.8747, allocations: 0.6281 MB / 0.5599 GB, free: 39.96 MB / 410.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003907/0.8786, allocations: 3.273 MB / 0.5631 GB, free: 38 MB / 410.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.363e-05/0.8786, allocations: 40 kB / 0.5632 GB, free: 37.96 MB / 410.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.999e-06/0.8786, allocations: 8 kB / 0.5632 GB, free: 37.95 MB / 410.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.112e-05/0.8786, allocations: 18.89 kB / 0.5632 GB, free: 37.95 MB / 410.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01242/0.8911, allocations: 8.679 MB / 0.5717 GB, free: 33.48 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.406e-06/0.8911, allocations: 0 / 0.5717 GB, free: 33.48 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001651/0.8927, allocations: 0.6407 MB / 0.5723 GB, free: 32.98 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001547/0.8943, allocations: 0.7078 MB / 0.573 GB, free: 32.49 MB / 410.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002228/0.8945, allocations: 87.52 kB / 0.5731 GB, free: 32.46 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004361/0.8988, allocations: 7.757 MB / 0.5806 GB, free: 25.34 MB / 410.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.446e-06/0.8988, allocations: 11.88 kB / 0.5806 GB, free: 25.33 MB / 410.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005503/0.9044, allocations: 4.032 MB / 0.5846 GB, free: 21.27 MB / 410.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001645/0.906, allocations: 0.8361 MB / 0.5854 GB, free: 20.43 MB / 410.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005552/0.9066, allocations: 68 kB / 0.5855 GB, free: 20.37 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00119/0.9077, allocations: 104 kB / 0.5856 GB, free: 20.27 MB / 410.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004558/0.9082, allocations: 286.6 kB / 0.5858 GB, free: 19.98 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000167/0.9084, allocations: 91.44 kB / 0.5859 GB, free: 19.9 MB / 410.8 MB Notification: Performance of sorting global known variables: time 0.002195/0.9106, allocations: 1.896 MB / 0.5878 GB, free: 18.2 MB / 410.8 MB Notification: Performance of sort global known variables: time 1.91e-07/0.9106, allocations: 0 / 0.5878 GB, free: 18.2 MB / 410.8 MB Notification: Performance of remove unused functions: time 0.005523/0.9161, allocations: 1.859 MB / 0.5896 GB, free: 16.34 MB / 410.8 MB 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.0004713/0.9166, allocations: 273.2 kB / 0.5898 GB, free: 16.1 MB / 410.8 MB Notification: Performance of simCode: created initialization part: time 0.005228/0.9218, allocations: 4.258 MB / 0.594 GB, free: 12.15 MB / 410.8 MB Notification: Performance of simCode: created event and clocks part: time 5.771e-06/0.9218, allocations: 4 kB / 0.594 GB, free: 12.14 MB / 410.8 MB Notification: Performance of simCode: created simulation system equations: time 0.002073/0.9239, allocations: 2.122 MB / 0.5961 GB, free: 10.07 MB / 410.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00346/0.9273, allocations: 1.196 MB / 0.5973 GB, free: 8.918 MB / 410.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02501/0.9523, allocations: 16.97 MB / 0.6138 GB, free: 7.852 MB / 426.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004053/0.9564, allocations: 3.078 MB / 0.6168 GB, free: 4.746 MB / 426.8 MB Notification: Performance of simCode: alias equations: time 0.002859/0.9592, allocations: 0.8081 MB / 0.6176 GB, free: 3.934 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002152/0.9614, allocations: 1.255 MB / 0.6188 GB, free: 2.676 MB / 426.8 MB Notification: Performance of SimCode: time 4.749e-06/0.9614, allocations: 0 / 0.6188 GB, free: 2.676 MB / 426.8 MB Notification: Performance of Templates: time 0.2331/1.195, allocations: 71.43 MB / 0.6886 GB, free: 89.64 MB / 442.8 MB " [Timeout remaining time 659] 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_CurrentSource/SMR_CurrentSource.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: 5.830710061360151]