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.00169/0.00169, allocations: 89.14 kB / 20.68 MB, free: 1.02 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.001935/0.001935, allocations: 158.8 kB / 23.95 MB, free: 4.152 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.484/1.484, allocations: 177 MB / 204.1 MB, free: 9.168 MB / 190.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 1.543e-06/1.543e-06, allocations: 0 / 325.1 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.669e-05/1.823e-05, allocations: 3.531 kB / 325.1 MB, free: 500 kB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.04157/0.04159, allocations: 34.43 MB / 359.5 MB, free: 2.465 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02277/0.06436, allocations: 10.36 MB / 369.9 MB, free: 8.066 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00728/0.07164, allocations: 374 kB / 370.2 MB, free: 7.699 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02131/0.09295, allocations: 8.445 MB / 378.7 MB, free: 15.23 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01256/0.1055, allocations: 3.571 MB / 382.2 MB, free: 11.64 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007639/0.1131, allocations: 2.348 MB / 384.6 MB, free: 9.297 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01922/0.1324, allocations: 13.51 MB / 398.1 MB, free: 11.74 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02805/0.1604, allocations: 17.17 MB / 415.3 MB, free: 10.41 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01665/0.1771, allocations: 10.31 MB / 425.6 MB, free: 80 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01198/0.1891, allocations: 6.697 MB / 432.3 MB, free: 9.367 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00424/0.1933, allocations: 1.949 MB / 434.2 MB, free: 7.418 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006113/0.1994, allocations: 2.358 MB / 436.6 MB, free: 5.059 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004561/0.204, allocations: 4.04 MB / 440.6 MB, free: 1.008 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009286/0.2133, allocations: 5.076 MB / 445.7 MB, free: 11.92 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03138/0.2446, allocations: 26.26 MB / 472 MB, free: 1.586 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.2446, allocations: 0 / 472 MB, free: 1.586 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.2446, allocations: 0 / 472 MB, free: 1.586 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0005728/0.2452, allocations: 4 kB / 472 MB, free: 1.582 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.325/0.5702, allocations: 15.11 MB / 487.1 MB, free: 113.8 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.563e-05/0.5702, allocations: 11.95 kB / 487.1 MB, free: 113.8 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0344/0.6046, allocations: 6.129 MB / 493.2 MB, free: 110.4 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01822/0.6229, allocations: 8.099 MB / 0.4896 GB, free: 102.3 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006406/0.6235, allocations: 0.9102 MB / 0.4905 GB, free: 101.4 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00439/0.6279, allocations: 1.194 MB / 0.4916 GB, free: 100.2 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04101/0.6689, allocations: 18.92 MB / 0.5101 GB, free: 81.14 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003562/0.6692, allocations: 15.91 kB / 0.5101 GB, free: 81.12 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002344/0.6716, allocations: 0.4908 MB / 0.5106 GB, free: 80.64 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004234/0.672, allocations: 0.6421 MB / 0.5112 GB, free: 80 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02875/0.7008, allocations: 16.75 MB / 0.5276 GB, free: 63.23 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07734/0.7781, allocations: 50.68 MB / 0.5771 GB, free: 11.67 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01642/0.7945, allocations: 10.28 MB / 0.5871 GB, free: 2.988 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004821/0.7993, allocations: 3.41 MB / 0.5904 GB, free: 15.57 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01829/0.8176, allocations: 7.666 MB / 0.5979 GB, free: 7.949 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.335e-05/0.8177, allocations: 73.31 kB / 0.598 GB, free: 7.867 MB / 446.1 MB Notification: Performance of pre-optimization done (n=349): time 6.642e-06/0.8177, allocations: 3.938 kB / 0.598 GB, free: 7.863 MB / 446.1 MB Notification: Performance of matching and sorting (n=389): time 0.0414/0.8591, allocations: 17.23 MB / 0.6148 GB, free: 6.598 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.066e-05/0.8592, allocations: 94.47 kB / 0.6149 GB, free: 6.492 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009397/0.8686, allocations: 4.795 MB / 0.6196 GB, free: 1.691 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006216/0.8692, allocations: 85.7 kB / 0.6197 GB, free: 1.602 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004896/0.8741, allocations: 5.63 MB / 0.6252 GB, free: 11.96 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002054/0.8762, allocations: 1.405 MB / 0.6266 GB, free: 10.57 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003441/0.8796, allocations: 1.315 MB / 0.6278 GB, free: 9.246 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001459/0.8797, allocations: 309.1 kB / 0.6281 GB, free: 8.941 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00568/0.8854, allocations: 2.91 MB / 0.631 GB, free: 6.027 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008978/0.8944, allocations: 5.929 MB / 0.6368 GB, free: 14.68 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01528/0.9097, allocations: 9.456 MB / 0.646 GB, free: 3.789 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001467/0.9098, allocations: 32 kB / 0.646 GB, free: 3.758 MB / 494.1 MB Notification: Performance of matching and sorting (n=865) (initialization): time 0.2271/1.137, allocations: 9.833 MB / 0.6556 GB, free: 154.7 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001049/1.137, allocations: 48.84 kB / 0.6557 GB, free: 154.7 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000275/1.137, allocations: 103 kB / 0.6558 GB, free: 154.7 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002677/1.14, allocations: 0.9348 MB / 0.6567 GB, free: 154.6 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006197/1.146, allocations: 1.591 MB / 0.6582 GB, free: 154.6 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01025/1.156, allocations: 9.676 MB / 0.6677 GB, free: 148.4 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005945/1.162, allocations: 405.1 kB / 0.6681 GB, free: 148.3 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008339/1.163, allocations: 353.5 kB / 0.6684 GB, free: 148.3 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.006671/1.17, allocations: 4.249 MB / 0.6726 GB, free: 146.2 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001216/1.171, allocations: 0.5099 MB / 0.6731 GB, free: 146.2 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009921/1.181, allocations: 6.432 MB / 0.6793 GB, free: 143.7 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.225e-05/1.181, allocations: 38.81 kB / 0.6794 GB, free: 143.7 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.303e-05/1.181, allocations: 7.75 kB / 0.6794 GB, free: 143.7 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.255e-05/1.181, allocations: 22.5 kB / 0.6794 GB, free: 143.7 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03089/1.212, allocations: 13.31 MB / 0.6924 GB, free: 135.7 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.05e-05/1.212, allocations: 0 / 0.6924 GB, free: 135.7 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004796/1.217, allocations: 0.7542 MB / 0.6931 GB, free: 135.1 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003077/1.22, allocations: 0.7805 MB / 0.6939 GB, free: 134.5 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004759/1.22, allocations: 98.78 kB / 0.694 GB, free: 134.4 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01148/1.232, allocations: 8.827 MB / 0.7026 GB, free: 125.9 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.988e-06/1.232, allocations: 7.938 kB / 0.7026 GB, free: 125.9 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01287/1.245, allocations: 9.483 MB / 0.7119 GB, free: 116.6 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002545/1.247, allocations: 0.9805 MB / 0.7129 GB, free: 115.8 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007608/1.248, allocations: 73.5 kB / 0.7129 GB, free: 115.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002413/1.25, allocations: 219.8 kB / 0.7131 GB, free: 115.5 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005922/1.251, allocations: 286.5 kB / 0.7134 GB, free: 115.2 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002487/1.251, allocations: 116 kB / 0.7135 GB, free: 115.1 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004171/1.255, allocations: 3.06 MB / 0.7165 GB, free: 112.1 MB / 494.1 MB Notification: Performance of sort global known variables: time 9e-08/1.255, allocations: 0 / 0.7165 GB, free: 112.1 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.006704/1.262, allocations: 1.87 MB / 0.7183 GB, free: 110.2 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.0007542/1.263, allocations: 277.8 kB / 0.7186 GB, free: 109.9 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0117/1.275, allocations: 7.216 MB / 0.7256 GB, free: 102.7 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.045e-05/1.275, allocations: 4 kB / 0.7256 GB, free: 102.7 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005529/1.28, allocations: 3.174 MB / 0.7287 GB, free: 99.47 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005963/1.286, allocations: 1.159 MB / 0.7299 GB, free: 98.35 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03762/1.324, allocations: 19.95 MB / 0.7494 GB, free: 78.34 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01164/1.335, allocations: 6.922 MB / 0.7561 GB, free: 71.37 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.006691/1.342, allocations: 2.111 MB / 0.7582 GB, free: 69.25 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001882/1.344, allocations: 408.4 kB / 0.7586 GB, free: 68.86 MB / 494.1 MB Notification: Performance of SimCode: time 1.492e-06/1.344, allocations: 0 / 0.7586 GB, free: 68.86 MB / 494.1 MB Notification: Performance of Templates: time 0.1147/1.459, allocations: 64.92 MB / 0.822 GB, free: 4.633 MB / 494.1 MB " [Timeout remaining time 659] 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.50714422762394]