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.001607/0.001607, allocations: 109.1 kB / 21.18 MB, free: 0.7656 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.001949/0.001949, allocations: 213.7 kB / 24.5 MB, free: 4.148 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.636/1.636, allocations: 230.5 MB / 258.1 MB, free: 8.02 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.00204/0.00204, allocations: 63.89 kB / 379.1 MB, free: 2.574 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2677/0.2697, allocations: 53.41 MB / 432.5 MB, free: 6.777 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01971/0.2895, allocations: 15.93 MB / 448.4 MB, free: 6.773 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01205/0.3015, allocations: 5.369 MB / 453.8 MB, free: 1.387 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003355/0.3049, allocations: 123.2 kB / 453.9 MB, free: 1.266 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003539/0.3084, allocations: 1.146 MB / 455 MB, free: 116 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005024/0.3134, allocations: 1.297 MB / 456.3 MB, free: 14.81 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002625/0.316, allocations: 0.9461 MB / 457.3 MB, free: 13.86 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005892/0.3219, allocations: 3.665 MB / 460.9 MB, free: 10.19 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003651/0.3256, allocations: 1.913 MB / 462.9 MB, free: 8.207 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003584/0.3292, allocations: 1.787 MB / 464.6 MB, free: 6.414 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003798/0.333, allocations: 2.149 MB / 466.8 MB, free: 4.258 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000871/0.3338, allocations: 480 kB / 467.3 MB, free: 3.789 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001664/0.3355, allocations: 0.699 MB / 468 MB, free: 3.09 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001124/0.3366, allocations: 1.172 MB / 469.1 MB, free: 1.914 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002473/0.3391, allocations: 2.05 MB / 471.2 MB, free: 15.85 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008854/0.348, allocations: 6.316 MB / 477.5 MB, free: 9.516 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.053e-06/0.348, allocations: 3.938 kB / 477.5 MB, free: 9.512 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.348, allocations: 0 / 477.5 MB, free: 9.512 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001535/0.3481, allocations: 0 / 477.5 MB, free: 9.512 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.01361/0.3617, allocations: 4.294 MB / 481.8 MB, free: 5.16 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.927e-05/0.3618, allocations: 8.031 kB / 481.8 MB, free: 5.152 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002958/0.3647, allocations: 0.6388 MB / 482.4 MB, free: 4.512 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005443/0.3702, allocations: 2.23 MB / 484.7 MB, free: 2.238 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00021/0.3704, allocations: 234.7 kB / 484.9 MB, free: 2.008 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007172/0.3711, allocations: 312.1 kB / 485.2 MB, free: 1.703 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007634/0.3787, allocations: 4.051 MB / 489.3 MB, free: 13.59 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.096e-05/0.3788, allocations: 15.94 kB / 489.3 MB, free: 13.57 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002797/0.3791, allocations: 120 kB / 489.4 MB, free: 13.46 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001705/0.3793, allocations: 150.2 kB / 489.5 MB, free: 13.31 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006421/0.3857, allocations: 3.393 MB / 492.9 MB, free: 9.906 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03199/0.4177, allocations: 12.87 MB / 0.4939 GB, free: 12.62 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005624/0.4233, allocations: 1.763 MB / 0.4957 GB, free: 10.9 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002812/0.4261, allocations: 0.9259 MB / 0.4966 GB, free: 9.98 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007883/0.434, allocations: 2.454 MB / 0.499 GB, free: 7.5 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.491e-05/0.4341, allocations: 51.48 kB / 0.499 GB, free: 7.441 MB / 414.1 MB Notification: Performance of pre-optimization done (n=108): time 4.378e-06/0.4341, allocations: 4 kB / 0.499 GB, free: 7.438 MB / 414.1 MB Notification: Performance of matching and sorting (n=142): time 0.0185/0.4526, allocations: 5.822 MB / 0.5047 GB, free: 1.578 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.969e-05/0.4526, allocations: 68.72 kB / 0.5048 GB, free: 1.5 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005205/0.4579, allocations: 1.91 MB / 0.5066 GB, free: 15.55 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000221/0.4581, allocations: 49.7 kB / 0.5067 GB, free: 15.49 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001733/0.4598, allocations: 1.556 MB / 0.5082 GB, free: 13.92 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007471/0.4606, allocations: 0.5035 MB / 0.5087 GB, free: 13.41 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008631/0.4614, allocations: 335.4 kB / 0.509 GB, free: 13.08 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001548/0.4616, allocations: 309.1 kB / 0.5093 GB, free: 12.77 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001998/0.4636, allocations: 0.7652 MB / 0.5101 GB, free: 12.01 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002398/0.466, allocations: 1.383 MB / 0.5114 GB, free: 10.35 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004115/0.4701, allocations: 2.32 MB / 0.5137 GB, free: 7.766 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.218e-05/0.4701, allocations: 7.938 kB / 0.5137 GB, free: 7.758 MB / 430.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004916/0.475, allocations: 2.479 MB / 0.5161 GB, free: 5.262 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.566e-05/0.4751, allocations: 19.94 kB / 0.5161 GB, free: 5.242 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.589e-05/0.4751, allocations: 16 kB / 0.5161 GB, free: 5.227 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004193/0.4755, allocations: 126.5 kB / 0.5163 GB, free: 5.094 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001862/0.4774, allocations: 479.3 kB / 0.5167 GB, free: 4.625 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001238/0.4786, allocations: 1.306 MB / 0.518 GB, free: 3.207 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001596/0.4802, allocations: 115.8 kB / 0.5181 GB, free: 3.094 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001781/0.4804, allocations: 87.98 kB / 0.5182 GB, free: 3.008 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.001856/0.4822, allocations: 0.9968 MB / 0.5192 GB, free: 2 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005188/0.4828, allocations: 210.6 kB / 0.5194 GB, free: 1.793 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003776/0.4865, allocations: 1.965 MB / 0.5213 GB, free: 15.81 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.988e-05/0.4866, allocations: 19.98 kB / 0.5213 GB, free: 15.79 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.763e-06/0.4866, allocations: 0 / 0.5213 GB, free: 15.79 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.563e-05/0.4866, allocations: 7.969 kB / 0.5213 GB, free: 15.79 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009749/0.4963, allocations: 4.971 MB / 0.5262 GB, free: 10.71 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-05/0.4963, allocations: 4 kB / 0.5262 GB, free: 10.71 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00143/0.4978, allocations: 307.5 kB / 0.5265 GB, free: 10.41 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000329/0.4981, allocations: 98.73 kB / 0.5265 GB, free: 10.3 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001106/0.4982, allocations: 28 kB / 0.5266 GB, free: 10.27 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001113/0.4993, allocations: 1.283 MB / 0.5278 GB, free: 8.871 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.699e-06/0.4993, allocations: 4 kB / 0.5278 GB, free: 8.867 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005018/0.5043, allocations: 3.091 MB / 0.5309 GB, free: 5.715 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00122/0.5056, allocations: 390.5 kB / 0.5312 GB, free: 5.332 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004886/0.5061, allocations: 32.06 kB / 0.5313 GB, free: 5.301 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001203/0.5073, allocations: 75.91 kB / 0.5313 GB, free: 5.227 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002058/0.5075, allocations: 93.08 kB / 0.5314 GB, free: 5.137 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.248e-05/0.5076, allocations: 39.98 kB / 0.5315 GB, free: 5.098 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002455/0.51, allocations: 1.294 MB / 0.5327 GB, free: 3.781 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.51, allocations: 4 kB / 0.5327 GB, free: 3.777 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001944/0.512, allocations: 0.5351 MB / 0.5332 GB, free: 3.242 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.0003898/0.5123, allocations: 177.9 kB / 0.5334 GB, free: 3.062 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003775/0.5161, allocations: 1.972 MB / 0.5353 GB, free: 1.074 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.601e-06/0.5161, allocations: 4.062 kB / 0.5353 GB, free: 1.07 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001617/0.5177, allocations: 0.9564 MB / 0.5363 GB, free: 100 kB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.2151/0.7329, allocations: 0.5152 MB / 0.5368 GB, free: 101.8 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01102/0.7439, allocations: 5.731 MB / 0.5424 GB, free: 99.41 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002072/0.746, allocations: 2.22 MB / 0.5445 GB, free: 98.41 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000848/0.7468, allocations: 175 kB / 0.5447 GB, free: 98.39 MB / 446.1 MB Notification: Performance of SimCode: time 1.853e-06/0.7468, allocations: 2.906 kB / 0.5447 GB, free: 98.39 MB / 446.1 MB Notification: Performance of Templates: time 0.07565/0.8225, allocations: 87.07 MB / 0.6297 GB, free: 16.83 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/jenkins1/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/jenkins1/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: 13.507979488931596]