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.0008134/0.0008134, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001189/0.002002, allocations: 449.8 kB / 10.44 MB, free: 248 kB / 10.45 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.0009187/0.0009187, allocations: 165.1 kB / 11.36 MB, free: 2.812 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001338/0.002256, allocations: 479.5 kB / 11.82 MB, free: 2.34 MB / 13.93 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.028/1.028, allocations: 177.2 MB / 189.8 MB, free: 5.254 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0873/1.116, allocations: 53.66 MB / 243.4 MB, free: 15.51 MB / 250.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.082e-06/1.082e-06, allocations: 0 / 244.7 MB, free: 14.21 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.379e-05/1.487e-05, allocations: 2.312 kB / 244.7 MB, free: 14.21 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.008531/0.008546, allocations: 11.18 MB / 255.9 MB, free: 2.977 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.005886/0.01443, allocations: 3.679 MB / 259.6 MB, free: 15.28 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001002/0.01543, allocations: 83.44 kB / 259.7 MB, free: 15.2 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001247/0.01668, allocations: 0.8577 MB / 260.5 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001468/0.01815, allocations: 1.013 MB / 261.5 MB, free: 13.32 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007119/0.01886, allocations: 443.3 kB / 262 MB, free: 12.88 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002643/0.0215, allocations: 3.902 MB / 265.9 MB, free: 8.965 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001402/0.0229, allocations: 1.585 MB / 267.5 MB, free: 7.301 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002641/0.02555, allocations: 2.768 MB / 270.2 MB, free: 4.512 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001671/0.02722, allocations: 1.863 MB / 272.1 MB, free: 2.645 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004046/0.02762, allocations: 412 kB / 272.5 MB, free: 2.242 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006031/0.02822, allocations: 495.9 kB / 273 MB, free: 1.758 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005976/0.02882, allocations: 1.017 MB / 274 MB, free: 0.7383 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.1292/0.158, allocations: 1.102 MB / 275.1 MB, free: 7.594 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005025/0.163, allocations: 2.946 MB / 278 MB, free: 7.324 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.395e-05/0.1631, allocations: 0 / 278 MB, free: 7.324 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.1631, allocations: 0 / 278 MB, free: 7.324 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001359/0.1632, allocations: 3.391 kB / 278 MB, free: 7.324 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.005618/0.1688, allocations: 4.275 MB / 282.3 MB, free: 5.848 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.203e-05/0.1688, allocations: 10.78 kB / 282.3 MB, free: 5.848 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009846/0.1698, allocations: 0.5884 MB / 282.9 MB, free: 5.75 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002382/0.1722, allocations: 1.367 MB / 284.3 MB, free: 5.234 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001161/0.1723, allocations: 213.5 kB / 284.5 MB, free: 5.227 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003051/0.1726, allocations: 290.3 kB / 284.8 MB, free: 5.223 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002518/0.1752, allocations: 2.373 MB / 287.2 MB, free: 4.562 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.862e-05/0.1752, allocations: 11.02 kB / 287.2 MB, free: 4.559 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001791/0.1754, allocations: 122.2 kB / 287.3 MB, free: 4.555 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.489e-05/0.1755, allocations: 120.2 kB / 287.4 MB, free: 4.547 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001114/0.1766, allocations: 0.8523 MB / 288.3 MB, free: 4.449 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007129/0.1837, allocations: 7.762 MB / 296 MB, free: 1.453 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008195/0.1845, allocations: 0.9761 MB / 297 MB, free: 1.277 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006107/0.1851, allocations: 0.5533 MB / 297.5 MB, free: 1.195 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001494/0.1853, allocations: 51.64 kB / 297.6 MB, free: 1.188 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.595e-05/0.1853, allocations: 51.5 kB / 297.6 MB, free: 1.137 MB / 266.7 MB Notification: Performance of pre-optimization done (n=136): time 3.126e-06/0.1853, allocations: 0 / 297.6 MB, free: 1.137 MB / 266.7 MB Notification: Performance of matching and sorting (n=151): time 0.004757/0.1901, allocations: 3.137 MB / 300.8 MB, free: 15.95 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.811e-05/0.1901, allocations: 72.66 kB / 300.9 MB, free: 15.87 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001045/0.1911, allocations: 1.334 MB / 302.2 MB, free: 15.02 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.634e-05/0.1912, allocations: 53.7 kB / 302.2 MB, free: 14.96 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006031/0.1918, allocations: 1.166 MB / 303.4 MB, free: 13.94 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002742/0.1921, allocations: 0.5275 MB / 303.9 MB, free: 13.45 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003266/0.1924, allocations: 336.8 kB / 304.3 MB, free: 13.16 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.828e-05/0.1925, allocations: 304.2 kB / 304.6 MB, free: 12.86 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002894/0.1928, allocations: 214.7 kB / 304.8 MB, free: 12.65 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004752/0.1933, allocations: 0.6742 MB / 305.4 MB, free: 11.81 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009447/0.1942, allocations: 1.15 MB / 306.6 MB, free: 10.55 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.538e-06/0.1942, allocations: 8 kB / 306.6 MB, free: 10.54 MB / 282.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.001705/0.1959, allocations: 1.408 MB / 308 MB, free: 9.211 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.149e-05/0.1959, allocations: 12 kB / 308 MB, free: 9.199 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.73e-05/0.196, allocations: 20 kB / 308 MB, free: 9.18 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001148/0.1971, allocations: 0.5716 MB / 308.6 MB, free: 8.578 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000677/0.1978, allocations: 376.5 kB / 309 MB, free: 8.234 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007421/0.2052, allocations: 15.29 MB / 324.3 MB, free: 8.109 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007634/0.206, allocations: 64 kB / 324.3 MB, free: 8.047 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001333/0.2061, allocations: 60 kB / 324.4 MB, free: 7.988 MB / 298.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.0005845/0.2067, allocations: 227.6 kB / 324.6 MB, free: 7.777 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002072/0.2069, allocations: 175.8 kB / 324.8 MB, free: 7.605 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00152/0.2084, allocations: 1.109 MB / 325.9 MB, free: 6.48 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.155e-06/0.2084, allocations: 12 kB / 325.9 MB, free: 6.469 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.448e-06/0.2084, allocations: 8 kB / 325.9 MB, free: 6.461 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.11e-05/0.2084, allocations: 7.969 kB / 325.9 MB, free: 6.453 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003421/0.2119, allocations: 3.171 MB / 329.1 MB, free: 3.57 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.982e-06/0.2119, allocations: 4 kB / 329.1 MB, free: 3.566 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004384/0.2123, allocations: 222.2 kB / 329.3 MB, free: 3.363 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003507/0.2127, allocations: 254.6 kB / 329.6 MB, free: 3.113 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009785/0.2136, allocations: 0.5622 MB / 330.1 MB, free: 2.523 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.17e-05/0.2137, allocations: 30.84 kB / 330.1 MB, free: 2.496 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00612/0.2198, allocations: 13.23 MB / 343.4 MB, free: 4.48 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/0.2198, allocations: 4 kB / 343.4 MB, free: 4.477 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001846/0.2217, allocations: 1.574 MB / 345 MB, free: 2.855 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001617/0.2218, allocations: 36 kB / 345 MB, free: 2.82 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004714/0.2223, allocations: 71.95 kB / 345.1 MB, free: 2.75 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002136/0.2225, allocations: 129.2 kB / 345.2 MB, free: 2.625 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.433e-05/0.2226, allocations: 36 kB / 345.2 MB, free: 2.59 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0006437/0.2232, allocations: 0.6749 MB / 345.9 MB, free: 2 MB / 314.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2232, allocations: 0 / 345.9 MB, free: 2 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0018/0.225, allocations: 0.6445 MB / 346.5 MB, free: 1.355 MB / 314.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.0002727/0.2253, allocations: 189 kB / 346.7 MB, free: 1.18 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001928/0.2272, allocations: 2.221 MB / 349 MB, free: 14.93 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.394e-05/0.2273, allocations: 40.38 kB / 349 MB, free: 14.89 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001133/0.2284, allocations: 1.73 MB / 350.7 MB, free: 13.09 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003466/0.2319, allocations: 6.53 MB / 357.3 MB, free: 5.227 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0199/0.2517, allocations: 4.901 MB / 362.2 MB, free: 292 kB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00065/0.2524, allocations: 0.6897 MB / 362.8 MB, free: 15.57 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0008468/0.2532, allocations: 249.9 kB / 363.1 MB, free: 15.33 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009488/0.2542, allocations: 0.5693 MB / 363.7 MB, free: 14.75 MB / 346.7 MB Notification: Performance of SimCode: time 1.263e-06/0.2542, allocations: 0 / 363.7 MB, free: 14.75 MB / 346.7 MB Notification: Performance of Templates: time 0.04969/0.3039, allocations: 42.13 MB / 405.8 MB, free: 5.367 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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.5486114965751767]