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.001102/0.001102, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001503/0.002605, allocations: 449.7 kB / 10.37 MB, free: 328 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.001014/0.001014, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001274/0.002288, allocations: 455.6 kB / 11.71 MB, free: 2.461 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 0.9559/0.9559, allocations: 177.2 MB / 189.6 MB, free: 5.32 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07817/1.034, allocations: 53.65 MB / 243.3 MB, free: 15.59 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.884e-06/1.884e-06, allocations: 0 / 244.5 MB, free: 14.31 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.239e-05/2.428e-05, allocations: 2.312 kB / 244.5 MB, free: 14.31 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01037/0.0104, allocations: 11.17 MB / 255.7 MB, free: 3.082 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.005295/0.01569, allocations: 3.675 MB / 259.4 MB, free: 15.39 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009124/0.01661, allocations: 87.38 kB / 259.5 MB, free: 15.3 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001352/0.01796, allocations: 0.8538 MB / 260.3 MB, free: 14.45 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001643/0.0196, allocations: 1.02 MB / 261.4 MB, free: 13.42 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000602/0.0202, allocations: 443.3 kB / 261.8 MB, free: 12.98 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002526/0.02273, allocations: 3.91 MB / 265.7 MB, free: 9.059 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001321/0.02405, allocations: 1.581 MB / 267.3 MB, free: 7.398 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002258/0.02631, allocations: 2.756 MB / 270 MB, free: 4.621 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001466/0.02777, allocations: 1.867 MB / 271.9 MB, free: 2.75 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003699/0.02814, allocations: 412 kB / 272.3 MB, free: 2.348 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005684/0.02871, allocations: 0.4958 MB / 272.8 MB, free: 1.852 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006391/0.02935, allocations: 1.017 MB / 273.8 MB, free: 0.832 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.1091/0.1384, allocations: 1.102 MB / 274.9 MB, free: 7.781 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003939/0.1424, allocations: 2.942 MB / 277.9 MB, free: 7.512 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.874e-05/0.1424, allocations: 2.312 kB / 277.9 MB, free: 7.512 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.32e-07/0.1424, allocations: 1.062 kB / 277.9 MB, free: 7.512 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001243/0.1425, allocations: 0.7031 kB / 277.9 MB, free: 7.512 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.005927/0.1484, allocations: 4.275 MB / 282.1 MB, free: 6.035 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.516e-05/0.1485, allocations: 8.438 kB / 282.1 MB, free: 6.035 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00113/0.1496, allocations: 0.5851 MB / 282.7 MB, free: 5.938 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002181/0.1518, allocations: 1.371 MB / 284.1 MB, free: 5.422 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001381/0.1519, allocations: 211.9 kB / 284.3 MB, free: 5.414 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000356/0.1523, allocations: 291.3 kB / 284.6 MB, free: 5.41 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002932/0.1552, allocations: 2.374 MB / 287 MB, free: 4.75 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.991e-05/0.1553, allocations: 10.84 kB / 287 MB, free: 4.746 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002216/0.1555, allocations: 122 kB / 287.1 MB, free: 4.742 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.524e-05/0.1556, allocations: 122.5 kB / 287.2 MB, free: 4.734 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001425/0.157, allocations: 0.8493 MB / 288.1 MB, free: 4.641 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008256/0.1653, allocations: 7.763 MB / 295.8 MB, free: 1.645 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009606/0.1662, allocations: 0.9728 MB / 296.8 MB, free: 1.469 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007527/0.167, allocations: 0.5505 MB / 297.4 MB, free: 1.387 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001274/0.1671, allocations: 50.98 kB / 297.4 MB, free: 1.383 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.404e-05/0.1671, allocations: 55.34 kB / 297.5 MB, free: 1.328 MB / 266.7 MB Notification: Performance of pre-optimization done (n=136): time 3.426e-06/0.1671, allocations: 4 kB / 297.5 MB, free: 1.324 MB / 266.7 MB Notification: Performance of matching and sorting (n=151): time 0.005426/0.1725, allocations: 3.094 MB / 300.6 MB, free: 380 kB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.306e-05/0.1726, allocations: 72.66 kB / 300.6 MB, free: 296 kB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001213/0.1738, allocations: 1.336 MB / 302 MB, free: 15.45 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 8.359e-05/0.1739, allocations: 57.7 kB / 302 MB, free: 15.39 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005785/0.1744, allocations: 1.168 MB / 303.2 MB, free: 14.32 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003118/0.1748, allocations: 0.528 MB / 303.7 MB, free: 13.82 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004035/0.1752, allocations: 337.1 kB / 304 MB, free: 13.54 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.153e-05/0.1752, allocations: 305.1 kB / 304.3 MB, free: 13.23 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003756/0.1756, allocations: 206.7 kB / 304.5 MB, free: 13.03 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005981/0.1762, allocations: 0.6789 MB / 305.2 MB, free: 12.19 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001122/0.1773, allocations: 1.104 MB / 306.3 MB, free: 10.98 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.166e-06/0.1773, allocations: 4 kB / 306.3 MB, free: 10.98 MB / 282.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.002175/0.1795, allocations: 1.403 MB / 307.7 MB, free: 9.652 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.084e-05/0.1795, allocations: 12 kB / 307.7 MB, free: 9.641 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.729e-05/0.1795, allocations: 12 kB / 307.8 MB, free: 9.629 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001429/0.181, allocations: 0.5673 MB / 308.3 MB, free: 9.031 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009325/0.1819, allocations: 375.8 kB / 308.7 MB, free: 8.688 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007641/0.1896, allocations: 15.32 MB / 324 MB, free: 8.527 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005764/0.1901, allocations: 60.05 kB / 324.1 MB, free: 8.469 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.613e-05/0.1902, allocations: 63.98 kB / 324.1 MB, free: 8.406 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.0004465/0.1907, allocations: 228.9 kB / 324.4 MB, free: 8.195 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002103/0.1909, allocations: 175.8 kB / 324.5 MB, free: 8.023 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001329/0.1922, allocations: 1.109 MB / 325.6 MB, free: 6.898 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.456e-06/0.1922, allocations: 16 kB / 325.7 MB, free: 6.883 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.285e-06/0.1922, allocations: 8 kB / 325.7 MB, free: 6.875 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.112e-05/0.1922, allocations: 11.97 kB / 325.7 MB, free: 6.863 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003636/0.1959, allocations: 3.169 MB / 328.8 MB, free: 3.984 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.23e-06/0.1959, allocations: 4 kB / 328.8 MB, free: 3.98 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004482/0.1963, allocations: 215.6 kB / 329.1 MB, free: 3.781 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003811/0.1967, allocations: 261.7 kB / 329.3 MB, free: 3.527 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001032/0.1977, allocations: 0.551 MB / 329.9 MB, free: 2.949 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.044e-05/0.1978, allocations: 35.98 kB / 329.9 MB, free: 2.914 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006317/0.2041, allocations: 13.24 MB / 343.1 MB, free: 4.883 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.182e-06/0.2041, allocations: 7.375 kB / 343.1 MB, free: 4.879 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001622/0.2057, allocations: 1.558 MB / 344.7 MB, free: 3.273 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001573/0.2059, allocations: 34.84 kB / 344.7 MB, free: 3.242 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004858/0.2064, allocations: 75.95 kB / 344.8 MB, free: 3.168 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001974/0.2066, allocations: 132.5 kB / 344.9 MB, free: 3.043 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.709e-05/0.2066, allocations: 35.98 kB / 345 MB, free: 3.008 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0005587/0.2072, allocations: 0.6682 MB / 345.6 MB, free: 2.422 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.41e-07/0.2072, allocations: 0 / 345.6 MB, free: 2.422 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001624/0.2088, allocations: 0.6523 MB / 346.3 MB, free: 1.77 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.0002588/0.2091, allocations: 178.7 kB / 346.5 MB, free: 1.602 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00189/0.211, allocations: 2.202 MB / 348.7 MB, free: 15.36 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.869e-05/0.211, allocations: 48.44 kB / 348.7 MB, free: 15.31 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009482/0.212, allocations: 1.644 MB / 350.4 MB, free: 13.59 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00141/0.2134, allocations: 0.7903 MB / 351.2 MB, free: 12.82 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01916/0.2325, allocations: 4.91 MB / 356.1 MB, free: 7.863 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006002/0.2331, allocations: 0.6884 MB / 356.8 MB, free: 7.152 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005749/0.2337, allocations: 255.1 kB / 357 MB, free: 6.902 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009313/0.2346, allocations: 0.5614 MB / 357.6 MB, free: 6.332 MB / 330.7 MB Notification: Performance of SimCode: time 7.21e-07/0.2346, allocations: 0 / 357.6 MB, free: 6.332 MB / 330.7 MB Notification: Performance of Templates: time 0.04546/0.2801, allocations: 42.18 MB / 399.7 MB, free: 12.91 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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.563310501165688]