Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_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.001696/0.001696, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.002155/0.002155, allocations: 213.2 kB / 23.73 MB, free: 4.164 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.46/1.46, allocations: 230.5 MB / 257.4 MB, free: 7.781 MB / 206.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.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001952/0.001952, allocations: 67.91 kB / 378.3 MB, free: 2.258 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.258/0.2599, allocations: 53.4 MB / 431.7 MB, free: 6.504 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01883/0.2787, allocations: 13.79 MB / 445.4 MB, free: 8.652 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01057/0.2893, allocations: 5.073 MB / 450.5 MB, free: 3.559 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002203/0.2915, allocations: 123.2 kB / 450.6 MB, free: 3.438 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002877/0.2944, allocations: 1.064 MB / 451.7 MB, free: 2.367 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003763/0.2981, allocations: 1.278 MB / 453 MB, free: 1.082 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002174/0.3003, allocations: 0.9071 MB / 453.9 MB, free: 180 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004704/0.305, allocations: 3.646 MB / 457.5 MB, free: 12.52 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002834/0.3079, allocations: 1.838 MB / 459.4 MB, free: 10.61 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002738/0.3106, allocations: 1.799 MB / 461.2 MB, free: 8.809 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003429/0.314, allocations: 2 MB / 463.2 MB, free: 6.801 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008186/0.3148, allocations: 476 kB / 463.6 MB, free: 6.336 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001701/0.3165, allocations: 0.6794 MB / 464.3 MB, free: 5.656 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001289/0.3178, allocations: 1.157 MB / 465.5 MB, free: 4.496 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002173/0.32, allocations: 1.63 MB / 467.1 MB, free: 2.859 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007744/0.3277, allocations: 6.337 MB / 473.4 MB, free: 12.5 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.3278, allocations: 4 kB / 473.4 MB, free: 12.5 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.3278, allocations: 0 / 473.4 MB, free: 12.5 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001583/0.3279, allocations: 0 / 473.4 MB, free: 12.5 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.01082/0.3387, allocations: 4.287 MB / 477.7 MB, free: 8.148 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.285e-05/0.3388, allocations: 11.98 kB / 477.7 MB, free: 8.137 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00291/0.3417, allocations: 0.6271 MB / 478.4 MB, free: 7.508 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004781/0.3465, allocations: 2.214 MB / 480.6 MB, free: 5.25 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002201/0.3467, allocations: 242.6 kB / 480.8 MB, free: 5.012 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005304/0.3472, allocations: 316.1 kB / 481.1 MB, free: 4.703 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007422/0.3546, allocations: 4.126 MB / 485.3 MB, free: 0.4961 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.083e-05/0.3547, allocations: 11.95 kB / 485.3 MB, free: 496 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000299/0.355, allocations: 124 kB / 485.4 MB, free: 372 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001618/0.3552, allocations: 150.2 kB / 485.5 MB, free: 220 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00633/0.3615, allocations: 3.386 MB / 488.9 MB, free: 12.82 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01966/0.3812, allocations: 11.31 MB / 0.4885 GB, free: 1.113 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003672/0.3848, allocations: 1.753 MB / 0.4902 GB, free: 15.4 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001761/0.3866, allocations: 0.9299 MB / 0.4911 GB, free: 14.47 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004664/0.3913, allocations: 2.141 MB / 0.4932 GB, free: 12.31 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.928e-05/0.3913, allocations: 47.56 kB / 0.4933 GB, free: 12.25 MB / 414.1 MB Notification: Performance of pre-optimization done (n=108): time 2.955e-06/0.3913, allocations: 0 / 0.4933 GB, free: 12.25 MB / 414.1 MB Notification: Performance of matching and sorting (n=142): time 0.01213/0.4034, allocations: 5.81 MB / 0.4989 GB, free: 6.406 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.138e-05/0.4035, allocations: 72.66 kB / 0.499 GB, free: 6.324 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002695/0.4062, allocations: 1.744 MB / 0.5007 GB, free: 4.578 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001142/0.4063, allocations: 53.7 kB / 0.5008 GB, free: 4.52 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001262/0.4076, allocations: 1.571 MB / 0.5023 GB, free: 2.934 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004583/0.408, allocations: 0.5035 MB / 0.5028 GB, free: 2.426 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000546/0.4086, allocations: 343.4 kB / 0.5031 GB, free: 2.082 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000131/0.4087, allocations: 301.1 kB / 0.5034 GB, free: 1.785 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001355/0.4101, allocations: 0.7691 MB / 0.5042 GB, free: 1.016 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001862/0.4119, allocations: 1.396 MB / 0.5055 GB, free: 15.34 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003394/0.4153, allocations: 2.324 MB / 0.5078 GB, free: 12.75 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.029e-05/0.4153, allocations: 8 kB / 0.5078 GB, free: 12.74 MB / 430.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004326/0.4197, allocations: 2.467 MB / 0.5102 GB, free: 10.26 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.904e-05/0.4197, allocations: 12 kB / 0.5102 GB, free: 10.25 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.504e-05/0.4197, allocations: 20 kB / 0.5102 GB, free: 10.23 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003626/0.4201, allocations: 119 kB / 0.5103 GB, free: 10.1 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001881/0.422, allocations: 487.2 kB / 0.5108 GB, free: 9.625 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001158/0.4231, allocations: 1.279 MB / 0.5121 GB, free: 8.242 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00132/0.4244, allocations: 127.9 kB / 0.5122 GB, free: 8.117 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000137/0.4246, allocations: 80 kB / 0.5123 GB, free: 8.039 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * 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 (232): * Single equations (assignments): 229 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001685/0.4263, allocations: 0.9889 MB / 0.5132 GB, free: 7.039 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003289/0.4266, allocations: 202.7 kB / 0.5134 GB, free: 6.84 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00356/0.4301, allocations: 1.949 MB / 0.5153 GB, free: 4.875 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.465e-05/0.4302, allocations: 16 kB / 0.5153 GB, free: 4.859 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.4302, allocations: 7.938 kB / 0.5153 GB, free: 4.852 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.6e-05/0.4302, allocations: 7.969 kB / 0.5154 GB, free: 4.844 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007839/0.438, allocations: 4.22 MB / 0.5195 GB, free: 0.5469 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.839e-06/0.438, allocations: 12.06 kB / 0.5195 GB, free: 0.5352 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001421/0.4395, allocations: 307.5 kB / 0.5198 GB, free: 240 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002984/0.4398, allocations: 94.47 kB / 0.5199 GB, free: 136 kB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.113e-05/0.4398, allocations: 35.98 kB / 0.5199 GB, free: 100 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001124/0.441, allocations: 1.248 MB / 0.5211 GB, free: 14.75 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.118e-06/0.441, allocations: 7.938 kB / 0.5211 GB, free: 14.74 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004979/0.446, allocations: 3.079 MB / 0.5241 GB, free: 11.6 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00103/0.447, allocations: 370.6 kB / 0.5245 GB, free: 11.24 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002327/0.4472, allocations: 36.14 kB / 0.5245 GB, free: 11.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009489/0.4482, allocations: 79.91 kB / 0.5246 GB, free: 11.12 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001749/0.4483, allocations: 89.14 kB / 0.5247 GB, free: 11.04 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.055e-05/0.4484, allocations: 39.98 kB / 0.5247 GB, free: 11 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001889/0.4503, allocations: 1.16 MB / 0.5259 GB, free: 9.848 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4503, allocations: 0 / 0.5259 GB, free: 9.848 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001696/0.452, allocations: 0.5351 MB / 0.5264 GB, free: 9.312 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.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 (141): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * 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): 1 system {(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.0003377/0.4524, allocations: 177.9 kB / 0.5265 GB, free: 9.133 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003543/0.4559, allocations: 1.974 MB / 0.5285 GB, free: 7.141 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.636e-06/0.4559, allocations: 0 / 0.5285 GB, free: 7.141 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001663/0.4576, allocations: 0.9587 MB / 0.5294 GB, free: 6.168 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002049/0.4596, allocations: 481.1 kB / 0.5299 GB, free: 5.711 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1832/0.6428, allocations: 5.664 MB / 0.5354 GB, free: 100.7 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002756/0.6455, allocations: 1.713 MB / 0.5371 GB, free: 100.5 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001581/0.6471, allocations: 0.4939 MB / 0.5376 GB, free: 100.4 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000429/0.6475, allocations: 149 kB / 0.5377 GB, free: 100.4 MB / 446.1 MB Notification: Performance of SimCode: time 8.32e-07/0.6475, allocations: 0 / 0.5377 GB, free: 100.4 MB / 446.1 MB Notification: Performance of Templates: time 0.03937/0.6869, allocations: 28.5 MB / 0.5655 GB, free: 79.77 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_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: 5.607749968767166]