Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.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.001528/0.001528, allocations: 103.6 kB / 21.19 MB, free: 0.5234 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.001879/0.001879, allocations: 214.5 kB / 24.48 MB, free: 3.836 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.47/1.47, allocations: 230.5 MB / 258.1 MB, free: 7.801 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.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001936/0.001936, allocations: 67.89 kB / 379 MB, free: 2.312 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3446/0.3465, allocations: 53.41 MB / 432.4 MB, free: 6.535 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01356/0.3601, allocations: 9.653 MB / 442.1 MB, free: 12.85 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008376/0.3685, allocations: 3.478 MB / 445.5 MB, free: 9.355 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003232/0.3717, allocations: 87.44 kB / 445.6 MB, free: 9.27 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003058/0.3748, allocations: 0.8034 MB / 446.4 MB, free: 8.461 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004095/0.3789, allocations: 0.9204 MB / 447.4 MB, free: 7.535 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001476/0.3803, allocations: 463.3 kB / 447.8 MB, free: 7.082 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004416/0.3847, allocations: 2.946 MB / 450.7 MB, free: 4.125 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002479/0.3872, allocations: 1.508 MB / 452.3 MB, free: 2.555 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002627/0.3899, allocations: 1.425 MB / 453.7 MB, free: 1.125 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003209/0.3931, allocations: 1.681 MB / 455.4 MB, free: 15.44 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006333/0.3937, allocations: 376 kB / 455.7 MB, free: 15.07 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001172/0.3949, allocations: 483.8 kB / 456.2 MB, free: 14.6 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001273/0.3961, allocations: 1.091 MB / 457.3 MB, free: 13.5 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001971/0.3981, allocations: 1.346 MB / 458.6 MB, free: 12.15 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006117/0.4042, allocations: 4.939 MB / 463.6 MB, free: 7.195 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.4042, allocations: 0 / 463.6 MB, free: 7.195 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.4042, allocations: 4 kB / 463.6 MB, free: 7.191 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001288/0.4044, allocations: 0 / 463.6 MB, free: 7.191 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.007767/0.4121, allocations: 3.398 MB / 467 MB, free: 3.742 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.86e-05/0.4122, allocations: 12.03 kB / 467 MB, free: 3.73 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00103/0.4132, allocations: 362.8 kB / 467.3 MB, free: 3.375 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003549/0.4168, allocations: 1.76 MB / 469.1 MB, free: 1.578 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001655/0.4169, allocations: 185.4 kB / 469.3 MB, free: 1.395 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003918/0.4173, allocations: 259.9 kB / 469.5 MB, free: 1.141 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005871/0.4232, allocations: 3.351 MB / 472.9 MB, free: 13.69 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.668e-05/0.4233, allocations: 19.88 kB / 472.9 MB, free: 13.67 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002248/0.4235, allocations: 104 kB / 473 MB, free: 13.57 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001603/0.4237, allocations: 124.9 kB / 473.1 MB, free: 13.45 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004992/0.4287, allocations: 2.74 MB / 475.9 MB, free: 10.69 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01775/0.4464, allocations: 9.032 MB / 484.9 MB, free: 1.309 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001864/0.4483, allocations: 1.062 MB / 486 MB, free: 244 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001246/0.4495, allocations: 0.7159 MB / 486.7 MB, free: 15.52 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002384/0.4498, allocations: 44.91 kB / 486.7 MB, free: 15.48 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.468e-05/0.4498, allocations: 51.5 kB / 486.8 MB, free: 15.41 MB / 398.1 MB Notification: Performance of pre-optimization done (n=98): time 3.266e-06/0.4498, allocations: 0 / 486.8 MB, free: 15.41 MB / 398.1 MB Notification: Performance of matching and sorting (n=123): time 0.016/0.4658, allocations: 6.633 MB / 493.4 MB, free: 8.746 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.021e-05/0.4659, allocations: 64.41 kB / 493.5 MB, free: 8.672 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003648/0.4695, allocations: 1.637 MB / 495.1 MB, free: 7.027 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001495/0.4697, allocations: 49.7 kB / 495.2 MB, free: 6.973 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001126/0.4708, allocations: 1.332 MB / 496.5 MB, free: 5.629 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005198/0.4713, allocations: 440.2 kB / 496.9 MB, free: 5.195 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005565/0.4719, allocations: 299.4 kB / 497.2 MB, free: 4.895 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001451/0.472, allocations: 309.1 kB / 497.5 MB, free: 4.59 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001387/0.4734, allocations: 0.7769 MB / 498.3 MB, free: 3.812 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00186/0.4753, allocations: 1.292 MB / 499.6 MB, free: 2.293 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003401/0.4787, allocations: 2.21 MB / 0.49 GB, free: 15.85 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.223e-05/0.4787, allocations: 4 kB / 0.49 GB, free: 15.84 MB / 414.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004684/0.4834, allocations: 2.467 MB / 0.4924 GB, free: 13.36 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.708e-05/0.4834, allocations: 12 kB / 0.4925 GB, free: 13.35 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.188e-05/0.4835, allocations: 16 kB / 0.4925 GB, free: 13.33 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007219/0.4842, allocations: 247.2 kB / 0.4927 GB, free: 13.08 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001517/0.4857, allocations: 415.7 kB / 0.4931 GB, free: 12.67 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003301/0.489, allocations: 2.981 MB / 0.496 GB, free: 9.484 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00178/0.4908, allocations: 131.8 kB / 0.4961 GB, free: 9.355 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002198/0.491, allocations: 68 kB / 0.4962 GB, free: 9.289 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * 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 (198): * Single equations (assignments): 194 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * 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): 2 systems {(2,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002009/0.493, allocations: 0.828 MB / 0.497 GB, free: 8.453 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006438/0.4936, allocations: 182.8 kB / 0.4972 GB, free: 8.273 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003935/0.4976, allocations: 2.022 MB / 0.4992 GB, free: 6.227 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-05/0.4976, allocations: 16 kB / 0.4992 GB, free: 6.211 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.827e-06/0.4976, allocations: 0 / 0.4992 GB, free: 6.211 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.36e-05/0.4976, allocations: 15.91 kB / 0.4992 GB, free: 6.195 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009602/0.5072, allocations: 4.107 MB / 0.5032 GB, free: 2.004 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.375e-05/0.5072, allocations: 7.984 kB / 0.5032 GB, free: 1.996 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001147/0.5084, allocations: 263.5 kB / 0.5035 GB, free: 1.738 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005997/0.509, allocations: 203.5 kB / 0.5037 GB, free: 1.527 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001041/0.5091, allocations: 24 kB / 0.5037 GB, free: 1.504 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003225/0.5123, allocations: 2.958 MB / 0.5066 GB, free: 14.34 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.5123, allocations: 0 / 0.5066 GB, free: 14.34 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005524/0.5178, allocations: 3.128 MB / 0.5096 GB, free: 11.16 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001413/0.5193, allocations: 334.7 kB / 0.5099 GB, free: 10.83 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005299/0.5198, allocations: 28.12 kB / 0.51 GB, free: 10.8 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001249/0.521, allocations: 99.86 kB / 0.5101 GB, free: 10.7 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001999/0.5212, allocations: 88.72 kB / 0.5102 GB, free: 10.62 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.925e-05/0.5213, allocations: 32 kB / 0.5102 GB, free: 10.59 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002571/0.5239, allocations: 1.106 MB / 0.5113 GB, free: 9.484 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5239, allocations: 0 / 0.5113 GB, free: 9.484 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00222/0.5261, allocations: 483.9 kB / 0.5117 GB, free: 9.012 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (121): * Single equations (assignments): 117 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * 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): 2 systems {(2,1,100.0%), (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.000517/0.5266, allocations: 186.9 kB / 0.5119 GB, free: 8.82 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004468/0.5311, allocations: 2.125 MB / 0.514 GB, free: 6.668 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.382e-05/0.5311, allocations: 4 kB / 0.514 GB, free: 6.664 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002079/0.5332, allocations: 1.118 MB / 0.5151 GB, free: 5.512 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003081/0.5363, allocations: 449.5 kB / 0.5155 GB, free: 5.086 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01124/0.5475, allocations: 5.005 MB / 0.5204 GB, free: 8 kB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002469/0.55, allocations: 1.408 MB / 0.5218 GB, free: 14.57 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008711/0.5509, allocations: 143.4 kB / 0.5219 GB, free: 14.43 MB / 446.1 MB Notification: Performance of SimCode: time 1.984e-06/0.5509, allocations: 0 / 0.5219 GB, free: 14.43 MB / 446.1 MB Notification: Performance of Templates: time 0.3295/0.8804, allocations: 83.13 MB / 0.6031 GB, free: 42.02 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.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.169455836061388]