Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001116/0.001116, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001702/0.002819, allocations: 449.7 kB / 10.37 MB, free: 332 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001014/0.001014, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001407/0.002421, allocations: 459.6 kB / 11.69 MB, free: 2.48 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9835/0.9835, allocations: 173.4 MB / 185.8 MB, free: 8.992 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09165/1.075, allocations: 52.5 MB / 238.3 MB, free: 4.434 MB / 234.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.493e-06/1.493e-06, allocations: 0 / 239.6 MB, free: 3.172 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.808e-05/1.958e-05, allocations: 6.312 kB / 239.6 MB, free: 3.164 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.009354/0.009374, allocations: 11.13 MB / 250.7 MB, free: 7.988 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.007068/0.01644, allocations: 3.644 MB / 254.3 MB, free: 4.328 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002156/0.0186, allocations: 87.38 kB / 254.4 MB, free: 4.242 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001996/0.02059, allocations: 0.8461 MB / 255.3 MB, free: 3.391 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00254/0.02313, allocations: 1.009 MB / 256.3 MB, free: 2.375 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00101/0.02414, allocations: 443.2 kB / 256.7 MB, free: 1.941 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.003906/0.02805, allocations: 3.887 MB / 260.6 MB, free: 14.04 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002313/0.03036, allocations: 1.589 MB / 262.2 MB, free: 12.37 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00401/0.03437, allocations: 2.745 MB / 264.9 MB, free: 9.602 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0024/0.03677, allocations: 1.855 MB / 266.8 MB, free: 7.742 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009256/0.0377, allocations: 412 kB / 267.2 MB, free: 7.34 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009861/0.03868, allocations: 0.4959 MB / 267.7 MB, free: 6.844 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007532/0.03944, allocations: 1.017 MB / 268.7 MB, free: 5.824 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001764/0.0412, allocations: 1.104 MB / 269.8 MB, free: 4.719 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002801/0.044, allocations: 2.948 MB / 272.8 MB, free: 1.762 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.54e-05/0.04402, allocations: 0 / 272.8 MB, free: 1.762 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.04402, allocations: 0 / 272.8 MB, free: 1.762 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001284/0.04415, allocations: 0 / 272.8 MB, free: 1.762 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.1155/0.1597, allocations: 4.267 MB / 277 MB, free: 24.7 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.133e-05/0.1597, allocations: 9.656 kB / 277 MB, free: 24.7 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001155/0.1609, allocations: 0.582 MB / 277.6 MB, free: 24.61 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002134/0.163, allocations: 1.376 MB / 279 MB, free: 24.23 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001236/0.1631, allocations: 215.8 kB / 279.2 MB, free: 24.22 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002854/0.1634, allocations: 284.5 kB / 279.5 MB, free: 24.22 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002861/0.1663, allocations: 2.367 MB / 281.8 MB, free: 23.56 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.313e-05/0.1663, allocations: 10.75 kB / 281.9 MB, free: 23.56 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001626/0.1665, allocations: 122.8 kB / 282 MB, free: 23.55 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001226/0.1666, allocations: 121.5 kB / 282.1 MB, free: 23.55 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001479/0.1681, allocations: 0.8538 MB / 282.9 MB, free: 23.45 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007518/0.1756, allocations: 7.769 MB / 290.7 MB, free: 19.45 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007851/0.1764, allocations: 0.9841 MB / 291.7 MB, free: 19.09 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005665/0.177, allocations: 0.5491 MB / 292.2 MB, free: 19.01 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001237/0.1771, allocations: 54.89 kB / 292.3 MB, free: 19 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.446e-05/0.1771, allocations: 47.45 kB / 292.3 MB, free: 18.96 MB / 266.7 MB Notification: Performance of pre-optimization done (n=136): time 2.625e-06/0.1771, allocations: 0 / 292.3 MB, free: 18.96 MB / 266.7 MB Notification: Performance of matching and sorting (n=151): time 0.004547/0.1817, allocations: 3.107 MB / 295.5 MB, free: 16.43 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.314e-05/0.1817, allocations: 72.66 kB / 295.5 MB, free: 16.34 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007835/0.1825, allocations: 1.327 MB / 296.9 MB, free: 15.27 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.555e-05/0.1825, allocations: 53.7 kB / 296.9 MB, free: 15.21 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002991/0.1828, allocations: 1.163 MB / 298.1 MB, free: 14.12 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001788/0.183, allocations: 0.5342 MB / 298.6 MB, free: 13.61 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002569/0.1833, allocations: 331.7 kB / 298.9 MB, free: 13.33 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 2.583e-05/0.1833, allocations: 305.1 kB / 299.2 MB, free: 13.03 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002358/0.1835, allocations: 210.7 kB / 299.4 MB, free: 12.82 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003371/0.1839, allocations: 0.6847 MB / 300.1 MB, free: 11.98 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006966/0.1846, allocations: 1.092 MB / 301.2 MB, free: 10.73 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.462e-06/0.1846, allocations: 4 kB / 301.2 MB, free: 10.73 MB / 266.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.001454/0.186, allocations: 1.405 MB / 302.6 MB, free: 9.277 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.918e-05/0.1861, allocations: 12 kB / 302.6 MB, free: 9.266 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.3e-05/0.1861, allocations: 12 kB / 302.6 MB, free: 9.254 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001044/0.1871, allocations: 0.5774 MB / 303.2 MB, free: 8.648 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000631/0.1877, allocations: 375.5 kB / 303.6 MB, free: 8.281 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006007/0.1937, allocations: 15.32 MB / 318.9 MB, free: 8.035 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001073/0.1948, allocations: 55.95 kB / 319 MB, free: 7.98 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001068/0.1949, allocations: 63.98 kB / 319 MB, free: 7.918 MB / 282.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.0007521/0.1957, allocations: 236.1 kB / 319.3 MB, free: 7.676 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002668/0.1959, allocations: 175.8 kB / 319.4 MB, free: 7.504 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001429/0.1974, allocations: 1.105 MB / 320.5 MB, free: 6.359 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.264e-05/0.1974, allocations: 16 kB / 320.5 MB, free: 6.344 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.285e-05/0.1974, allocations: 8 kB / 320.6 MB, free: 6.336 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.485e-05/0.1974, allocations: 7.969 kB / 320.6 MB, free: 6.328 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003907/0.2013, allocations: 3.158 MB / 323.7 MB, free: 3.113 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.993e-06/0.2013, allocations: 4.469 kB / 323.7 MB, free: 3.109 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004587/0.2018, allocations: 215.7 kB / 323.9 MB, free: 2.898 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005187/0.2023, allocations: 262.5 kB / 324.2 MB, free: 2.641 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00111/0.2034, allocations: 0.5556 MB / 324.7 MB, free: 2.043 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.7e-05/0.2035, allocations: 32 kB / 324.8 MB, free: 2.012 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006355/0.2098, allocations: 13.25 MB / 338 MB, free: 3.812 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.502e-06/0.2098, allocations: 6.016 kB / 338 MB, free: 3.809 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0024/0.2122, allocations: 1.55 MB / 339.6 MB, free: 2.137 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003176/0.2126, allocations: 35.98 kB / 339.6 MB, free: 2.102 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005318/0.2131, allocations: 71.97 kB / 339.7 MB, free: 2.031 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002285/0.2133, allocations: 136.9 kB / 339.8 MB, free: 1.898 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.926e-05/0.2134, allocations: 32 kB / 339.9 MB, free: 1.867 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0007247/0.2141, allocations: 0.6676 MB / 340.5 MB, free: 1.207 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.2141, allocations: 1.859 kB / 340.5 MB, free: 1.207 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001914/0.216, allocations: 0.6523 MB / 341.2 MB, free: 0.5547 MB / 298.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.0003148/0.2163, allocations: 184.1 kB / 341.4 MB, free: 376 kB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001874/0.2182, allocations: 2.199 MB / 343.6 MB, free: 14.03 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.787e-05/0.2183, allocations: 45.41 kB / 343.6 MB, free: 13.98 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001144/0.2194, allocations: 1.654 MB / 345.3 MB, free: 12.2 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001602/0.221, allocations: 0.7946 MB / 346 MB, free: 11.42 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02015/0.2412, allocations: 4.884 MB / 350.9 MB, free: 6.438 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007048/0.2419, allocations: 0.6972 MB / 351.6 MB, free: 5.719 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0008424/0.2427, allocations: 245.7 kB / 351.9 MB, free: 5.477 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009628/0.2437, allocations: 0.5615 MB / 352.4 MB, free: 4.91 MB / 314.7 MB Notification: Performance of SimCode: time 1.613e-06/0.2437, allocations: 0 / 352.4 MB, free: 4.91 MB / 314.7 MB Notification: Performance of Templates: time 0.05194/0.2956, allocations: 42.03 MB / 394.5 MB, free: 11.54 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.5625942638143897]