Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0014/0.0014, allocations: 100 kB / 21.18 MB, free: 0.6484 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001431/0.001431, allocations: 184.9 kB / 24.45 MB, free: 3.961 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.403/1.403, allocations: 225.7 MB / 253.3 MB, free: 12.8 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001669/0.001669, allocations: 47.92 kB / 371.7 MB, free: 9.133 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.257/0.2587, allocations: 52.17 MB / 423.9 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.04383/0.3025, allocations: 33.85 MB / 457.7 MB, free: 12.44 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02369/0.3262, allocations: 10.13 MB / 467.8 MB, free: 2.281 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008047/0.3343, allocations: 370 kB / 468.2 MB, free: 1.918 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.022/0.3563, allocations: 8.018 MB / 476.2 MB, free: 9.883 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01305/0.3693, allocations: 3.473 MB / 479.7 MB, free: 6.395 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008027/0.3774, allocations: 2.301 MB / 482 MB, free: 4.098 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01887/0.3962, allocations: 12.96 MB / 495 MB, free: 7.094 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03594/0.4322, allocations: 17.11 MB / 0.5001 GB, free: 5.824 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01407/0.4462, allocations: 6.982 MB / 0.5069 GB, free: 14.82 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01458/0.4608, allocations: 7.419 MB / 0.5141 GB, free: 7.379 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006203/0.467, allocations: 1.949 MB / 0.516 GB, free: 5.43 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008049/0.4751, allocations: 2.328 MB / 0.5183 GB, free: 3.102 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006794/0.4819, allocations: 3.963 MB / 0.5222 GB, free: 15.13 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01261/0.4945, allocations: 5.895 MB / 0.5279 GB, free: 9.211 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.4651/0.9596, allocations: 26.03 MB / 0.5534 GB, free: 43.88 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.975e-06/0.9596, allocations: 0 / 0.5534 GB, free: 43.88 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.033e-06/0.9596, allocations: 0 / 0.5534 GB, free: 43.88 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.000911/0.9605, allocations: 2.625 kB / 0.5534 GB, free: 43.88 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.0464/1.007, allocations: 15.2 MB / 0.5682 GB, free: 37.17 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.104e-05/1.007, allocations: 9.25 kB / 0.5682 GB, free: 37.17 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0334/1.04, allocations: 6.21 MB / 0.5743 GB, free: 34.71 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01696/1.057, allocations: 8.078 MB / 0.5822 GB, free: 30.85 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006877/1.058, allocations: 0.9062 MB / 0.5831 GB, free: 30.44 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0048/1.063, allocations: 1.199 MB / 0.5842 GB, free: 30.04 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04257/1.105, allocations: 18.87 MB / 0.6027 GB, free: 13.72 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005049/1.106, allocations: 26 kB / 0.6027 GB, free: 13.7 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00381/1.11, allocations: 0.4939 MB / 0.6032 GB, free: 13.21 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005023/1.11, allocations: 0.6421 MB / 0.6038 GB, free: 12.57 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0344/1.145, allocations: 16.7 MB / 0.6201 GB, free: 11.86 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1043/1.249, allocations: 50.57 MB / 0.6695 GB, free: 9.117 MB / 0.4982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01991/1.269, allocations: 10.15 MB / 0.6794 GB, free: 0.5938 MB / 0.4982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006664/1.275, allocations: 3.373 MB / 0.6827 GB, free: 13.21 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01908/1.295, allocations: 7.589 MB / 0.6901 GB, free: 5.73 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.61e-05/1.295, allocations: 69.31 kB / 0.6902 GB, free: 5.652 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=349): time 7.484e-06/1.295, allocations: 0 / 0.6902 GB, free: 5.652 MB / 0.5138 GB Notification: Performance of matching and sorting (n=389): time 0.04151/1.336, allocations: 17.2 MB / 0.707 GB, free: 4.488 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.886e-05/1.336, allocations: 94.47 kB / 0.707 GB, free: 4.383 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008978/1.345, allocations: 4.767 MB / 0.7117 GB, free: 15.61 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0008672/1.346, allocations: 89.7 kB / 0.7118 GB, free: 15.51 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.004685/1.351, allocations: 5.642 MB / 0.7173 GB, free: 9.855 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.002106/1.353, allocations: 1.417 MB / 0.7187 GB, free: 8.457 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002559/1.355, allocations: 1.33 MB / 0.72 GB, free: 7.121 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001345/1.356, allocations: 305.1 kB / 0.7203 GB, free: 6.82 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005474/1.361, allocations: 2.904 MB / 0.7231 GB, free: 3.914 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008874/1.37, allocations: 5.931 MB / 0.7289 GB, free: 12.61 MB / 0.5607 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01473/1.385, allocations: 9.432 MB / 0.7381 GB, free: 2.156 MB / 0.5607 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001183/1.385, allocations: 28 kB / 0.7381 GB, free: 2.129 MB / 0.5607 GB Notification: Performance of matching and sorting (n=865) (initialization): time 0.02097/1.406, allocations: 9.813 MB / 0.7477 GB, free: 8.879 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 9.772e-05/1.406, allocations: 48 kB / 0.7478 GB, free: 8.832 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000209/1.406, allocations: 103.9 kB / 0.7479 GB, free: 8.73 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002677/1.409, allocations: 0.9363 MB / 0.7488 GB, free: 7.781 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006429/1.415, allocations: 1.587 MB / 0.7503 GB, free: 6.312 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2778/1.693, allocations: 9.68 MB / 0.7598 GB, free: 205.8 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006875/1.7, allocations: 405.6 kB / 0.7602 GB, free: 205.8 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001332/1.701, allocations: 355.7 kB / 0.7605 GB, free: 205.8 MB / 0.5763 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.008126/1.709, allocations: 4.249 MB / 0.7647 GB, free: 205.7 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001363/1.711, allocations: 0.5059 MB / 0.7652 GB, free: 205.7 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01013/1.721, allocations: 6.428 MB / 0.7714 GB, free: 204 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.656e-05/1.721, allocations: 40.61 kB / 0.7715 GB, free: 204 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.569e-05/1.721, allocations: 7.344 kB / 0.7715 GB, free: 204 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.639e-05/1.721, allocations: 24.73 kB / 0.7715 GB, free: 204 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0271/1.748, allocations: 13.26 MB / 0.7845 GB, free: 198.7 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-05/1.748, allocations: 6.531 kB / 0.7845 GB, free: 198.7 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003419/1.751, allocations: 0.7375 MB / 0.7852 GB, free: 198.6 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002212/1.754, allocations: 0.7883 MB / 0.7859 GB, free: 198.4 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006889/1.754, allocations: 89.98 kB / 0.786 GB, free: 198.4 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0086/1.763, allocations: 8.841 MB / 0.7947 GB, free: 192.4 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.237e-06/1.763, allocations: 7.531 kB / 0.7947 GB, free: 192.4 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01435/1.777, allocations: 9.461 MB / 0.8039 GB, free: 184.8 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003399/1.781, allocations: 0.977 MB / 0.8049 GB, free: 184.2 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001337/1.782, allocations: 76.5 kB / 0.8049 GB, free: 184.1 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003093/1.785, allocations: 228 kB / 0.8052 GB, free: 184 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005998/1.786, allocations: 278.8 kB / 0.8054 GB, free: 183.8 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002714/1.786, allocations: 107.7 kB / 0.8055 GB, free: 183.7 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.005549/1.792, allocations: 3.053 MB / 0.8085 GB, free: 181.2 MB / 0.5763 GB Notification: Performance of sort global known variables: time 2.8e-07/1.792, allocations: 0 / 0.8085 GB, free: 181.2 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.009214/1.801, allocations: 1.873 MB / 0.8103 GB, free: 179.3 MB / 0.5763 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.001169/1.802, allocations: 260.1 kB / 0.8106 GB, free: 179.1 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01157/1.814, allocations: 7.208 MB / 0.8176 GB, free: 172.8 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 1.092e-05/1.814, allocations: 0 / 0.8176 GB, free: 172.8 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.005781/1.819, allocations: 3.174 MB / 0.8207 GB, free: 170 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00673/1.826, allocations: 1.146 MB / 0.8218 GB, free: 169 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03787/1.864, allocations: 19.84 MB / 0.8412 GB, free: 149.8 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01124/1.875, allocations: 6.702 MB / 0.8478 GB, free: 143.1 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002517/1.878, allocations: 447.3 kB / 0.8482 GB, free: 142.6 MB / 0.5763 GB Notification: Performance of SimCode: time 2.064e-06/1.878, allocations: 0 / 0.8482 GB, free: 142.6 MB / 0.5763 GB Notification: Performance of Templates: time 0.8993/2.777, allocations: 463.9 MB / 1.301 GB, free: 119.4 MB / 0.5763 GB " [Timeout remaining time 657] make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_CurrentSource/SMR_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 22.02477989019826]