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.001404/0.001404, allocations: 124.4 kB / 17.79 MB, free: 5.266 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.001506/0.001506, allocations: 199.3 kB / 20.74 MB, free: 2.32 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.611/1.611, allocations: 230.6 MB / 254.1 MB, free: 15.08 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.001586/0.001586, allocations: 51.92 kB / 373.5 MB, free: 9.672 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09794/0.09952, allocations: 53.33 MB / 426.9 MB, free: 4.242 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.2474/0.3469, allocations: 40.23 MB / 467.1 MB, free: 0.8789 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0249/0.3718, allocations: 10.69 MB / 477.8 MB, free: 8.887 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007725/0.3795, allocations: 373.3 kB / 478.1 MB, free: 8.758 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02134/0.4009, allocations: 8.631 MB / 486.8 MB, free: 2.246 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01217/0.413, allocations: 3.484 MB / 490.3 MB, free: 15.43 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006943/0.42, allocations: 2.379 MB / 492.6 MB, free: 13.52 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01877/0.4388, allocations: 12.95 MB / 0.4937 GB, free: 1.809 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03934/0.4781, allocations: 19.65 MB / 0.5129 GB, free: 14.02 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01416/0.4922, allocations: 6.951 MB / 0.5197 GB, free: 7.051 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01504/0.5073, allocations: 7.911 MB / 0.5274 GB, free: 15.11 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005315/0.5126, allocations: 1.953 MB / 0.5293 GB, free: 13.16 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007177/0.5198, allocations: 2.363 MB / 0.5316 GB, free: 10.8 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005804/0.5256, allocations: 3.97 MB / 0.5355 GB, free: 6.816 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01275/0.5383, allocations: 7.564 MB / 0.5429 GB, free: 15.22 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03461/0.5729, allocations: 25.97 MB / 0.5683 GB, free: 5.172 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.965e-06/0.573, allocations: 0 / 0.5683 GB, free: 5.172 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.573, allocations: 4 kB / 0.5683 GB, free: 5.168 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.0009539/0.5739, allocations: 4 kB / 0.5683 GB, free: 5.164 MB / 478.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.04521/0.6191, allocations: 15.33 MB / 0.5832 GB, free: 5.699 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.251e-05/0.6192, allocations: 8.031 kB / 0.5832 GB, free: 5.691 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03501/0.6542, allocations: 6.123 MB / 0.5892 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01958/0.6738, allocations: 8.112 MB / 0.5971 GB, free: 7.363 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001183/0.6749, allocations: 0.9032 MB / 0.598 GB, free: 6.457 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00534/0.6803, allocations: 1.195 MB / 0.5992 GB, free: 5.262 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06398/0.7443, allocations: 18.69 MB / 0.6174 GB, free: 2.48 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000668/0.7449, allocations: 23.89 kB / 0.6175 GB, free: 2.457 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004476/0.7494, allocations: 496 kB / 0.6179 GB, free: 1.973 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008431/0.7502, allocations: 0.6459 MB / 0.6186 GB, free: 1.324 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.5775/1.328, allocations: 16.8 MB / 0.635 GB, free: 144.6 MB / 0.5138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1257/1.453, allocations: 58.99 MB / 0.6926 GB, free: 101.1 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02296/1.476, allocations: 32.8 MB / 0.7246 GB, free: 64.46 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007967/1.484, allocations: 3.409 MB / 0.728 GB, free: 61.04 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01824/1.503, allocations: 8.893 MB / 0.7366 GB, free: 52.27 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.745e-05/1.503, allocations: 72.91 kB / 0.7367 GB, free: 52.19 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=349): time 4.939e-06/1.503, allocations: 0 / 0.7367 GB, free: 52.19 MB / 0.5138 GB Notification: Performance of matching and sorting (n=389): time 0.03751/1.54, allocations: 17.73 MB / 0.754 GB, free: 34.82 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.684e-05/1.54, allocations: 94.47 kB / 0.7541 GB, free: 34.72 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009125/1.549, allocations: 5.042 MB / 0.759 GB, free: 29.75 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.000778/1.55, allocations: 89.7 kB / 0.7591 GB, free: 29.66 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.002707/1.553, allocations: 5.637 MB / 0.7646 GB, free: 24.05 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001841/1.555, allocations: 1.424 MB / 0.766 GB, free: 22.65 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004158/1.559, allocations: 1.331 MB / 0.7673 GB, free: 21.31 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 6.896e-05/1.559, allocations: 309 kB / 0.7676 GB, free: 21 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004268/1.563, allocations: 2.91 MB / 0.7705 GB, free: 18.09 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005639/1.569, allocations: 5.879 MB / 0.7762 GB, free: 10.8 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01037/1.579, allocations: 9.46 MB / 0.7854 GB, free: 15.9 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001474/1.579, allocations: 28 kB / 0.7855 GB, free: 15.88 MB / 0.5294 GB Notification: Performance of matching and sorting (n=865) (initialization): time 0.02535/1.605, allocations: 9.862 MB / 0.7951 GB, free: 5.957 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001534/1.605, allocations: 49 kB / 0.7951 GB, free: 5.91 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002362/1.605, allocations: 104 kB / 0.7952 GB, free: 5.809 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003057/1.608, allocations: 0.9404 MB / 0.7962 GB, free: 4.852 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006799/1.615, allocations: 1.583 MB / 0.7977 GB, free: 3.266 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01493/1.63, allocations: 10.19 MB / 0.8077 GB, free: 8.664 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006037/1.636, allocations: 403.5 kB / 0.808 GB, free: 8.27 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001489/1.637, allocations: 356 kB / 0.8084 GB, free: 7.922 MB / 0.545 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.008923/1.646, allocations: 4.255 MB / 0.8125 GB, free: 3.652 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001767/1.648, allocations: 0.5434 MB / 0.8131 GB, free: 3.105 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01498/1.663, allocations: 6.454 MB / 0.8194 GB, free: 12.61 MB / 0.5607 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.429e-05/1.663, allocations: 40 kB / 0.8194 GB, free: 12.57 MB / 0.5607 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.18e-05/1.663, allocations: 8 kB / 0.8194 GB, free: 12.56 MB / 0.5607 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.559e-05/1.663, allocations: 27.86 kB / 0.8194 GB, free: 12.53 MB / 0.5607 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3372/2, allocations: 15.71 MB / 0.8348 GB, free: 177.5 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.674e-05/2, allocations: 2.375 kB / 0.8348 GB, free: 177.5 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003371/2.004, allocations: 0.7533 MB / 0.8355 GB, free: 177.5 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002408/2.006, allocations: 0.7845 MB / 0.8363 GB, free: 177.4 MB / 0.5607 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003785/2.007, allocations: 91.06 kB / 0.8364 GB, free: 177.4 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01061/2.017, allocations: 9.351 MB / 0.8455 GB, free: 172 MB / 0.5607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.693e-06/2.017, allocations: 10.72 kB / 0.8455 GB, free: 172 MB / 0.5607 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01575/2.033, allocations: 9.512 MB / 0.8548 GB, free: 168.1 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002916/2.036, allocations: 1.088 MB / 0.8559 GB, free: 167.8 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00142/2.037, allocations: 76.84 kB / 0.8559 GB, free: 167.7 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002886/2.04, allocations: 220.6 kB / 0.8562 GB, free: 167.6 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000752/2.041, allocations: 271.8 kB / 0.8564 GB, free: 167.6 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002921/2.041, allocations: 117 kB / 0.8565 GB, free: 167.6 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.0074/2.049, allocations: 3.361 MB / 0.8598 GB, free: 166.4 MB / 0.5607 GB Notification: Performance of sort global known variables: time 2.2e-07/2.049, allocations: 0 / 0.8598 GB, free: 166.4 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.009002/2.058, allocations: 1.88 MB / 0.8616 GB, free: 166.2 MB / 0.5607 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.001123/2.059, allocations: 262.4 kB / 0.8619 GB, free: 166 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.0124/2.071, allocations: 7.377 MB / 0.8691 GB, free: 163 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 9.317e-06/2.071, allocations: 1.844 kB / 0.8691 GB, free: 163 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.005125/2.076, allocations: 3.33 MB / 0.8723 GB, free: 161.4 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006416/2.083, allocations: 1.313 MB / 0.8736 GB, free: 161 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03309/2.116, allocations: 19.94 MB / 0.8931 GB, free: 148 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007474/2.123, allocations: 7.329 MB / 0.9003 GB, free: 142.3 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.005592/2.129, allocations: 2.156 MB / 0.9024 GB, free: 140.9 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001273/2.13, allocations: 421.7 kB / 0.9028 GB, free: 140.5 MB / 0.5607 GB Notification: Performance of SimCode: time 2.244e-06/2.13, allocations: 0 / 0.9028 GB, free: 140.5 MB / 0.5607 GB Notification: Performance of Templates: time 0.1219/2.252, allocations: 73.81 MB / 0.9748 GB, free: 69.19 MB / 0.5607 GB " [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: 9.22733974084258]