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.001585/0.001585, allocations: 78.88 kB / 21.24 MB, free: 0.543 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.001931/0.001931, allocations: 161.1 kB / 24.5 MB, free: 3.719 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.433/1.433, allocations: 177.1 MB / 204.7 MB, free: 8.98 MB / 190.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.001941/0.001941, allocations: 66.41 kB / 325.5 MB, free: 176 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09493/0.09687, allocations: 53.39 MB / 378.9 MB, free: 15.44 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01257/0.1094, allocations: 10.06 MB / 389 MB, free: 5.332 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006568/0.116, allocations: 3.396 MB / 392.4 MB, free: 1.922 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001038/0.117, allocations: 87.38 kB / 392.5 MB, free: 1.836 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001861/0.1189, allocations: 0.8307 MB / 393.3 MB, free: 1 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002185/0.1211, allocations: 0.9786 MB / 394.3 MB, free: 16 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008443/0.1219, allocations: 439.4 kB / 394.7 MB, free: 15.59 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004066/0.126, allocations: 3.767 MB / 398.5 MB, free: 11.8 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002105/0.1281, allocations: 1.542 MB / 400 MB, free: 10.2 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002297/0.1304, allocations: 1.713 MB / 401.7 MB, free: 8.477 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002758/0.1332, allocations: 1.953 MB / 403.7 MB, free: 6.516 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005751/0.1337, allocations: 416 kB / 404.1 MB, free: 6.109 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009387/0.1347, allocations: 0.492 MB / 404.6 MB, free: 5.617 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001196/0.1359, allocations: 1.211 MB / 405.8 MB, free: 4.402 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001966/0.1378, allocations: 1.579 MB / 407.4 MB, free: 2.816 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005966/0.1438, allocations: 5.597 MB / 413 MB, free: 13.2 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.1438, allocations: 4 kB / 413 MB, free: 13.2 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.1438, allocations: 0 / 413 MB, free: 13.2 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001334/0.1439, allocations: 0 / 413 MB, free: 13.2 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.007554/0.1515, allocations: 3.84 MB / 416.8 MB, free: 9.301 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.547e-05/0.1515, allocations: 15.98 kB / 416.8 MB, free: 9.285 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009643/0.1525, allocations: 406.6 kB / 417.2 MB, free: 8.887 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003927/0.1564, allocations: 1.997 MB / 419.2 MB, free: 6.848 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002255/0.1567, allocations: 214.1 kB / 419.4 MB, free: 6.637 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004946/0.1572, allocations: 291.9 kB / 419.7 MB, free: 6.352 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007353/0.1645, allocations: 4.154 MB / 423.9 MB, free: 2.035 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.778e-05/0.1646, allocations: 19.88 kB / 423.9 MB, free: 2.016 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002684/0.1649, allocations: 123.9 kB / 424 MB, free: 1.895 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001389/0.165, allocations: 121.5 kB / 424.1 MB, free: 1.773 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005733/0.1707, allocations: 3.246 MB / 427.4 MB, free: 14.52 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01879/0.1895, allocations: 10.34 MB / 437.7 MB, free: 3.879 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002601/0.1921, allocations: 1.744 MB / 439.5 MB, free: 2.164 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002079/0.1942, allocations: 1.149 MB / 440.6 MB, free: 1.012 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002142/0.1944, allocations: 53.28 kB / 440.7 MB, free: 0.9609 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.819e-05/0.1945, allocations: 51.81 kB / 440.7 MB, free: 0.8984 MB / 398.1 MB Notification: Performance of pre-optimization done (n=136): time 3.787e-06/0.1945, allocations: 0 / 440.7 MB, free: 0.8984 MB / 398.1 MB Notification: Performance of matching and sorting (n=151): time 0.01402/0.2085, allocations: 6.512 MB / 447.2 MB, free: 10.34 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.571e-05/0.2085, allocations: 68.72 kB / 447.3 MB, free: 10.27 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002828/0.2114, allocations: 1.896 MB / 449.2 MB, free: 8.371 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001161/0.2115, allocations: 53.7 kB / 449.2 MB, free: 8.312 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001287/0.2128, allocations: 1.424 MB / 450.7 MB, free: 6.875 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004842/0.2132, allocations: 0.5345 MB / 451.2 MB, free: 6.336 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005417/0.2138, allocations: 347.4 kB / 451.5 MB, free: 5.988 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001277/0.2139, allocations: 309.1 kB / 451.8 MB, free: 5.684 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001362/0.2153, allocations: 0.8666 MB / 452.7 MB, free: 4.816 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001841/0.2171, allocations: 1.369 MB / 454.1 MB, free: 3.238 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003293/0.2204, allocations: 2.322 MB / 456.4 MB, free: 0.7109 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.149e-05/0.2204, allocations: 8 kB / 456.4 MB, free: 0.7031 MB / 414.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.005727/0.2262, allocations: 3.172 MB / 459.6 MB, free: 13.48 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.091e-05/0.2262, allocations: 16.09 kB / 459.6 MB, free: 13.47 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.52e-05/0.2262, allocations: 16 kB / 459.6 MB, free: 13.45 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002296/0.2285, allocations: 0.8365 MB / 460.4 MB, free: 12.58 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0012/0.2297, allocations: 347.4 kB / 460.8 MB, free: 12.24 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2284/0.4581, allocations: 19.11 MB / 479.9 MB, free: 75.86 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00193/0.4601, allocations: 96.02 kB / 480 MB, free: 75.86 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001961/0.4602, allocations: 74.12 kB / 480.1 MB, free: 75.86 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.001806/0.4621, allocations: 0.9414 MB / 481 MB, free: 75.71 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005509/0.4626, allocations: 210.9 kB / 481.2 MB, free: 75.71 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005002/0.4676, allocations: 2.536 MB / 483.7 MB, free: 74.71 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.113e-05/0.4676, allocations: 14.78 kB / 483.8 MB, free: 74.71 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.844e-05/0.4676, allocations: 7.484 kB / 483.8 MB, free: 74.71 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.281e-05/0.4677, allocations: 10.53 kB / 483.8 MB, free: 74.71 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009511/0.4772, allocations: 5.131 MB / 488.9 MB, free: 72.61 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.509e-05/0.4772, allocations: 4.562 kB / 488.9 MB, free: 72.61 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008145/0.478, allocations: 194.1 kB / 489.1 MB, free: 72.59 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001806/0.4798, allocations: 0.7286 MB / 489.8 MB, free: 72.36 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.557e-05/0.4799, allocations: 32.38 kB / 489.9 MB, free: 72.34 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01093/0.4908, allocations: 16.83 MB / 0.4948 GB, free: 58.33 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.4908, allocations: 6.781 kB / 0.4948 GB, free: 58.33 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004783/0.4956, allocations: 3.707 MB / 0.4984 GB, free: 56.31 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001131/0.4968, allocations: 400.9 kB / 0.4988 GB, free: 55.97 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002399/0.497, allocations: 32 kB / 0.4989 GB, free: 55.94 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009583/0.498, allocations: 107.6 kB / 0.499 GB, free: 55.84 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002959/0.4983, allocations: 148 kB / 0.4991 GB, free: 55.7 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.349e-05/0.4983, allocations: 47.98 kB / 0.4991 GB, free: 55.65 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001439/0.4998, allocations: 1.274 MB / 0.5004 GB, free: 54.39 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.4998, allocations: 0 / 0.5004 GB, free: 54.39 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002265/0.502, allocations: 0.6583 MB / 0.501 GB, free: 53.73 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.0003599/0.5024, allocations: 197 kB / 0.5012 GB, free: 53.54 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003759/0.5062, allocations: 3.367 MB / 0.5045 GB, free: 50.05 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 8.015e-06/0.5062, allocations: 4 kB / 0.5045 GB, free: 50.05 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001927/0.5081, allocations: 2.146 MB / 0.5066 GB, free: 47.79 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002683/0.5108, allocations: 0.606 MB / 0.5072 GB, free: 47.2 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00851/0.5193, allocations: 5.761 MB / 0.5128 GB, free: 41.4 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001439/0.5207, allocations: 1.742 MB / 0.5145 GB, free: 39.62 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001329/0.5221, allocations: 477.5 kB / 0.515 GB, free: 39.15 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002921/0.5224, allocations: 128.5 kB / 0.5151 GB, free: 39.03 MB / 430.1 MB Notification: Performance of SimCode: time 1.092e-06/0.5224, allocations: 0 / 0.5151 GB, free: 39.03 MB / 430.1 MB Notification: Performance of Templates: time 0.04941/0.5718, allocations: 38.17 MB / 0.5524 GB, free: 1.344 MB / 430.1 MB " [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 -s ida -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/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_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: 5.862872211029753]