Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.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.001372/0.001372, allocations: 116.7 kB / 19.18 MB, free: 3.762 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.001693/0.001693, allocations: 210.6 kB / 22.13 MB, free: 0.8125 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.566/1.566, allocations: 230.2 MB / 255.1 MB, free: 15.41 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_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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002074/0.002074, allocations: 63.89 kB / 374.5 MB, free: 9.918 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.159/0.161, allocations: 53.31 MB / 427.9 MB, free: 4.504 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01645/0.1775, allocations: 11.51 MB / 439.4 MB, free: 8.941 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.008645/0.1861, allocations: 3.602 MB / 443 MB, free: 5.324 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001843/0.188, allocations: 71.69 kB / 443 MB, free: 5.254 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003092/0.1911, allocations: 0.8891 MB / 443.9 MB, free: 4.359 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004026/0.1951, allocations: 0.9825 MB / 444.9 MB, free: 3.371 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001465/0.1966, allocations: 435.4 kB / 445.3 MB, free: 2.945 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.2686/0.4651, allocations: 3.762 MB / 449.1 MB, free: 9.949 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003484/0.4686, allocations: 2.098 MB / 451.2 MB, free: 9.691 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003178/0.4718, allocations: 1.678 MB / 452.9 MB, free: 9.551 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003856/0.4756, allocations: 2.016 MB / 454.9 MB, free: 9.223 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001042/0.4767, allocations: 417.9 kB / 455.3 MB, free: 9.223 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001833/0.4785, allocations: 0.5061 MB / 455.8 MB, free: 9.219 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001644/0.4802, allocations: 1.21 MB / 457 MB, free: 9.082 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003329/0.4835, allocations: 1.934 MB / 458.9 MB, free: 8.578 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00873/0.4922, allocations: 5.568 MB / 464.5 MB, free: 6.723 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.561e-06/0.4922, allocations: 4 kB / 464.5 MB, free: 6.719 MB / 366.1 MB Notification: Performance of FrontEnd: time 4.459e-06/0.4922, allocations: 0 / 464.5 MB, free: 6.719 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002705/0.4925, allocations: 0 / 464.5 MB, free: 6.719 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: 739 * Number of variables: 739 Notification: Performance of Generate backend data structure: time 0.01026/0.5028, allocations: 3.91 MB / 468.4 MB, free: 4.527 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.703e-05/0.5028, allocations: 13.66 kB / 468.4 MB, free: 4.523 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00133/0.5041, allocations: 406.2 kB / 468.8 MB, free: 4.328 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004476/0.5086, allocations: 2.071 MB / 470.9 MB, free: 3.305 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001558/0.5088, allocations: 214.3 kB / 471.1 MB, free: 3.207 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005259/0.5093, allocations: 284.3 kB / 471.4 MB, free: 3.113 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008035/0.5173, allocations: 3.864 MB / 475.3 MB, free: 1.305 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.571e-05/0.5174, allocations: 6.766 kB / 475.3 MB, free: 1.301 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003004/0.5177, allocations: 117.8 kB / 475.4 MB, free: 1.211 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000188/0.5179, allocations: 125.3 kB / 475.5 MB, free: 1.191 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006689/0.5246, allocations: 3.258 MB / 478.8 MB, free: 15.53 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.025/0.5496, allocations: 11.8 MB / 490.6 MB, free: 7.27 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004193/0.5538, allocations: 3.551 MB / 494.1 MB, free: 4.09 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002464/0.5562, allocations: 1.154 MB / 495.3 MB, free: 3.293 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003587/0.5566, allocations: 122.4 kB / 495.4 MB, free: 3.152 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.136e-05/0.5567, allocations: 56.73 kB / 495.4 MB, free: 3.09 MB / 382.1 MB Notification: Performance of pre-optimization done (n=136): time 3.266e-06/0.5567, allocations: 4 kB / 495.4 MB, free: 3.086 MB / 382.1 MB Notification: Performance of matching and sorting (n=151): time 0.01966/0.5763, allocations: 7.35 MB / 0.491 GB, free: 11.53 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.677e-05/0.5764, allocations: 68.72 kB / 0.4911 GB, free: 11.45 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004365/0.5808, allocations: 2.064 MB / 0.4931 GB, free: 9.348 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003297/0.5811, allocations: 57.7 kB / 0.4931 GB, free: 9.285 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001509/0.5826, allocations: 1.403 MB / 0.4945 GB, free: 7.879 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007023/0.5833, allocations: 0.5392 MB / 0.495 GB, free: 7.352 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008531/0.5841, allocations: 347.4 kB / 0.4954 GB, free: 7.004 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001513/0.5843, allocations: 309.1 kB / 0.4957 GB, free: 6.699 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001721/0.586, allocations: 0.8666 MB / 0.4965 GB, free: 5.832 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002316/0.5883, allocations: 1.371 MB / 0.4979 GB, free: 4.262 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004151/0.5925, allocations: 2.324 MB / 0.5001 GB, free: 1.785 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.016e-05/0.5925, allocations: 6.156 kB / 0.5001 GB, free: 1.781 MB / 398.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.007753/0.6003, allocations: 3.275 MB / 0.5033 GB, free: 14.55 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.724e-05/0.6003, allocations: 12 kB / 0.5033 GB, free: 14.54 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.512e-05/0.6003, allocations: 14.16 kB / 0.5034 GB, free: 14.53 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003081/0.6034, allocations: 0.8517 MB / 0.5042 GB, free: 13.66 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001492/0.6049, allocations: 339.8 kB / 0.5045 GB, free: 13.35 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02533/0.6302, allocations: 20.6 MB / 0.5246 GB, free: 7.355 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002628/0.6328, allocations: 91.88 kB / 0.5247 GB, free: 7.266 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003396/0.6332, allocations: 76 kB / 0.5248 GB, free: 7.191 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.002551/0.6357, allocations: 0.9384 MB / 0.5257 GB, free: 6.266 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008112/0.6365, allocations: 226.6 kB / 0.5259 GB, free: 6.043 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005935/0.6425, allocations: 2.618 MB / 0.5285 GB, free: 3.387 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.424e-05/0.6425, allocations: 16 kB / 0.5285 GB, free: 3.371 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.683e-05/0.6425, allocations: 8 kB / 0.5285 GB, free: 3.363 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.275e-05/0.6426, allocations: 11.97 kB / 0.5285 GB, free: 3.352 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01348/0.6561, allocations: 5.867 MB / 0.5342 GB, free: 13.39 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.231e-05/0.6561, allocations: 4 kB / 0.5342 GB, free: 13.39 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009203/0.657, allocations: 193.6 kB / 0.5344 GB, free: 13.21 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002587/0.6596, allocations: 0.7379 MB / 0.5351 GB, free: 12.45 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002476/0.6598, allocations: 35.98 kB / 0.5352 GB, free: 12.41 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02223/0.6821, allocations: 18.17 MB / 0.5529 GB, free: 8.945 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.621e-06/0.6821, allocations: 4.109 kB / 0.5529 GB, free: 8.941 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008225/0.6903, allocations: 3.799 MB / 0.5566 GB, free: 5.055 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00188/0.6922, allocations: 495.5 kB / 0.5571 GB, free: 4.551 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005646/0.6927, allocations: 39.94 kB / 0.5571 GB, free: 4.512 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001576/0.6943, allocations: 103.9 kB / 0.5572 GB, free: 4.41 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005722/0.6949, allocations: 143.8 kB / 0.5574 GB, free: 4.277 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001169/0.695, allocations: 44 kB / 0.5574 GB, free: 4.234 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003273/0.6983, allocations: 1.404 MB / 0.5588 GB, free: 2.809 MB / 462.1 MB Notification: Performance of sort global known variables: time 9e-08/0.6983, allocations: 0 / 0.5588 GB, free: 2.809 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004517/0.7028, allocations: 0.6601 MB / 0.5594 GB, free: 2.148 MB / 462.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.0006661/0.7034, allocations: 212.5 kB / 0.5596 GB, free: 1.941 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006822/0.7103, allocations: 3.362 MB / 0.5629 GB, free: 14.5 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.875e-06/0.7103, allocations: 0 / 0.5629 GB, free: 14.5 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003644/0.7139, allocations: 2.149 MB / 0.565 GB, free: 12.26 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004517/0.7184, allocations: 0.6836 MB / 0.5657 GB, free: 11.59 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01462/0.7331, allocations: 5.776 MB / 0.5713 GB, free: 5.758 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003053/0.7361, allocations: 2.248 MB / 0.5735 GB, free: 3.48 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008312/0.7369, allocations: 139.4 kB / 0.5737 GB, free: 3.344 MB / 478.1 MB Notification: Performance of SimCode: time 1.683e-06/0.7369, allocations: 4 kB / 0.5737 GB, free: 3.34 MB / 478.1 MB Notification: Performance of Templates: time 0.4105/1.147, allocations: 188.6 MB / 0.7579 GB, free: 82.32 MB / 0.5294 GB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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_2/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 16.90242046606727]