Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.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.0009014/0.0009014, allocations: 80.8 kB / 22.29 MB, free: 2.207 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.0009236/0.0009236, allocations: 167.1 kB / 25.7 MB, free: 8.402 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8748/0.8748, allocations: 158.6 MB / 187.6 MB, free: 2.777 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Vtr|Vqs",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Vtr|Vqs",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.015e-06/3.015e-06, allocations: 3.984 kB / 251.6 MB, free: 7.195 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.635e-05/2.937e-05, allocations: 2.312 kB / 251.6 MB, free: 7.191 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.029/0.02903, allocations: 28.66 MB / 280.3 MB, free: 10.4 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01711/0.04613, allocations: 8.947 MB / 289.2 MB, free: 1.426 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005028/0.05116, allocations: 199 kB / 289.4 MB, free: 1.23 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008084/0.05925, allocations: 5.162 MB / 294.6 MB, free: 12.04 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008719/0.06797, allocations: 3.08 MB / 297.6 MB, free: 8.945 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004311/0.07228, allocations: 1.609 MB / 299.3 MB, free: 7.336 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01004/0.08232, allocations: 9.088 MB / 308.3 MB, free: 14.21 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01166/0.09398, allocations: 9.355 MB / 317.7 MB, free: 4.73 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008831/0.1028, allocations: 6.434 MB / 324.1 MB, free: 14.29 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006745/0.1096, allocations: 4.584 MB / 328.7 MB, free: 9.691 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002814/0.1124, allocations: 1.156 MB / 329.9 MB, free: 8.535 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004108/0.1165, allocations: 1.523 MB / 331.4 MB, free: 7.012 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002269/0.1187, allocations: 2.497 MB / 333.9 MB, free: 4.508 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005387/0.1241, allocations: 3.173 MB / 337.1 MB, free: 1.328 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009707/0.1338, allocations: 7.743 MB / 344.8 MB, free: 9.559 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.1338, allocations: 0 / 344.8 MB, free: 9.559 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.452e-06/0.1338, allocations: 0 / 344.8 MB, free: 9.559 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0003185/0.1342, allocations: 0 / 344.8 MB, free: 9.559 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1994 * Number of variables: 1994 Notification: Performance of Generate backend data structure: time 0.0163/0.1505, allocations: 9.335 MB / 354.1 MB, free: 144 kB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.893e-05/0.1505, allocations: 12.03 kB / 354.2 MB, free: 132 kB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.131/0.2815, allocations: 5.258 MB / 359.4 MB, free: 61.22 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005414/0.2869, allocations: 2.496 MB / 361.9 MB, free: 60.87 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002872/0.2872, allocations: 0.5334 MB / 362.4 MB, free: 60.86 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001022/0.2882, allocations: 0.7129 MB / 363.2 MB, free: 60.84 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007505/0.2957, allocations: 5.94 MB / 369.1 MB, free: 60.11 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000179/0.2959, allocations: 21.66 kB / 369.1 MB, free: 60.1 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004835/0.2964, allocations: 297.1 kB / 369.4 MB, free: 60.1 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002881/0.2966, allocations: 451.4 kB / 369.8 MB, free: 60.09 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005149/0.3018, allocations: 2.996 MB / 372.8 MB, free: 59.89 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02751/0.3293, allocations: 23.18 MB / 396 MB, free: 42.04 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004317/0.3336, allocations: 4.362 MB / 400.4 MB, free: 37.82 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009971/0.3346, allocations: 0.9425 MB / 401.3 MB, free: 36.91 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005856/0.3405, allocations: 3.683 MB / 405 MB, free: 33.46 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.238e-05/0.3405, allocations: 60.12 kB / 405.1 MB, free: 33.39 MB / 330.7 MB Notification: Performance of pre-optimization done (n=217): time 3.626e-06/0.3405, allocations: 0 / 405.1 MB, free: 33.39 MB / 330.7 MB Notification: Performance of matching and sorting (n=233): time 0.007443/0.3479, allocations: 4.694 MB / 409.8 MB, free: 28.94 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0008651/0.3488, allocations: 1.612 MB / 411.4 MB, free: 27.24 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002064/0.3509, allocations: 2.609 MB / 414 MB, free: 25.16 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001867/0.3511, allocations: 61.7 kB / 414 MB, free: 25.09 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009422/0.352, allocations: 3.331 MB / 417.4 MB, free: 21.89 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004596/0.3525, allocations: 0.8581 MB / 418.2 MB, free: 21.08 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006835/0.3531, allocations: 0.9017 MB / 419.1 MB, free: 20.26 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 2.181e-05/0.3532, allocations: 309.1 kB / 419.4 MB, free: 19.96 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001018/0.3542, allocations: 0.6801 MB / 420.1 MB, free: 19.27 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001477/0.3557, allocations: 3.136 MB / 423.3 MB, free: 15.07 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002514/0.3582, allocations: 4.107 MB / 427.4 MB, free: 10.25 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.467e-05/0.3582, allocations: 28 kB / 427.4 MB, free: 10.22 MB / 330.7 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.004118/0.3623, allocations: 3.466 MB / 430.9 MB, free: 7.316 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.424e-05/0.3624, allocations: 44 kB / 430.9 MB, free: 7.273 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.523e-05/0.3625, allocations: 87.98 kB / 431 MB, free: 7.188 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001294/0.3638, allocations: 0.6558 MB / 431.6 MB, free: 6.531 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002186/0.3659, allocations: 1.087 MB / 432.7 MB, free: 5.535 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002486/0.3684, allocations: 2.896 MB / 435.6 MB, free: 2.641 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002149/0.3706, allocations: 239.6 kB / 435.9 MB, free: 2.406 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003076/0.3709, allocations: 232 kB / 436.1 MB, free: 2.18 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 393 * 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 (590): * Single equations (assignments): 587 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * 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): 1 system {(4,32,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001365/0.3722, allocations: 483.4 kB / 436.6 MB, free: 1.785 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005483/0.3728, allocations: 287.6 kB / 436.8 MB, free: 1.504 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002332/0.3751, allocations: 1.875 MB / 438.7 MB, free: 15.64 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.501e-05/0.3751, allocations: 24 kB / 438.7 MB, free: 15.62 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.358e-06/0.3752, allocations: 8 kB / 438.7 MB, free: 15.61 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.575e-05/0.3752, allocations: 11.95 kB / 438.8 MB, free: 15.6 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01108/0.3862, allocations: 7.796 MB / 446.6 MB, free: 8.461 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.27e-05/0.3863, allocations: 12 kB / 446.6 MB, free: 8.449 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001017/0.3873, allocations: 429.9 kB / 447 MB, free: 8.055 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001691/0.389, allocations: 0.771 MB / 447.8 MB, free: 7.285 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001698/0.3891, allocations: 63.98 kB / 447.8 MB, free: 7.223 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003963/0.3931, allocations: 4.223 MB / 452 MB, free: 2.895 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0008367/0.3939, allocations: 1.545 MB / 453.6 MB, free: 1.273 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003575/0.3975, allocations: 2.674 MB / 456.3 MB, free: 14.4 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001037/0.3986, allocations: 435.2 kB / 456.7 MB, free: 13.98 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002904/0.3988, allocations: 59.98 kB / 456.7 MB, free: 13.92 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007675/0.3996, allocations: 87.98 kB / 456.8 MB, free: 13.83 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003196/0.3999, allocations: 236.7 kB / 457.1 MB, free: 13.61 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001157/0.4, allocations: 67.98 kB / 457.1 MB, free: 13.54 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001254/0.4013, allocations: 1.191 MB / 458.3 MB, free: 12.51 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4013, allocations: 0 / 458.3 MB, free: 12.51 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003347/0.4046, allocations: 1.281 MB / 459.6 MB, free: 11.23 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 1 ($STATESET1.x) * 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 (241): * Single equations (assignments): 238 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 1 system {(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): 1 system {(4,32,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003612/0.405, allocations: 207 kB / 459.8 MB, free: 11.05 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003027/0.408, allocations: 2.556 MB / 462.4 MB, free: 8.785 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001157/0.4081, allocations: 72.14 kB / 462.4 MB, free: 8.711 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001415/0.4096, allocations: 1.272 MB / 463.7 MB, free: 7.516 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002232/0.4118, allocations: 0.8739 MB / 464.6 MB, free: 6.648 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01481/0.4266, allocations: 10.54 MB / 475.1 MB, free: 11.95 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001632/0.4282, allocations: 1.34 MB / 476.5 MB, free: 10.57 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.00195/0.4302, allocations: 0.5967 MB / 477.1 MB, free: 9.973 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00152/0.4317, allocations: 0.8426 MB / 477.9 MB, free: 9.125 MB / 378.7 MB Notification: Performance of SimCode: time 2.214e-06/0.4317, allocations: 0 / 477.9 MB, free: 9.125 MB / 378.7 MB Notification: Performance of Templates: time 0.1742/0.6059, allocations: 52.44 MB / 0.5179 GB, free: 100.6 MB / 394.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.sim & ./Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_OpenCircuit/SMPM_OpenCircuit.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: 4.112394199240953]