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.001511/0.001511, allocations: 79.75 kB / 21.18 MB, free: 3.379 MB / 18.57 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.001696/0.001696, allocations: 161 kB / 24.56 MB, free: 12 kB / 18.57 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.029/1.029, allocations: 177.1 MB / 205 MB, free: 5.238 MB / 186.7 MB " [Timeout remaining time 179] 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.[0-9,]+.|smpm.idq_sr.[0-9,]+.|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.[0-9,]+.|smpm.idq_sr.[0-9,]+.|tauElectrical|tauShaft|wMechanical",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.543e-06/1.543e-06, allocations: 0 / 273 MB, free: 1.352 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.197e-05/2.351e-05, allocations: 2.312 kB / 273 MB, free: 1.348 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.00972/0.009743, allocations: 11.36 MB / 284.4 MB, free: 5.934 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006256/0.016, allocations: 3.548 MB / 287.9 MB, free: 2.371 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001271/0.01727, allocations: 83.44 kB / 288 MB, free: 2.289 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001702/0.01897, allocations: 0.8421 MB / 288.8 MB, free: 1.441 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002722/0.02169, allocations: 1.013 MB / 289.8 MB, free: 432 kB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.1356/0.1573, allocations: 433.6 kB / 290.3 MB, free: 16.06 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.005584/0.1629, allocations: 3.875 MB / 294.1 MB, free: 15.2 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003048/0.1659, allocations: 1.548 MB / 295.7 MB, free: 15.01 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0054/0.1713, allocations: 2.489 MB / 298.2 MB, free: 14.82 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003741/0.1751, allocations: 1.9 MB / 300.1 MB, free: 14.3 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001302/0.1764, allocations: 419.4 kB / 300.5 MB, free: 14.3 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001358/0.1777, allocations: 0.4908 MB / 301 MB, free: 14.29 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001107/0.1788, allocations: 1.266 MB / 302.2 MB, free: 13.64 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002838/0.1817, allocations: 1.362 MB / 303.6 MB, free: 13.06 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004115/0.1858, allocations: 3.177 MB / 306.8 MB, free: 11.78 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/0.1858, allocations: 4.844 kB / 306.8 MB, free: 11.78 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.522e-06/0.1858, allocations: 0 / 306.8 MB, free: 11.78 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001564/0.1859, allocations: 0 / 306.8 MB, free: 11.78 MB / 266.7 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.005597/0.1915, allocations: 4.04 MB / 310.8 MB, free: 9.406 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.561e-05/0.1916, allocations: 10.81 kB / 310.8 MB, free: 9.406 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001078/0.1927, allocations: 0.637 MB / 311.5 MB, free: 8.906 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002767/0.1954, allocations: 1.899 MB / 313.4 MB, free: 7.062 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001246/0.1956, allocations: 214 kB / 313.6 MB, free: 6.855 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003199/0.1959, allocations: 288.3 kB / 313.9 MB, free: 6.574 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003535/0.1994, allocations: 2.53 MB / 316.4 MB, free: 3.879 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.11e-05/0.1995, allocations: 11.89 kB / 316.4 MB, free: 3.867 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001958/0.1997, allocations: 119.9 kB / 316.5 MB, free: 3.75 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.865e-05/0.1998, allocations: 121.5 kB / 316.6 MB, free: 3.629 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002494/0.2023, allocations: 1.074 MB / 317.7 MB, free: 2.555 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01309/0.2154, allocations: 9.976 MB / 327.7 MB, free: 8.527 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00151/0.2169, allocations: 1.071 MB / 328.8 MB, free: 7.5 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009517/0.2178, allocations: 0.6602 MB / 329.4 MB, free: 6.844 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000186/0.218, allocations: 57.28 kB / 329.5 MB, free: 6.789 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.935e-05/0.218, allocations: 60.2 kB / 329.5 MB, free: 6.727 MB / 282.7 MB Notification: Performance of pre-optimization done (n=136): time 4.759e-06/0.218, allocations: 4 kB / 329.5 MB, free: 6.723 MB / 282.7 MB Notification: Performance of matching and sorting (n=151): time 0.007138/0.2252, allocations: 3.87 MB / 333.4 MB, free: 2.828 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.114e-05/0.2252, allocations: 68.72 kB / 333.5 MB, free: 2.746 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001887/0.2271, allocations: 1.672 MB / 335.2 MB, free: 1.066 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 9.031e-05/0.2272, allocations: 49.7 kB / 335.2 MB, free: 1.012 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008582/0.2281, allocations: 1.513 MB / 336.7 MB, free: 15.49 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003643/0.2284, allocations: 0.5421 MB / 337.3 MB, free: 14.95 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000397/0.2288, allocations: 372.1 kB / 337.6 MB, free: 14.58 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001209/0.2289, allocations: 480.7 kB / 338.1 MB, free: 14.11 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005033/0.2294, allocations: 274.8 kB / 338.4 MB, free: 13.84 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008052/0.2302, allocations: 0.978 MB / 339.3 MB, free: 12.59 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001403/0.2316, allocations: 1.404 MB / 340.7 MB, free: 10.97 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.071e-05/0.2317, allocations: 4 kB / 340.7 MB, free: 10.96 MB / 298.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.002742/0.2344, allocations: 1.859 MB / 342.6 MB, free: 9.172 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.914e-05/0.2344, allocations: 14.34 kB / 342.6 MB, free: 9.16 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.179e-05/0.2345, allocations: 20.03 kB / 342.6 MB, free: 9.141 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001399/0.2359, allocations: 0.6221 MB / 343.3 MB, free: 8.477 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000693/0.2365, allocations: 344.9 kB / 343.6 MB, free: 8.164 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01154/0.2481, allocations: 21.8 MB / 365.4 MB, free: 1.133 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001282/0.2494, allocations: 103.8 kB / 365.5 MB, free: 1.031 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001293/0.2495, allocations: 76 kB / 365.6 MB, free: 0.957 MB / 314.7 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.000768/0.2503, allocations: 268.4 kB / 365.8 MB, free: 0.707 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003655/0.2506, allocations: 258.7 kB / 366.1 MB, free: 464 kB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002396/0.253, allocations: 1.394 MB / 367.5 MB, free: 15.03 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.256e-05/0.253, allocations: 15.94 kB / 367.5 MB, free: 15.01 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.666e-05/0.2531, allocations: 8 kB / 367.5 MB, free: 15 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.278e-05/0.2531, allocations: 7.969 kB / 367.5 MB, free: 15 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006475/0.2595, allocations: 3.974 MB / 371.5 MB, free: 10.94 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.123e-06/0.2595, allocations: 0 / 371.5 MB, free: 10.94 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005866/0.2601, allocations: 199.1 kB / 371.7 MB, free: 10.76 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00141/0.2615, allocations: 0.5285 MB / 372.2 MB, free: 10.19 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.811e-05/0.2616, allocations: 35.98 kB / 372.2 MB, free: 10.16 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01072/0.2724, allocations: 19.1 MB / 391.3 MB, free: 5.93 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.15e-06/0.2724, allocations: 4 kB / 391.3 MB, free: 5.926 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003449/0.2758, allocations: 1.995 MB / 393.3 MB, free: 3.832 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008748/0.2767, allocations: 370.5 kB / 393.7 MB, free: 3.469 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002004/0.2769, allocations: 32 kB / 393.7 MB, free: 3.438 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003741/0.2806, allocations: 107.9 kB / 393.8 MB, free: 3.332 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002823/0.2809, allocations: 132.4 kB / 394 MB, free: 3.203 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.53e-05/0.281, allocations: 47.98 kB / 394 MB, free: 3.156 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001256/0.2823, allocations: 0.9353 MB / 394.9 MB, free: 2.23 MB / 346.7 MB Notification: Performance of sort global known variables: time 9e-08/0.2823, allocations: 0 / 394.9 MB, free: 2.23 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.005119/0.2874, allocations: 0.6523 MB / 395.6 MB, free: 1.578 MB / 346.7 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.0003761/0.2877, allocations: 207.2 kB / 395.8 MB, free: 1.383 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.006096/0.2938, allocations: 3.036 MB / 398.8 MB, free: 14.21 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.252e-06/0.2938, allocations: 4 kB / 398.8 MB, free: 14.21 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004749/0.2986, allocations: 2.308 MB / 401.1 MB, free: 11.75 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001993/0.3006, allocations: 0.6256 MB / 401.8 MB, free: 11.14 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0168/0.3174, allocations: 4.919 MB / 406.7 MB, free: 6.133 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007992/0.3182, allocations: 0.7943 MB / 407.5 MB, free: 5.316 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0009986/0.3192, allocations: 401.5 kB / 407.9 MB, free: 4.922 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003323/0.3225, allocations: 132 kB / 408 MB, free: 4.797 MB / 362.7 MB Notification: Performance of SimCode: time 1.934e-06/0.3225, allocations: 0 / 408 MB, free: 4.797 MB / 362.7 MB Notification: Performance of Templates: time 0.1724/0.495, allocations: 38.25 MB / 446.3 MB, free: 109 MB / 378.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_ResistiveBraking/SMPM_ResistiveBraking.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.177205072250217]