Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.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.001336/0.001336, allocations: 71.75 kB / 21.24 MB, free: 396 kB / 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.00144/0.00144, allocations: 164.2 kB / 24.5 MB, free: 3.441 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.438/1.438, allocations: 177.2 MB / 204.9 MB, free: 9.062 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.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|tauElectrical|tauShaft|wMechanical",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|tauElectrical|tauShaft|wMechanical",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002639/0.002639, allocations: 52.2 kB / 325.6 MB, free: 272 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1362/0.1388, allocations: 53.34 MB / 378.9 MB, free: 15.69 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01362/0.1524, allocations: 10.04 MB / 389 MB, free: 5.602 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007193/0.1596, allocations: 3.396 MB / 392.4 MB, free: 2.191 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001727/0.1614, allocations: 91.31 kB / 392.5 MB, free: 2.102 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002433/0.1638, allocations: 0.8345 MB / 393.3 MB, free: 1.262 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002942/0.1667, allocations: 0.9786 MB / 394.3 MB, free: 284 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001245/0.168, allocations: 443.5 kB / 394.7 MB, free: 15.84 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004928/0.1729, allocations: 3.755 MB / 398.5 MB, free: 12.07 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002555/0.1755, allocations: 1.538 MB / 400 MB, free: 10.47 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002421/0.1779, allocations: 1.713 MB / 401.7 MB, free: 8.754 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002895/0.1808, allocations: 1.938 MB / 403.6 MB, free: 6.809 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006023/0.1814, allocations: 420 kB / 404.1 MB, free: 6.398 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009759/0.1824, allocations: 0.4998 MB / 404.6 MB, free: 5.898 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001266/0.1836, allocations: 1.204 MB / 405.8 MB, free: 4.691 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001913/0.1855, allocations: 1.575 MB / 407.3 MB, free: 3.109 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005651/0.1912, allocations: 5.601 MB / 412.9 MB, free: 13.49 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.1912, allocations: 4 kB / 412.9 MB, free: 13.48 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1912, allocations: 0 / 412.9 MB, free: 13.48 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.169e-05/0.1913, allocations: 0 / 412.9 MB, free: 13.48 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: 739 * Number of variables: 739 Notification: Performance of Generate backend data structure: time 0.006812/0.1981, allocations: 3.836 MB / 416.8 MB, free: 9.594 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.664e-05/0.1981, allocations: 12.03 kB / 416.8 MB, free: 9.582 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009174/0.199, allocations: 406.6 kB / 417.2 MB, free: 9.184 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003709/0.2027, allocations: 2.005 MB / 419.2 MB, free: 7.137 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001817/0.2029, allocations: 218.1 kB / 419.4 MB, free: 6.922 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004178/0.2033, allocations: 287.9 kB / 419.7 MB, free: 6.641 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006537/0.2099, allocations: 4.162 MB / 423.8 MB, free: 2.316 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.33e-05/0.2099, allocations: 11.89 kB / 423.9 MB, free: 2.305 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002634/0.2102, allocations: 120 kB / 424 MB, free: 2.188 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001341/0.2103, allocations: 117.5 kB / 424.1 MB, free: 2.07 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00559/0.2159, allocations: 3.25 MB / 427.3 MB, free: 14.81 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01805/0.234, allocations: 10.33 MB / 437.7 MB, free: 4.176 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002606/0.2366, allocations: 1.752 MB / 439.4 MB, free: 2.441 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002122/0.2387, allocations: 1.151 MB / 440.6 MB, free: 1.297 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002128/0.2389, allocations: 49.22 kB / 440.6 MB, free: 1.25 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.409e-05/0.239, allocations: 47.88 kB / 440.7 MB, free: 1.191 MB / 398.1 MB Notification: Performance of pre-optimization done (n=136): time 3.436e-06/0.239, allocations: 8 kB / 440.7 MB, free: 1.184 MB / 398.1 MB Notification: Performance of matching and sorting (n=151): time 0.01407/0.253, allocations: 6.508 MB / 447.2 MB, free: 10.62 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.268e-05/0.2531, allocations: 68.72 kB / 447.3 MB, free: 10.55 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00283/0.2559, allocations: 1.896 MB / 449.1 MB, free: 8.652 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001108/0.256, allocations: 53.7 kB / 449.2 MB, free: 8.594 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001189/0.2572, allocations: 1.42 MB / 450.6 MB, free: 7.16 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004877/0.2577, allocations: 0.5307 MB / 451.2 MB, free: 6.625 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005852/0.2583, allocations: 347.4 kB / 451.5 MB, free: 6.277 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001279/0.2584, allocations: 301.1 kB / 451.8 MB, free: 5.98 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001491/0.2599, allocations: 0.8744 MB / 452.7 MB, free: 5.105 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001866/0.2618, allocations: 1.365 MB / 454 MB, free: 3.531 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003447/0.2652, allocations: 2.33 MB / 456.4 MB, free: 0.9961 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.425e-05/0.2652, allocations: 4 kB / 456.4 MB, free: 0.9922 MB / 414.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.00601/0.2712, allocations: 3.18 MB / 459.5 MB, free: 13.77 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.834e-05/0.2713, allocations: 12 kB / 459.6 MB, free: 13.76 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.083e-05/0.2713, allocations: 16 kB / 459.6 MB, free: 13.74 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002439/0.2737, allocations: 0.8525 MB / 460.4 MB, free: 12.86 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001287/0.275, allocations: 343.4 kB / 460.8 MB, free: 12.52 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2215/0.4966, allocations: 19.1 MB / 479.9 MB, free: 76.73 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001714/0.4983, allocations: 93.16 kB / 479.9 MB, free: 76.73 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001823/0.4985, allocations: 76.86 kB / 480 MB, free: 76.73 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 2 (booleanReplicator3.y[3],booleanReplicator2.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (194): * Single equations (assignments): 183 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 11 systems {(2,9,100.0%), (1,6,100.0%), (1,3,100.0%), (1,4,100.0%), (1,3,100.0%), (1,4,100.0%), (1,3,100.0%), (1,4,100.0%), (2,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001688/0.5002, allocations: 0.9407 MB / 481 MB, free: 76.6 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004091/0.5006, allocations: 212.8 kB / 481.2 MB, free: 76.6 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004285/0.5049, allocations: 2.536 MB / 483.7 MB, free: 75.59 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.785e-05/0.5049, allocations: 14.5 kB / 483.7 MB, free: 75.59 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.847e-05/0.5049, allocations: 12.14 kB / 483.7 MB, free: 75.59 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.92e-05/0.5049, allocations: 8.031 kB / 483.7 MB, free: 75.59 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008024/0.5129, allocations: 5.133 MB / 488.9 MB, free: 73.5 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.486e-06/0.5129, allocations: 3.469 kB / 488.9 MB, free: 73.5 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007322/0.5137, allocations: 196 kB / 489.1 MB, free: 73.48 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00157/0.5153, allocations: 0.7208 MB / 489.8 MB, free: 73.25 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.124e-05/0.5153, allocations: 40.08 kB / 489.8 MB, free: 73.23 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01088/0.5262, allocations: 16.82 MB / 0.4948 GB, free: 59.23 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.549e-06/0.5262, allocations: 11.69 kB / 0.4948 GB, free: 59.23 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004573/0.5308, allocations: 3.702 MB / 0.4984 GB, free: 57.42 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009576/0.5317, allocations: 401.9 kB / 0.4988 GB, free: 57.09 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002177/0.532, allocations: 32 kB / 0.4988 GB, free: 57.06 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009978/0.533, allocations: 104.4 kB / 0.4989 GB, free: 56.96 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002708/0.5332, allocations: 148.9 kB / 0.4991 GB, free: 56.82 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.343e-05/0.5333, allocations: 43.98 kB / 0.4991 GB, free: 56.77 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001426/0.5347, allocations: 1.267 MB / 0.5003 GB, free: 55.52 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5347, allocations: 0 / 0.5003 GB, free: 55.52 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002106/0.5368, allocations: 0.6625 MB / 0.501 GB, free: 54.86 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],inertiaLoad.phi) * Number of discrete variables: 2 (booleanReplicator2.y[3],booleanReplicator3.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (118): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(2,9,100.0%), (1,1,100.0%), (1,6,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (2,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.0003101/0.5372, allocations: 199.8 kB / 0.5012 GB, free: 54.66 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003512/0.5407, allocations: 3.377 MB / 0.5045 GB, free: 51.17 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.191e-06/0.5407, allocations: 4 kB / 0.5045 GB, free: 51.17 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00185/0.5425, allocations: 2.141 MB / 0.5066 GB, free: 48.91 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002442/0.545, allocations: 0.6182 MB / 0.5072 GB, free: 48.32 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006556/0.5515, allocations: 5.753 MB / 0.5128 GB, free: 42.54 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001367/0.5529, allocations: 1.734 MB / 0.5145 GB, free: 40.77 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.00105/0.5539, allocations: 477.5 kB / 0.5149 GB, free: 40.3 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002879/0.5542, allocations: 132.5 kB / 0.5151 GB, free: 40.17 MB / 430.1 MB Notification: Performance of SimCode: time 6.71e-07/0.5542, allocations: 0 / 0.5151 GB, free: 40.17 MB / 430.1 MB Notification: Performance of Templates: time 0.04617/0.6004, allocations: 38.19 MB / 0.5524 GB, free: 2.555 MB / 430.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_ResistiveBraking/SMPM_ResistiveBraking.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.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.910113352001645]