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.00141/0.00141, allocations: 71.77 kB / 21.69 MB, free: 2.855 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.001043/0.001043, allocations: 158.2 kB / 24.98 MB, free: 9.289 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.927/0.927, allocations: 177.1 MB / 205.3 MB, free: 5.598 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 1.242e-06/1.242e-06, allocations: 0 / 273.1 MB, free: 1.758 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.306e-05/1.431e-05, allocations: 2.312 kB / 273.1 MB, free: 1.754 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.1391/0.1392, allocations: 39.13 MB / 312.2 MB, free: 7.102 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01643/0.1556, allocations: 10.58 MB / 322.8 MB, free: 15.7 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005005/0.1606, allocations: 370.2 kB / 323.2 MB, free: 15.58 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01067/0.1713, allocations: 9.096 MB / 332.3 MB, free: 7.203 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008189/0.1795, allocations: 3.591 MB / 335.9 MB, free: 3.594 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003959/0.1834, allocations: 2.382 MB / 338.3 MB, free: 1.211 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01087/0.1943, allocations: 13.51 MB / 351.8 MB, free: 3.656 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01962/0.2139, allocations: 17.18 MB / 368.9 MB, free: 2.312 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01161/0.2255, allocations: 10.42 MB / 379.4 MB, free: 7.875 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007921/0.2334, allocations: 7.415 MB / 386.8 MB, free: 456 kB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002667/0.2361, allocations: 1.953 MB / 388.7 MB, free: 14.49 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002826/0.2389, allocations: 2.358 MB / 391.1 MB, free: 12.13 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002078/0.241, allocations: 4.106 MB / 395.2 MB, free: 8.016 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004111/0.2451, allocations: 5.138 MB / 400.3 MB, free: 2.867 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01019/0.2553, allocations: 12.63 MB / 413 MB, free: 6.199 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.2553, allocations: 0 / 413 MB, free: 6.199 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2553, allocations: 0 / 413 MB, free: 6.199 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002011/0.2555, allocations: 0 / 413 MB, free: 6.199 MB / 362.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.01963/0.2751, allocations: 16.12 MB / 429.1 MB, free: 5.949 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.35e-05/0.2752, allocations: 12.02 kB / 429.1 MB, free: 5.938 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2203/0.4955, allocations: 7.871 MB / 437 MB, free: 118.3 MB / 378.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01103/0.5066, allocations: 7.709 MB / 444.7 MB, free: 116.3 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004984/0.5071, allocations: 0.9085 MB / 445.6 MB, free: 115.9 MB / 378.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00159/0.5087, allocations: 1.198 MB / 446.8 MB, free: 115.5 MB / 378.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01856/0.5272, allocations: 10.29 MB / 457.1 MB, free: 111.9 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002015/0.5274, allocations: 18.39 kB / 457.1 MB, free: 111.9 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000809/0.5282, allocations: 0.4953 MB / 457.6 MB, free: 111.5 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003385/0.5286, allocations: 0.6387 MB / 458.2 MB, free: 111.4 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01264/0.5412, allocations: 5.444 MB / 463.7 MB, free: 106.7 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05757/0.5988, allocations: 47.57 MB / 0.4993 GB, free: 58.73 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008393/0.6072, allocations: 8.891 MB / 0.5079 GB, free: 51.43 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001981/0.6092, allocations: 1.688 MB / 0.5096 GB, free: 49.73 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00755/0.6167, allocations: 5.698 MB / 0.5152 GB, free: 44.21 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.517e-05/0.6167, allocations: 72.14 kB / 0.5152 GB, free: 44.13 MB / 378.8 MB Notification: Performance of pre-optimization done (n=349): time 4.648e-06/0.6168, allocations: 0 / 0.5152 GB, free: 44.13 MB / 378.8 MB Notification: Performance of matching and sorting (n=389): time 0.01661/0.6334, allocations: 10.84 MB / 0.5258 GB, free: 33.38 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.723e-05/0.6334, allocations: 94.47 kB / 0.5259 GB, free: 33.27 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003925/0.6373, allocations: 4.422 MB / 0.5302 GB, free: 28.83 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001753/0.6375, allocations: 89.7 kB / 0.5303 GB, free: 28.74 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001833/0.6393, allocations: 5.9 MB / 0.5361 GB, free: 22.82 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006651/0.64, allocations: 1.448 MB / 0.5375 GB, free: 21.39 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001192/0.6412, allocations: 1.464 MB / 0.5389 GB, free: 19.91 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 3.568e-05/0.6412, allocations: 480.7 kB / 0.5394 GB, free: 19.44 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001429/0.6427, allocations: 0.9657 MB / 0.5403 GB, free: 18.47 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002436/0.6451, allocations: 5.431 MB / 0.5456 GB, free: 11.1 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004736/0.6498, allocations: 7.075 MB / 0.5525 GB, free: 2.074 MB / 378.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-05/0.6499, allocations: 31.94 kB / 0.5526 GB, free: 2.043 MB / 378.8 MB Notification: Performance of matching and sorting (n=865) (initialization): time 0.008796/0.6587, allocations: 6.163 MB / 0.5586 GB, free: 11.81 MB / 394.8 MB Notification: Performance of prepare postOptimizeDAE: time 5.448e-05/0.6587, allocations: 48 kB / 0.5586 GB, free: 11.77 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.836e-05/0.6588, allocations: 100 kB / 0.5587 GB, free: 11.67 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001759/0.6606, allocations: 0.8885 MB / 0.5596 GB, free: 10.76 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003056/0.6636, allocations: 1.583 MB / 0.5611 GB, free: 9.176 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006554/0.6702, allocations: 8.449 MB / 0.5694 GB, free: 364 kB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.1466/0.8168, allocations: 402.9 kB / 0.5698 GB, free: 100.2 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001336/0.8181, allocations: 354.9 kB / 0.5701 GB, free: 100.2 MB / 394.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.002966/0.8211, allocations: 0.6273 MB / 0.5707 GB, free: 100.1 MB / 394.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001213/0.8223, allocations: 0.6282 MB / 0.5713 GB, free: 100.1 MB / 394.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006271/0.8285, allocations: 3.674 MB / 0.5749 GB, free: 99.83 MB / 394.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.512e-05/0.8286, allocations: 42.05 kB / 0.575 GB, free: 99.83 MB / 394.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.885e-05/0.8286, allocations: 8.812 kB / 0.575 GB, free: 99.83 MB / 394.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.683e-05/0.8286, allocations: 19.45 kB / 0.575 GB, free: 99.83 MB / 394.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01585/0.8445, allocations: 11.48 MB / 0.5862 GB, free: 99 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.568e-06/0.8445, allocations: 3.75 kB / 0.5862 GB, free: 99 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00172/0.8462, allocations: 0.7425 MB / 0.5869 GB, free: 98.96 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001558/0.8478, allocations: 0.7469 MB / 0.5876 GB, free: 98.9 MB / 394.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001981/0.848, allocations: 85.03 kB / 0.5877 GB, free: 98.9 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004861/0.8528, allocations: 8.01 MB / 0.5956 GB, free: 93.46 MB / 394.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.8528, allocations: 3.875 kB / 0.5956 GB, free: 93.46 MB / 394.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006206/0.859, allocations: 4.576 MB / 0.6 GB, free: 92.79 MB / 394.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001347/0.8604, allocations: 0.921 MB / 0.6009 GB, free: 92.78 MB / 394.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003933/0.8608, allocations: 73.22 kB / 0.601 GB, free: 92.78 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001136/0.8619, allocations: 217.2 kB / 0.6012 GB, free: 92.78 MB / 394.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003701/0.8623, allocations: 286.5 kB / 0.6015 GB, free: 92.77 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001754/0.8625, allocations: 122.1 kB / 0.6016 GB, free: 92.77 MB / 394.8 MB Notification: Performance of sorting global known variables: time 0.002397/0.8649, allocations: 2.077 MB / 0.6036 GB, free: 92.54 MB / 394.8 MB Notification: Performance of sort global known variables: time 8e-08/0.8649, allocations: 0 / 0.6036 GB, free: 92.54 MB / 394.8 MB Notification: Performance of remove unused functions: time 0.004461/0.8693, allocations: 1.872 MB / 0.6054 GB, free: 92.37 MB / 394.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.0004636/0.8698, allocations: 274.4 kB / 0.6057 GB, free: 92.19 MB / 394.8 MB Notification: Performance of simCode: created initialization part: time 0.00564/0.8754, allocations: 4.657 MB / 0.6103 GB, free: 90.56 MB / 394.8 MB Notification: Performance of simCode: created event and clocks part: time 4.479e-06/0.8754, allocations: 4.062 kB / 0.6103 GB, free: 90.55 MB / 394.8 MB Notification: Performance of simCode: created simulation system equations: time 0.002351/0.8778, allocations: 2.304 MB / 0.6125 GB, free: 89.28 MB / 394.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003239/0.881, allocations: 1.203 MB / 0.6137 GB, free: 88.34 MB / 394.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01915/0.9002, allocations: 17.14 MB / 0.6304 GB, free: 72.49 MB / 394.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001865/0.902, allocations: 3.087 MB / 0.6334 GB, free: 70.23 MB / 394.8 MB Notification: Performance of simCode: alias equations: time 0.003226/0.9053, allocations: 1.805 MB / 0.6352 GB, free: 69.1 MB / 394.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007256/0.906, allocations: 402.8 kB / 0.6356 GB, free: 68.73 MB / 394.8 MB Notification: Performance of SimCode: time 1.312e-06/0.906, allocations: 0 / 0.6356 GB, free: 68.73 MB / 394.8 MB Notification: Performance of Templates: time 0.07726/0.9832, allocations: 65.15 MB / 0.6992 GB, free: 4.668 MB / 394.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.095346003072336]