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.001381/0.001381, allocations: 83.92 kB / 20.68 MB, free: 1.023 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.001499/0.001499, allocations: 163.2 kB / 23.95 MB, free: 4.156 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.501/1.501, allocations: 177.1 MB / 204.3 MB, free: 9.176 MB / 190.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 1.292e-06/1.292e-06, allocations: 0 / 325.1 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.936e-05/2.065e-05, allocations: 2.281 kB / 325.1 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.0429/0.04292, allocations: 34.43 MB / 359.6 MB, free: 2.578 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02484/0.06776, allocations: 10.37 MB / 369.9 MB, free: 8.172 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008677/0.07644, allocations: 370 kB / 370.3 MB, free: 7.809 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02182/0.09825, allocations: 8.448 MB / 378.7 MB, free: 15.34 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01196/0.1102, allocations: 3.567 MB / 382.3 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006658/0.1169, allocations: 2.344 MB / 384.6 MB, free: 9.41 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0174/0.1343, allocations: 13.52 MB / 398.2 MB, free: 11.84 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02973/0.164, allocations: 17.17 MB / 415.3 MB, free: 10.52 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01898/0.183, allocations: 10.32 MB / 425.7 MB, free: 188 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.012/0.195, allocations: 6.701 MB / 432.4 MB, free: 9.469 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00405/0.199, allocations: 1.949 MB / 434.3 MB, free: 7.52 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005863/0.2049, allocations: 2.355 MB / 436.7 MB, free: 5.164 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004538/0.2094, allocations: 4.044 MB / 440.7 MB, free: 1.109 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009626/0.219, allocations: 5.076 MB / 445.8 MB, free: 12.02 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03037/0.2494, allocations: 26.26 MB / 472 MB, free: 1.691 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.2494, allocations: 4 kB / 472 MB, free: 1.688 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.2494, allocations: 0 / 472 MB, free: 1.688 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0005407/0.25, allocations: 0 / 472 MB, free: 1.688 MB / 430.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.3284/0.5784, allocations: 15.12 MB / 487.2 MB, free: 113.9 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.064e-05/0.5784, allocations: 12.28 kB / 487.2 MB, free: 113.9 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03498/0.6134, allocations: 6.134 MB / 493.3 MB, free: 110.5 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01728/0.6307, allocations: 8.102 MB / 0.4896 GB, free: 102.4 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007477/0.6314, allocations: 0.9021 MB / 0.4905 GB, free: 101.5 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004319/0.6357, allocations: 1.194 MB / 0.4917 GB, free: 100.3 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04124/0.677, allocations: 18.91 MB / 0.5102 GB, free: 81.29 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006075/0.6776, allocations: 19.91 kB / 0.5102 GB, free: 81.27 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004428/0.682, allocations: 499.5 kB / 0.5107 GB, free: 80.79 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005499/0.6825, allocations: 0.6499 MB / 0.5113 GB, free: 80.14 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03337/0.7159, allocations: 16.75 MB / 0.5277 GB, free: 63.38 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09023/0.8062, allocations: 50.68 MB / 0.5771 GB, free: 11.82 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0165/0.8226, allocations: 10.28 MB / 0.5872 GB, free: 3.133 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005061/0.8277, allocations: 3.41 MB / 0.5905 GB, free: 15.71 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01835/0.8461, allocations: 7.659 MB / 0.598 GB, free: 8.098 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.392e-05/0.8462, allocations: 81.23 kB / 0.5981 GB, free: 8.008 MB / 446.1 MB Notification: Performance of pre-optimization done (n=349): time 6.542e-06/0.8462, allocations: 0 / 0.5981 GB, free: 8.008 MB / 446.1 MB Notification: Performance of matching and sorting (n=389): time 0.0421/0.8883, allocations: 17.24 MB / 0.6149 GB, free: 6.738 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001253/0.8884, allocations: 98.47 kB / 0.615 GB, free: 6.629 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01065/0.899, allocations: 4.787 MB / 0.6197 GB, free: 1.836 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001064/0.9001, allocations: 89.7 kB / 0.6198 GB, free: 1.742 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.006965/0.9071, allocations: 5.626 MB / 0.6253 GB, free: 12.1 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002758/0.9098, allocations: 1.41 MB / 0.6266 GB, free: 10.71 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003658/0.9135, allocations: 1.315 MB / 0.6279 GB, free: 9.387 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001938/0.9137, allocations: 305.1 kB / 0.6282 GB, free: 9.086 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00789/0.9216, allocations: 2.91 MB / 0.631 GB, free: 6.172 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01218/0.9337, allocations: 5.933 MB / 0.6368 GB, free: 14.82 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02165/0.9554, allocations: 9.456 MB / 0.6461 GB, free: 3.93 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000134/0.9555, allocations: 28 kB / 0.6461 GB, free: 3.902 MB / 494.1 MB Notification: Performance of matching and sorting (n=865) (initialization): time 0.2675/1.223, allocations: 9.83 MB / 0.6557 GB, free: 154.7 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001196/1.223, allocations: 48.48 kB / 0.6558 GB, free: 154.7 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002297/1.223, allocations: 102 kB / 0.6558 GB, free: 154.7 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002637/1.226, allocations: 0.9412 MB / 0.6568 GB, free: 154.7 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006276/1.232, allocations: 1.584 MB / 0.6583 GB, free: 154.7 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01044/1.243, allocations: 9.678 MB / 0.6678 GB, free: 148.5 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005838/1.249, allocations: 406.1 kB / 0.6682 GB, free: 148.4 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000758/1.249, allocations: 358.6 kB / 0.6685 GB, free: 148.4 MB / 494.1 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.006532/1.256, allocations: 4.247 MB / 0.6726 GB, free: 146.4 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001074/1.257, allocations: 0.5065 MB / 0.6731 GB, free: 146.4 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01/1.267, allocations: 6.431 MB / 0.6794 GB, free: 143.8 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.554e-05/1.267, allocations: 46.67 kB / 0.6795 GB, free: 143.8 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.493e-05/1.267, allocations: 8.625 kB / 0.6795 GB, free: 143.8 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-05/1.267, allocations: 18.47 kB / 0.6795 GB, free: 143.8 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03006/1.297, allocations: 13.31 MB / 0.6925 GB, free: 136 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.17e-05/1.297, allocations: 7.125 kB / 0.6925 GB, free: 136 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004598/1.302, allocations: 0.7545 MB / 0.6932 GB, free: 135.4 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003073/1.305, allocations: 0.7859 MB / 0.694 GB, free: 134.7 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003537/1.305, allocations: 86.98 kB / 0.6941 GB, free: 134.7 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01177/1.317, allocations: 8.844 MB / 0.7027 GB, free: 126.2 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.798e-06/1.317, allocations: 3.938 kB / 0.7027 GB, free: 126.2 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.012/1.329, allocations: 9.479 MB / 0.712 GB, free: 116.9 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003175/1.332, allocations: 0.983 MB / 0.7129 GB, free: 116.1 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001498/1.334, allocations: 77.91 kB / 0.713 GB, free: 116 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0039/1.338, allocations: 215.8 kB / 0.7132 GB, free: 115.8 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008139/1.338, allocations: 282.5 kB / 0.7135 GB, free: 115.5 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003861/1.339, allocations: 120 kB / 0.7136 GB, free: 115.4 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003989/1.343, allocations: 3.06 MB / 0.7166 GB, free: 112.3 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/1.343, allocations: 2.438 kB / 0.7166 GB, free: 112.3 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.007277/1.35, allocations: 1.88 MB / 0.7184 GB, free: 110.5 MB / 494.1 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.0007326/1.351, allocations: 263.3 kB / 0.7187 GB, free: 110.2 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01001/1.361, allocations: 7.207 MB / 0.7257 GB, free: 103 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.442e-05/1.361, allocations: 4 kB / 0.7257 GB, free: 103 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00429/1.365, allocations: 3.18 MB / 0.7288 GB, free: 99.73 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005965/1.371, allocations: 1.16 MB / 0.73 GB, free: 98.61 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02831/1.399, allocations: 19.95 MB / 0.7494 GB, free: 78.61 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006148/1.405, allocations: 6.926 MB / 0.7562 GB, free: 71.64 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.005076/1.411, allocations: 2.115 MB / 0.7583 GB, free: 69.52 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001171/1.412, allocations: 404.4 kB / 0.7586 GB, free: 69.12 MB / 494.1 MB Notification: Performance of SimCode: time 1.162e-06/1.412, allocations: 0 / 0.7586 GB, free: 69.12 MB / 494.1 MB Notification: Performance of Templates: time 0.1076/1.519, allocations: 64.94 MB / 0.8221 GB, free: 5.07 MB / 494.1 MB " [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: 8.499913163483143]