Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008599/0.0008599, allocations: 88.28 kB / 21.44 MB, free: 3.129 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.003821/0.003821, allocations: 153.4 kB / 24.7 MB, free: 8.898 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8388/0.8388, allocations: 177 MB / 204.9 MB, free: 5.773 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.633e-06/1.633e-06, allocations: 0 / 325.8 MB, free: 15.36 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.274e-05/2.438e-05, allocations: 2.281 kB / 325.8 MB, free: 15.36 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.02539/0.02541, allocations: 34.44 MB / 360.3 MB, free: 12.76 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.02092/0.04633, allocations: 10.37 MB / 370.6 MB, free: 2.355 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007743/0.05407, allocations: 373.9 kB / 371 MB, free: 1.988 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01096/0.06503, allocations: 8.432 MB / 379.4 MB, free: 9.527 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01032/0.07535, allocations: 3.567 MB / 383 MB, free: 5.941 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005006/0.08036, allocations: 2.354 MB / 385.4 MB, free: 3.594 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.01467/0.09503, allocations: 13.5 MB / 398.8 MB, free: 6.043 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02276/0.1178, allocations: 17.18 MB / 416 MB, free: 4.711 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01341/0.1312, allocations: 10.32 MB / 426.3 MB, free: 10.38 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009248/0.1405, allocations: 6.697 MB / 433 MB, free: 3.668 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004838/0.1453, allocations: 1.945 MB / 435 MB, free: 1.723 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006568/0.1519, allocations: 2.362 MB / 437.3 MB, free: 15.36 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003723/0.1556, allocations: 4.04 MB / 441.4 MB, free: 11.31 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.01047/0.1661, allocations: 5.072 MB / 446.5 MB, free: 6.227 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.365/0.531, allocations: 26.26 MB / 472.7 MB, free: 48.49 MB / 410.8 MB Notification: Performance of FrontEnd - DAE generated: time 8.296e-06/0.531, allocations: 3.625 kB / 472.7 MB, free: 48.49 MB / 410.8 MB Notification: Performance of FrontEnd: time 2.023e-06/0.531, allocations: 0 / 472.7 MB, free: 48.49 MB / 410.8 MB Notification: Performance of Transformations before backend: time 0.0007447/0.5318, allocations: 0 / 472.7 MB, free: 48.49 MB / 410.8 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.0334/0.5652, allocations: 15.12 MB / 487.8 MB, free: 41.77 MB / 410.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.739e-05/0.5652, allocations: 13.8 kB / 487.9 MB, free: 41.76 MB / 410.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0172/0.5824, allocations: 6.13 MB / 494 MB, free: 39.33 MB / 410.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01477/0.5972, allocations: 8.094 MB / 0.4903 GB, free: 35.48 MB / 410.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000508/0.5977, allocations: 0.9098 MB / 0.4912 GB, free: 35.07 MB / 410.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003735/0.6015, allocations: 1.193 MB / 0.4924 GB, free: 34.67 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02538/0.6268, allocations: 18.91 MB / 0.5108 GB, free: 17.27 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002331/0.6271, allocations: 27.73 kB / 0.5109 GB, free: 17.25 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009454/0.628, allocations: 0.4964 MB / 0.5113 GB, free: 16.76 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000351/0.6284, allocations: 0.6472 MB / 0.512 GB, free: 16.12 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01871/0.6471, allocations: 16.74 MB / 0.5283 GB, free: 15.37 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07201/0.7191, allocations: 50.69 MB / 0.5778 GB, free: 12.53 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01214/0.7312, allocations: 10.27 MB / 0.5879 GB, free: 3.887 MB / 474.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00349/0.7347, allocations: 3.408 MB / 0.5912 GB, free: 480 kB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01051/0.7452, allocations: 7.67 MB / 0.5987 GB, free: 8.902 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.499e-05/0.7453, allocations: 69.31 kB / 0.5987 GB, free: 8.824 MB / 490.8 MB Notification: Performance of pre-optimization done (n=349): time 4.939e-06/0.7453, allocations: 0 / 0.5987 GB, free: 8.824 MB / 490.8 MB Notification: Performance of matching and sorting (n=389): time 0.0232/0.7685, allocations: 17.24 MB / 0.6156 GB, free: 7.605 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.833e-05/0.7685, allocations: 94.45 kB / 0.6157 GB, free: 7.5 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005306/0.7738, allocations: 4.791 MB / 0.6203 GB, free: 2.703 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.0002361/0.7741, allocations: 93.7 kB / 0.6204 GB, free: 2.605 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.1717/0.9458, allocations: 5.625 MB / 0.6259 GB, free: 173.7 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.001321/0.9471, allocations: 1.401 MB / 0.6273 GB, free: 172.8 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001787/0.9489, allocations: 1.32 MB / 0.6286 GB, free: 172.7 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 2.918e-05/0.949, allocations: 301.6 kB / 0.6289 GB, free: 172.4 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002892/0.9519, allocations: 2.913 MB / 0.6317 GB, free: 172.4 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003321/0.9552, allocations: 5.93 MB / 0.6375 GB, free: 168.5 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006234/0.9614, allocations: 9.455 MB / 0.6467 GB, free: 161.7 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.571e-05/0.9614, allocations: 27.03 kB / 0.6468 GB, free: 161.7 MB / 0.4949 GB Notification: Performance of matching and sorting (n=865) (initialization): time 0.009184/0.9706, allocations: 9.834 MB / 0.6564 GB, free: 157.7 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 4.618e-05/0.9707, allocations: 51.39 kB / 0.6564 GB, free: 157.7 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.174e-05/0.9708, allocations: 101.5 kB / 0.6565 GB, free: 157.7 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001357/0.9721, allocations: 0.9389 MB / 0.6574 GB, free: 157.2 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002558/0.9747, allocations: 1.597 MB / 0.659 GB, free: 155.9 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006279/0.981, allocations: 9.659 MB / 0.6684 GB, free: 146.8 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00293/0.9839, allocations: 423.3 kB / 0.6688 GB, free: 146.5 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000343/0.9842, allocations: 354.9 kB / 0.6692 GB, free: 146.2 MB / 0.4949 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.005425/0.9897, allocations: 4.246 MB / 0.6733 GB, free: 142.5 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007395/0.9904, allocations: 0.5043 MB / 0.6738 GB, free: 142 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006273/0.9967, allocations: 6.438 MB / 0.6801 GB, free: 136.6 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.525e-05/0.9967, allocations: 40 kB / 0.6801 GB, free: 136.5 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.129e-05/0.9967, allocations: 8 kB / 0.6801 GB, free: 136.5 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.182e-05/0.9967, allocations: 22.73 kB / 0.6802 GB, free: 136.5 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01495/1.012, allocations: 13.3 MB / 0.6932 GB, free: 125.1 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.185e-06/1.012, allocations: 0 / 0.6932 GB, free: 125.1 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001562/1.013, allocations: 0.7489 MB / 0.6939 GB, free: 124.3 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00112/1.014, allocations: 0.7807 MB / 0.6946 GB, free: 123.5 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001922/1.015, allocations: 91.95 kB / 0.6947 GB, free: 123.4 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005261/1.02, allocations: 8.841 MB / 0.7034 GB, free: 114.3 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.604e-06/1.02, allocations: 4 kB / 0.7034 GB, free: 114.3 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008193/1.028, allocations: 9.486 MB / 0.7126 GB, free: 104.7 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001741/1.03, allocations: 0.9846 MB / 0.7136 GB, free: 103.7 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003864/1.03, allocations: 68 kB / 0.7137 GB, free: 103.6 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00116/1.031, allocations: 219.8 kB / 0.7139 GB, free: 103.4 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003443/1.032, allocations: 286.5 kB / 0.7141 GB, free: 103.1 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001572/1.032, allocations: 116 kB / 0.7143 GB, free: 103 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.002948/1.035, allocations: 3.06 MB / 0.7172 GB, free: 99.96 MB / 0.4949 GB Notification: Performance of sort global known variables: time 1.9e-07/1.035, allocations: 0 / 0.7172 GB, free: 99.96 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.004539/1.039, allocations: 1.875 MB / 0.7191 GB, free: 98.09 MB / 0.4949 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.0004622/1.04, allocations: 264.4 kB / 0.7193 GB, free: 97.83 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.00657/1.046, allocations: 7.221 MB / 0.7264 GB, free: 90.58 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 4.488e-06/1.046, allocations: 4 kB / 0.7264 GB, free: 90.57 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.002568/1.049, allocations: 3.176 MB / 0.7295 GB, free: 87.35 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003036/1.052, allocations: 1.173 MB / 0.7306 GB, free: 86.21 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02179/1.074, allocations: 19.66 MB / 0.7498 GB, free: 66.47 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004296/1.078, allocations: 6.706 MB / 0.7564 GB, free: 59.72 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001642/1.08, allocations: 476.3 kB / 0.7568 GB, free: 59.26 MB / 0.4949 GB Notification: Performance of SimCode: time 1.263e-06/1.08, allocations: 4 kB / 0.7568 GB, free: 59.25 MB / 0.4949 GB Notification: Performance of Templates: time 0.7646/1.844, allocations: 465.6 MB / 1.212 GB, free: 170.2 MB / 0.4949 GB " [Timeout remaining time 658] make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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: 14.455869535915554]