Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.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.0009553/0.0009553, allocations: 72.08 kB / 21.69 MB, free: 2.863 MB / 18.57 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.000996/0.000996, allocations: 145.8 kB / 24.98 MB, free: 8.816 MB / 18.57 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 1.058/1.058, allocations: 173.4 MB / 201.5 MB, free: 9.316 MB / 186.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_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.[0-9,]+.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.[0-9,]+.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.363e-06/1.363e-06, allocations: 0 / 268.1 MB, free: 6.703 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.454e-05/1.59e-05, allocations: 2.312 kB / 268.1 MB, free: 6.699 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01982/0.01983, allocations: 10.74 MB / 278.8 MB, free: 11.91 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00467/0.0245, allocations: 3.552 MB / 282.4 MB, free: 8.344 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006045/0.02511, allocations: 87.44 kB / 282.5 MB, free: 8.258 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001123/0.02623, allocations: 0.8071 MB / 283.3 MB, free: 7.445 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001361/0.02759, allocations: 0.9507 MB / 284.2 MB, free: 6.488 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007741/0.02837, allocations: 455.2 kB / 284.7 MB, free: 6.043 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001801/0.03017, allocations: 3.053 MB / 287.7 MB, free: 2.988 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001299/0.03146, allocations: 1.517 MB / 289.2 MB, free: 1.406 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1095/0.141, allocations: 2.08 MB / 291.3 MB, free: 17.18 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002343/0.1433, allocations: 1.64 MB / 293 MB, free: 17.18 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003918/0.1437, allocations: 373.4 kB / 293.3 MB, free: 17.18 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006283/0.1443, allocations: 479.4 kB / 293.8 MB, free: 17.18 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007476/0.1451, allocations: 1.132 MB / 294.9 MB, free: 17.18 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008898/0.146, allocations: 1.146 MB / 296.1 MB, free: 17.18 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002184/0.1481, allocations: 2.689 MB / 298.8 MB, free: 16.95 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.1481, allocations: 0.6875 kB / 298.8 MB, free: 16.95 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.323e-06/0.1481, allocations: 0 / 298.8 MB, free: 16.95 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.631e-05/0.1482, allocations: 2.781 kB / 298.8 MB, free: 16.95 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: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.003452/0.1516, allocations: 3.572 MB / 302.3 MB, free: 15.49 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.426e-05/0.1517, allocations: 9.141 kB / 302.3 MB, free: 15.49 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007286/0.1524, allocations: 0.5527 MB / 302.9 MB, free: 15.31 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001635/0.154, allocations: 1.689 MB / 304.6 MB, free: 14.61 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.228e-05/0.1541, allocations: 185.1 kB / 304.8 MB, free: 14.52 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002221/0.1543, allocations: 253.5 kB / 305 MB, free: 14.44 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00226/0.1566, allocations: 1.995 MB / 307 MB, free: 13.63 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.694e-05/0.1566, allocations: 13.53 kB / 307 MB, free: 13.63 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001612/0.1568, allocations: 106.8 kB / 307.1 MB, free: 13.55 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.749e-05/0.1569, allocations: 127.8 kB / 307.2 MB, free: 13.53 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001597/0.1585, allocations: 0.9537 MB / 308.2 MB, free: 13.37 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006831/0.1653, allocations: 8.734 MB / 316.9 MB, free: 6.961 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007332/0.166, allocations: 0.5434 MB / 317.5 MB, free: 6.41 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004517/0.1665, allocations: 339 kB / 317.8 MB, free: 6.07 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001481/0.1666, allocations: 58.92 kB / 317.9 MB, free: 6.016 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.113e-05/0.1666, allocations: 46.39 kB / 317.9 MB, free: 5.961 MB / 266.7 MB Notification: Performance of pre-optimization done (n=98): time 2.214e-06/0.1666, allocations: 0 / 317.9 MB, free: 5.961 MB / 266.7 MB Notification: Performance of matching and sorting (n=123): time 0.005128/0.1718, allocations: 3.73 MB / 321.6 MB, free: 2.23 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.785e-05/0.1718, allocations: 68.39 kB / 321.7 MB, free: 2.152 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001102/0.1729, allocations: 1.442 MB / 323.1 MB, free: 0.6914 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.695e-05/0.1729, allocations: 48 kB / 323.2 MB, free: 0.6406 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005792/0.1735, allocations: 1.404 MB / 324.6 MB, free: 15.23 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002557/0.1738, allocations: 455.2 kB / 325 MB, free: 14.79 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000314/0.1741, allocations: 297.1 kB / 325.3 MB, free: 14.49 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001125/0.1742, allocations: 476.8 kB / 325.8 MB, free: 14.02 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004349/0.1746, allocations: 255.8 kB / 326 MB, free: 13.77 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007828/0.1754, allocations: 0.9786 MB / 327 MB, free: 12.49 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001279/0.1767, allocations: 1.378 MB / 328.4 MB, free: 10.87 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.673e-06/0.1767, allocations: 4 kB / 328.4 MB, free: 10.86 MB / 282.7 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.001752/0.1785, allocations: 1.438 MB / 329.8 MB, free: 9.508 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.895e-05/0.1785, allocations: 12 kB / 329.9 MB, free: 9.496 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.44e-05/0.1785, allocations: 16.61 kB / 329.9 MB, free: 9.48 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00048/0.179, allocations: 138.6 kB / 330 MB, free: 9.332 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00104/0.18, allocations: 424.3 kB / 330.4 MB, free: 8.941 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001825/0.1818, allocations: 3.626 MB / 334.1 MB, free: 5.09 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001119/0.183, allocations: 131.8 kB / 334.2 MB, free: 4.961 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.547e-05/0.183, allocations: 71.98 kB / 334.2 MB, free: 4.891 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (198): * Single equations (assignments): 194 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006454/0.1837, allocations: 257.9 kB / 334.5 MB, free: 4.652 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002568/0.184, allocations: 230.8 kB / 334.7 MB, free: 4.426 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00142/0.1854, allocations: 1.04 MB / 335.8 MB, free: 3.371 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.835e-06/0.1854, allocations: 12 kB / 335.8 MB, free: 3.359 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.1854, allocations: 6.297 kB / 335.8 MB, free: 3.355 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.376e-06/0.1854, allocations: 3.984 kB / 335.8 MB, free: 3.352 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003833/0.1892, allocations: 3.103 MB / 338.9 MB, free: 192 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.929e-06/0.1892, allocations: 4 kB / 338.9 MB, free: 188 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005971/0.1898, allocations: 267.9 kB / 339.2 MB, free: 15.93 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002797/0.1901, allocations: 119.9 kB / 339.3 MB, free: 15.8 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.007e-05/0.1902, allocations: 27.98 kB / 339.3 MB, free: 15.77 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00161/0.1918, allocations: 3.618 MB / 342.9 MB, free: 11.93 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.1918, allocations: 0 / 342.9 MB, free: 11.93 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001865/0.1936, allocations: 1.5 MB / 344.4 MB, free: 10.37 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004431/0.1941, allocations: 322.7 kB / 344.7 MB, free: 10.05 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001366/0.1942, allocations: 27.94 kB / 344.8 MB, free: 10.02 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004708/0.1947, allocations: 91.88 kB / 344.9 MB, free: 9.934 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001308/0.1948, allocations: 80.83 kB / 344.9 MB, free: 9.855 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.628e-05/0.1949, allocations: 32 kB / 345 MB, free: 9.824 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0008647/0.1957, allocations: 0.8362 MB / 345.8 MB, free: 8.996 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1957, allocations: 0 / 345.8 MB, free: 8.996 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001151/0.1969, allocations: 487.9 kB / 346.3 MB, free: 8.52 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (121): * Single equations (assignments): 117 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,1,100.0%), (1,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.0002944/0.1972, allocations: 189.8 kB / 346.5 MB, free: 8.332 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001632/0.1988, allocations: 1.346 MB / 347.8 MB, free: 7 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.1988, allocations: 0 / 347.8 MB, free: 7 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008248/0.1996, allocations: 0.8491 MB / 348.7 MB, free: 6.133 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001214/0.2009, allocations: 465.1 kB / 349.1 MB, free: 5.691 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00591/0.2068, allocations: 4.195 MB / 353.3 MB, free: 1.418 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005352/0.2073, allocations: 0.6534 MB / 354 MB, free: 0.7383 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0009283/0.2082, allocations: 380.9 kB / 354.3 MB, free: 372 kB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003031/0.2085, allocations: 136.5 kB / 354.5 MB, free: 236 kB / 298.7 MB Notification: Performance of SimCode: time 1.713e-06/0.2085, allocations: 0 / 354.5 MB, free: 236 kB / 298.7 MB Notification: Performance of Templates: time 0.03207/0.2406, allocations: 24.84 MB / 379.3 MB, free: 7.789 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.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.407855926081538]