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.001411/0.001411, allocations: 84.34 kB / 20.95 MB, free: 3.457 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.001542/0.001542, allocations: 165.3 kB / 24.27 MB, free: 148 kB / 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 1.473/1.473, allocations: 177.1 MB / 204.6 MB, free: 5.594 MB / 186.7 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 2.605e-06/2.605e-06, allocations: 0 / 272.4 MB, free: 1.77 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.073e-05/4.333e-05, allocations: 2.312 kB / 272.4 MB, free: 1.766 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.1789/0.1789, allocations: 34.42 MB / 306.8 MB, free: 10.18 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.02029/0.1992, allocations: 10.42 MB / 317.2 MB, free: 3.051 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008207/0.2074, allocations: 370.7 kB / 317.6 MB, free: 2.926 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.02364/0.2311, allocations: 8.433 MB / 326 MB, free: 12.4 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01773/0.2488, allocations: 3.576 MB / 329.6 MB, free: 8.805 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01014/0.2589, allocations: 2.333 MB / 331.9 MB, free: 6.469 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.02469/0.2836, allocations: 13.52 MB / 345.4 MB, free: 8.902 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03809/0.3217, allocations: 17.16 MB / 362.6 MB, free: 7.574 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02521/0.3469, allocations: 10.32 MB / 372.9 MB, free: 13.23 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01463/0.3615, allocations: 6.697 MB / 379.6 MB, free: 6.523 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.006299/0.3678, allocations: 1.949 MB / 381.6 MB, free: 4.574 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008585/0.3764, allocations: 2.37 MB / 383.9 MB, free: 2.203 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.007084/0.3835, allocations: 4.032 MB / 388 MB, free: 14.16 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.01491/0.3984, allocations: 5.076 MB / 393 MB, free: 9.074 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.04927/0.4477, allocations: 26.27 MB / 419.3 MB, free: 14.73 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.4477, allocations: 0 / 419.3 MB, free: 14.73 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.4477, allocations: 0 / 419.3 MB, free: 14.73 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0007519/0.4484, allocations: 0 / 419.3 MB, free: 14.73 MB / 378.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.3331/0.7815, allocations: 15.12 MB / 434.4 MB, free: 107.4 MB / 378.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.345e-05/0.7816, allocations: 10.03 kB / 434.4 MB, free: 107.4 MB / 378.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04111/0.8227, allocations: 7.87 MB / 442.3 MB, free: 106.4 MB / 378.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01641/0.8391, allocations: 8.452 MB / 450.8 MB, free: 102.7 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006933/0.8398, allocations: 0.9097 MB / 451.7 MB, free: 102.2 MB / 378.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003675/0.8435, allocations: 1.202 MB / 452.9 MB, free: 101.4 MB / 378.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04392/0.8874, allocations: 18.91 MB / 471.8 MB, free: 82.34 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005685/0.888, allocations: 23.89 kB / 471.8 MB, free: 82.32 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00434/0.8923, allocations: 0.4915 MB / 472.3 MB, free: 81.84 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005752/0.8929, allocations: 0.6459 MB / 473 MB, free: 81.19 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03136/0.9242, allocations: 16.74 MB / 489.7 MB, free: 64.43 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09669/1.021, allocations: 52.05 MB / 0.529 GB, free: 11.96 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01827/1.039, allocations: 10.33 MB / 0.5391 GB, free: 3.23 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006481/1.046, allocations: 3.413 MB / 0.5425 GB, free: 15.81 MB / 394.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02312/1.069, allocations: 7.725 MB / 0.55 GB, free: 8.266 MB / 394.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001101/1.069, allocations: 69.31 kB / 0.5501 GB, free: 8.188 MB / 394.8 MB Notification: Performance of pre-optimization done (n=349): time 8.706e-06/1.069, allocations: 0 / 0.5501 GB, free: 8.188 MB / 394.8 MB Notification: Performance of matching and sorting (n=389): time 0.05228/1.121, allocations: 17.37 MB / 0.567 GB, free: 6.777 MB / 410.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001088/1.121, allocations: 94.47 kB / 0.5671 GB, free: 6.672 MB / 410.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01181/1.133, allocations: 4.795 MB / 0.5718 GB, free: 1.871 MB / 410.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0009183/1.134, allocations: 89.7 kB / 0.5719 GB, free: 1.777 MB / 410.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.006171/1.14, allocations: 5.622 MB / 0.5774 GB, free: 12.14 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002638/1.143, allocations: 1.4 MB / 0.5788 GB, free: 10.76 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004579/1.147, allocations: 1.323 MB / 0.58 GB, free: 9.426 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 0.000169/1.148, allocations: 301.1 kB / 0.5803 GB, free: 9.129 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006923/1.155, allocations: 2.91 MB / 0.5832 GB, free: 6.215 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1699/1.324, allocations: 5.927 MB / 0.589 GB, free: 134.3 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01239/1.337, allocations: 9.462 MB / 0.5982 GB, free: 128.9 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001258/1.337, allocations: 29.22 kB / 0.5982 GB, free: 128.9 MB / 426.8 MB Notification: Performance of matching and sorting (n=865) (initialization): time 0.01782/1.355, allocations: 10.17 MB / 0.6082 GB, free: 125 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001073/1.355, allocations: 46.94 kB / 0.6082 GB, free: 125 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000179/1.355, allocations: 101.3 kB / 0.6083 GB, free: 125 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003113/1.358, allocations: 1.107 MB / 0.6094 GB, free: 124.8 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005392/1.363, allocations: 1.584 MB / 0.6109 GB, free: 124.6 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01006/1.374, allocations: 9.737 MB / 0.6204 GB, free: 118.2 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005248/1.379, allocations: 403.8 kB / 0.6208 GB, free: 118.1 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00112/1.38, allocations: 353.5 kB / 0.6212 GB, free: 118 MB / 426.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.007069/1.387, allocations: 4.253 MB / 0.6253 GB, free: 116 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001737/1.389, allocations: 0.6282 MB / 0.6259 GB, free: 116 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01082/1.4, allocations: 6.433 MB / 0.6322 GB, free: 112.7 MB / 426.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.286e-05/1.4, allocations: 40 kB / 0.6322 GB, free: 112.6 MB / 426.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.496e-05/1.4, allocations: 8 kB / 0.6323 GB, free: 112.6 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.057e-05/1.4, allocations: 23.78 kB / 0.6323 GB, free: 112.6 MB / 426.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02612/1.426, allocations: 13.31 MB / 0.6453 GB, free: 101.2 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.096e-05/1.426, allocations: 4 kB / 0.6453 GB, free: 101.2 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003312/1.429, allocations: 0.7599 MB / 0.646 GB, free: 100.5 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002928/1.432, allocations: 0.9365 MB / 0.6469 GB, free: 99.54 MB / 426.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005695/1.433, allocations: 87.97 kB / 0.647 GB, free: 99.45 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009344/1.442, allocations: 8.895 MB / 0.6557 GB, free: 90.37 MB / 426.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/1.442, allocations: 4 kB / 0.6557 GB, free: 90.36 MB / 426.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0148/1.457, allocations: 9.609 MB / 0.6651 GB, free: 80.93 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002651/1.459, allocations: 0.9876 MB / 0.6661 GB, free: 80.18 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001228/1.461, allocations: 72 kB / 0.6661 GB, free: 80.11 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003042/1.464, allocations: 219.8 kB / 0.6663 GB, free: 79.9 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000674/1.464, allocations: 286.5 kB / 0.6666 GB, free: 79.62 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003493/1.465, allocations: 112 kB / 0.6667 GB, free: 79.51 MB / 426.8 MB Notification: Performance of sorting global known variables: time 0.00509/1.47, allocations: 3.064 MB / 0.6697 GB, free: 76.45 MB / 426.8 MB Notification: Performance of sort global known variables: time 9e-08/1.47, allocations: 0 / 0.6697 GB, free: 76.45 MB / 426.8 MB Notification: Performance of remove unused functions: time 0.007224/1.477, allocations: 1.877 MB / 0.6715 GB, free: 74.58 MB / 426.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.0007901/1.478, allocations: 269.1 kB / 0.6718 GB, free: 74.32 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.01126/1.489, allocations: 7.228 MB / 0.6789 GB, free: 67.05 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 8.967e-06/1.489, allocations: 4 kB / 0.6789 GB, free: 67.05 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.005521/1.495, allocations: 3.177 MB / 0.682 GB, free: 63.82 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007662/1.502, allocations: 1.208 MB / 0.6831 GB, free: 62.68 MB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03869/1.541, allocations: 20.25 MB / 0.7029 GB, free: 42.3 MB / 426.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01116/1.552, allocations: 6.93 MB / 0.7097 GB, free: 35.33 MB / 426.8 MB Notification: Performance of simCode: alias equations: time 0.006325/1.558, allocations: 2.107 MB / 0.7117 GB, free: 33.21 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001693/1.56, allocations: 404.4 kB / 0.7121 GB, free: 32.82 MB / 426.8 MB Notification: Performance of SimCode: time 1.072e-06/1.56, allocations: 4 kB / 0.7121 GB, free: 32.82 MB / 426.8 MB Notification: Performance of Templates: time 0.2394/1.799, allocations: 65.23 MB / 0.7758 GB, free: 111.5 MB / 426.8 MB " [Timeout remaining time 658] 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/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","/var/lib/jenkins/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: 8.817762118997052]