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.001414/0.001414, allocations: 83.59 kB / 21.18 MB, free: 3.383 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.001378/0.001378, allocations: 165 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 0.9776/0.9776, allocations: 177.1 MB / 205 MB, free: 5.621 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.563e-06/1.563e-06, allocations: 0 / 273 MB, free: 1.52 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.15e-05/2.306e-05, allocations: 2.312 kB / 273 MB, free: 1.516 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.009969/0.009992, allocations: 11.36 MB / 284.4 MB, free: 6.105 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00599/0.01598, allocations: 3.548 MB / 287.9 MB, free: 2.543 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001091/0.01707, allocations: 87.44 kB / 288 MB, free: 2.457 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001859/0.01893, allocations: 0.8421 MB / 288.8 MB, free: 1.609 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00191/0.02084, allocations: 1.013 MB / 289.8 MB, free: 0.5898 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006658/0.02151, allocations: 451.2 kB / 290.3 MB, free: 152 kB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1367/0.1582, allocations: 3.865 MB / 294.2 MB, free: 14.77 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001653/0.1599, allocations: 1.547 MB / 295.7 MB, free: 14.57 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002769/0.1626, allocations: 2.547 MB / 298.2 MB, free: 14.39 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002091/0.1647, allocations: 1.873 MB / 300.1 MB, free: 14.16 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005725/0.1653, allocations: 412.4 kB / 300.5 MB, free: 14.16 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007565/0.1661, allocations: 0.4886 MB / 301 MB, free: 14.15 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000737/0.1668, allocations: 1.237 MB / 302.2 MB, free: 13.51 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001286/0.1681, allocations: 1.345 MB / 303.6 MB, free: 12.94 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002219/0.1703, allocations: 3.154 MB / 306.7 MB, free: 11.66 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.1703, allocations: 0 / 306.7 MB, free: 11.66 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1703, allocations: 4.328 kB / 306.8 MB, free: 11.66 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.439e-05/0.1703, allocations: 0 / 306.8 MB, free: 11.66 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.003594/0.1739, allocations: 4.011 MB / 310.8 MB, free: 9.324 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.789e-05/0.174, allocations: 11.41 kB / 310.8 MB, free: 9.324 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009085/0.1749, allocations: 0.6375 MB / 311.4 MB, free: 8.926 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001682/0.1766, allocations: 1.904 MB / 313.3 MB, free: 7.082 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.906e-05/0.1766, allocations: 214.1 kB / 313.5 MB, free: 6.871 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002251/0.1769, allocations: 284.3 kB / 313.8 MB, free: 6.594 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002468/0.1793, allocations: 2.528 MB / 316.3 MB, free: 3.902 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.16e-05/0.1794, allocations: 2.906 kB / 316.3 MB, free: 3.902 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001587/0.1795, allocations: 127.9 kB / 316.5 MB, free: 3.777 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.48e-05/0.1796, allocations: 125.5 kB / 316.6 MB, free: 3.652 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001684/0.1813, allocations: 1.062 MB / 317.6 MB, free: 2.59 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009311/0.1906, allocations: 9.93 MB / 327.6 MB, free: 8.613 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001282/0.1919, allocations: 1.096 MB / 328.7 MB, free: 7.57 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001067/0.193, allocations: 0.6677 MB / 329.3 MB, free: 6.902 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001639/0.1931, allocations: 55.94 kB / 329.4 MB, free: 6.852 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.674e-05/0.1932, allocations: 50.7 kB / 329.4 MB, free: 6.793 MB / 282.7 MB Notification: Performance of pre-optimization done (n=136): time 2.635e-06/0.1932, allocations: 0 / 329.4 MB, free: 6.793 MB / 282.7 MB Notification: Performance of matching and sorting (n=151): time 0.006199/0.1994, allocations: 3.849 MB / 333.3 MB, free: 2.922 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.646e-05/0.1994, allocations: 68.66 kB / 333.4 MB, free: 2.84 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001508/0.2009, allocations: 1.676 MB / 335 MB, free: 1.156 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.809e-05/0.201, allocations: 49.7 kB / 335.1 MB, free: 1.102 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007413/0.2017, allocations: 1.514 MB / 336.6 MB, free: 15.57 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002935/0.202, allocations: 0.5487 MB / 337.1 MB, free: 15.04 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003575/0.2024, allocations: 367.5 kB / 337.5 MB, free: 14.67 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001084/0.2025, allocations: 480.7 kB / 338 MB, free: 14.2 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004518/0.2029, allocations: 271.8 kB / 338.2 MB, free: 13.93 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007482/0.2037, allocations: 0.9782 MB / 339.2 MB, free: 12.67 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001564/0.2052, allocations: 1.406 MB / 340.6 MB, free: 11.05 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.548e-06/0.2053, allocations: 4 kB / 340.6 MB, free: 11.04 MB / 298.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.002362/0.2076, allocations: 1.856 MB / 342.5 MB, free: 9.258 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.044e-05/0.2076, allocations: 12 kB / 342.5 MB, free: 9.246 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.546e-05/0.2077, allocations: 16 kB / 342.5 MB, free: 9.23 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001313/0.209, allocations: 0.615 MB / 343.1 MB, free: 8.578 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006346/0.2096, allocations: 344.4 kB / 343.5 MB, free: 8.266 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009815/0.2194, allocations: 21.72 MB / 365.2 MB, free: 1.316 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007628/0.2202, allocations: 91.88 kB / 365.3 MB, free: 1.227 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.183e-05/0.2203, allocations: 79.94 kB / 365.3 MB, free: 1.148 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%), (1,2,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.0005693/0.2208, allocations: 272.3 kB / 365.6 MB, free: 0.8945 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002425/0.2211, allocations: 262.7 kB / 365.9 MB, free: 0.6367 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001728/0.2228, allocations: 1.383 MB / 367.3 MB, free: 15.22 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.475e-06/0.2228, allocations: 16 kB / 367.3 MB, free: 15.2 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.157e-05/0.2228, allocations: 15.94 kB / 367.3 MB, free: 15.19 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.287e-06/0.2228, allocations: 7.969 kB / 367.3 MB, free: 15.18 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004704/0.2275, allocations: 3.959 MB / 371.3 MB, free: 11.14 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.73e-06/0.2276, allocations: 4 kB / 371.3 MB, free: 11.13 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004103/0.228, allocations: 193.8 kB / 371.4 MB, free: 10.96 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001037/0.229, allocations: 0.5233 MB / 372 MB, free: 10.4 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.934e-05/0.2291, allocations: 32 kB / 372 MB, free: 10.37 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008258/0.2373, allocations: 19.01 MB / 391 MB, free: 6.219 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/0.2373, allocations: 7.562 kB / 391 MB, free: 6.215 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00229/0.2396, allocations: 1.993 MB / 393 MB, free: 4.121 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004791/0.2401, allocations: 366.5 kB / 393.4 MB, free: 3.762 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000142/0.2402, allocations: 36.03 kB / 393.4 MB, free: 3.727 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004989/0.2407, allocations: 107.9 kB / 393.5 MB, free: 3.621 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002338/0.241, allocations: 132.5 kB / 393.6 MB, free: 3.496 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.087e-05/0.241, allocations: 47.98 kB / 393.7 MB, free: 3.449 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000939/0.242, allocations: 0.9353 MB / 394.6 MB, free: 2.523 MB / 346.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.242, allocations: 0 / 394.6 MB, free: 2.523 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001679/0.2437, allocations: 0.6484 MB / 395.3 MB, free: 1.875 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%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002929/0.2439, allocations: 208 kB / 395.5 MB, free: 1.68 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002682/0.2466, allocations: 3.008 MB / 398.5 MB, free: 14.54 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.2466, allocations: 4 kB / 398.5 MB, free: 14.53 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001318/0.2479, allocations: 2.286 MB / 400.8 MB, free: 12.09 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00144/0.2494, allocations: 0.6283 MB / 401.4 MB, free: 11.49 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006025/0.2554, allocations: 4.916 MB / 406.3 MB, free: 6.484 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006301/0.256, allocations: 0.7981 MB / 407.1 MB, free: 5.664 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0006944/0.2567, allocations: 393.5 kB / 407.5 MB, free: 5.277 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002346/0.257, allocations: 132.5 kB / 407.6 MB, free: 5.148 MB / 362.7 MB Notification: Performance of SimCode: time 1.082e-06/0.257, allocations: 0 / 407.6 MB, free: 5.148 MB / 362.7 MB Notification: Performance of Templates: time 0.141/0.398, allocations: 39.57 MB / 447.2 MB, free: 108.7 MB / 378.7 MB " [Timeout remaining time 660] 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: 3.8032866222783923]