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.001373/0.001373, allocations: 105.4 kB / 19.8 MB, free: 2.516 MB / 14.72 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.001492/0.001492, allocations: 216.3 kB / 23 MB, free: 5.609 MB / 14.72 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 1.427/1.427, allocations: 230.2 MB / 256.2 MB, free: 8.516 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001814/0.001814, allocations: 59.89 kB / 376.5 MB, free: 3.551 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.272/0.2738, allocations: 53.32 MB / 429.8 MB, free: 7.672 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.04641/0.3202, allocations: 40.33 MB / 470.2 MB, free: 15.17 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02281/0.343, allocations: 10.69 MB / 480.9 MB, free: 4.438 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007034/0.3501, allocations: 307 kB / 481.2 MB, free: 4.137 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02089/0.371, allocations: 8.626 MB / 489.8 MB, free: 11.48 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01189/0.3829, allocations: 3.496 MB / 493.3 MB, free: 7.973 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007274/0.3901, allocations: 2.379 MB / 495.7 MB, free: 5.598 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01753/0.4077, allocations: 12.98 MB / 0.4967 GB, free: 8.57 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0289/0.4366, allocations: 16.19 MB / 0.5125 GB, free: 8.234 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01036/0.4469, allocations: 6.841 MB / 0.5192 GB, free: 1.375 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01359/0.4605, allocations: 7.919 MB / 0.527 GB, free: 9.43 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00572/0.4662, allocations: 1.953 MB / 0.5289 GB, free: 7.477 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007183/0.4734, allocations: 2.367 MB / 0.5312 GB, free: 5.109 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006539/0.4799, allocations: 3.974 MB / 0.5351 GB, free: 1.125 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2579/0.7379, allocations: 7.559 MB / 0.5424 GB, free: 29.96 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02841/0.7663, allocations: 25.97 MB / 0.5678 GB, free: 24.7 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.514e-06/0.7663, allocations: 0.7812 kB / 0.5678 GB, free: 24.7 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.7663, allocations: 0 / 0.5678 GB, free: 24.7 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0006185/0.7669, allocations: 3.969 kB / 0.5678 GB, free: 24.7 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.04528/0.8122, allocations: 15.33 MB / 0.5828 GB, free: 15.5 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.969e-05/0.8122, allocations: 6.969 kB / 0.5828 GB, free: 15.5 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03234/0.8446, allocations: 6.121 MB / 0.5888 GB, free: 12.68 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01514/0.8597, allocations: 8.11 MB / 0.5967 GB, free: 7.461 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008243/0.8605, allocations: 0.9037 MB / 0.5976 GB, free: 7.051 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006394/0.8669, allocations: 1.2 MB / 0.5987 GB, free: 6.398 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05312/0.92, allocations: 18.69 MB / 0.617 GB, free: 3.656 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004901/0.9205, allocations: 27.55 kB / 0.617 GB, free: 3.633 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004559/0.9251, allocations: 0.4902 MB / 0.6175 GB, free: 3.152 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007579/0.9258, allocations: 0.646 MB / 0.6181 GB, free: 2.504 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04374/0.9696, allocations: 16.8 MB / 0.6345 GB, free: 1.695 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1154/1.085, allocations: 58.98 MB / 0.6921 GB, free: 6.207 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03114/1.116, allocations: 32.8 MB / 0.7242 GB, free: 1.5 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006641/1.123, allocations: 3.414 MB / 0.7275 GB, free: 14.07 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01714/1.14, allocations: 8.887 MB / 0.7362 GB, free: 5.203 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.455e-05/1.14, allocations: 73.31 kB / 0.7362 GB, free: 5.121 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=349): time 5.471e-06/1.14, allocations: 4 kB / 0.7362 GB, free: 5.117 MB / 0.5762 GB Notification: Performance of matching and sorting (n=389): time 0.03868/1.179, allocations: 17.73 MB / 0.7536 GB, free: 3.305 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.719e-05/1.179, allocations: 98.41 kB / 0.7537 GB, free: 3.195 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2481/1.427, allocations: 5.031 MB / 0.7586 GB, free: 221.1 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.0008485/1.428, allocations: 89.45 kB / 0.7587 GB, free: 221.1 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.003514/1.431, allocations: 5.641 MB / 0.7642 GB, free: 219.1 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.00139/1.433, allocations: 1.421 MB / 0.7655 GB, free: 218.2 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002202/1.435, allocations: 1.331 MB / 0.7668 GB, free: 218.1 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 4.353e-05/1.435, allocations: 307.7 kB / 0.7671 GB, free: 217.8 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004143/1.439, allocations: 2.908 MB / 0.77 GB, free: 217.8 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005385/1.444, allocations: 5.884 MB / 0.7757 GB, free: 213.4 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008954/1.453, allocations: 9.455 MB / 0.785 GB, free: 206.4 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.067e-05/1.453, allocations: 35.12 kB / 0.785 GB, free: 206.4 MB / 0.5919 GB Notification: Performance of matching and sorting (n=865) (initialization): time 0.0143/1.468, allocations: 9.863 MB / 0.7946 GB, free: 202.3 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 7.625e-05/1.468, allocations: 54.44 kB / 0.7947 GB, free: 202.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001423/1.468, allocations: 97.03 kB / 0.7948 GB, free: 202.3 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00217/1.47, allocations: 0.9374 MB / 0.7957 GB, free: 202.1 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005091/1.475, allocations: 1.588 MB / 0.7972 GB, free: 201.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009971/1.485, allocations: 10.19 MB / 0.8072 GB, free: 194 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005851/1.491, allocations: 412.2 kB / 0.8076 GB, free: 193.6 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00122/1.492, allocations: 355.2 kB / 0.8079 GB, free: 193.3 MB / 0.5919 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.00754/1.5, allocations: 4.249 MB / 0.8121 GB, free: 189.7 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001598/1.501, allocations: 0.5432 MB / 0.8126 GB, free: 189.1 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009924/1.511, allocations: 6.455 MB / 0.8189 GB, free: 183.7 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.283e-05/1.511, allocations: 43.7 kB / 0.8189 GB, free: 183.6 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.557e-05/1.511, allocations: 11.61 kB / 0.819 GB, free: 183.6 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.693e-05/1.511, allocations: 18.56 kB / 0.819 GB, free: 183.6 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03301/1.544, allocations: 15.72 MB / 0.8343 GB, free: 170.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.311e-05/1.544, allocations: 4 kB / 0.8343 GB, free: 170.6 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003199/1.548, allocations: 0.745 MB / 0.8351 GB, free: 169.9 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002095/1.55, allocations: 0.793 MB / 0.8358 GB, free: 169.1 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005866/1.55, allocations: 87.95 kB / 0.8359 GB, free: 169 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008436/1.559, allocations: 9.358 MB / 0.8451 GB, free: 159.2 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/1.559, allocations: 4 kB / 0.8451 GB, free: 159.2 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01162/1.57, allocations: 9.526 MB / 0.8544 GB, free: 149.6 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002235/1.573, allocations: 1.087 MB / 0.8554 GB, free: 148.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008404/1.573, allocations: 75.89 kB / 0.8555 GB, free: 148.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002263/1.576, allocations: 219.8 kB / 0.8557 GB, free: 148.2 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005128/1.576, allocations: 262.7 kB / 0.856 GB, free: 147.9 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002382/1.576, allocations: 120 kB / 0.8561 GB, free: 147.8 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.004217/1.581, allocations: 3.355 MB / 0.8593 GB, free: 144.5 MB / 0.5919 GB Notification: Performance of sort global known variables: time 7e-08/1.581, allocations: 3.938 kB / 0.8594 GB, free: 144.4 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.006207/1.587, allocations: 1.887 MB / 0.8612 GB, free: 142.6 MB / 0.5919 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.0006412/1.588, allocations: 254.4 kB / 0.8614 GB, free: 142.3 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.009145/1.597, allocations: 7.375 MB / 0.8686 GB, free: 134.9 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/1.597, allocations: 0 / 0.8686 GB, free: 134.9 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.003937/1.601, allocations: 3.332 MB / 0.8719 GB, free: 131.5 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005431/1.606, allocations: 1.295 MB / 0.8732 GB, free: 130.2 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02739/1.633, allocations: 20.11 MB / 0.8928 GB, free: 110 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006523/1.64, allocations: 7.329 MB / 0.9 GB, free: 102.6 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.005247/1.645, allocations: 2.149 MB / 0.9021 GB, free: 100.5 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00134/1.647, allocations: 427.3 kB / 0.9025 GB, free: 100.1 MB / 0.5919 GB Notification: Performance of SimCode: time 1.693e-06/1.647, allocations: 4 kB / 0.9025 GB, free: 100.1 MB / 0.5919 GB Notification: Performance of Templates: time 0.4465/2.093, allocations: 75.5 MB / 0.9762 GB, free: 199.6 MB / 0.5919 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: 8.996384275145829]