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_CurrentSource.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.001588/0.001588, allocations: 85.08 kB / 23 MB, free: 1.504 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.001478/0.001478, allocations: 173.1 kB / 26.39 MB, free: 8 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.9558/0.9558, allocations: 158.6 MB / 188.3 MB, free: 2.82 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_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|terminalBoxQS.plugSupply.pin.[0-9,]+..v.re|terminalBoxQS.plugSupply.pin.[0-9,]+..v.im|terminalBoxQS.plugSupply.pin.[0-9,]+..i.re|terminalBoxQS.plugSupply.pin.[0-9,]+..i.im",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|terminalBoxQS.plugSupply.pin.[0-9,]+..v.re|terminalBoxQS.plugSupply.pin.[0-9,]+..v.im|terminalBoxQS.plugSupply.pin.[0-9,]+..i.re|terminalBoxQS.plugSupply.pin.[0-9,]+..i.im",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.643e-06/1.643e-06, allocations: 0 / 252.3 MB, free: 7.188 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.81e-05/1.975e-05, allocations: 2.312 kB / 252.3 MB, free: 7.184 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.02874/0.02876, allocations: 39.15 MB / 291.5 MB, free: 15.86 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.02094/0.0497, allocations: 10.97 MB / 302.4 MB, free: 4.852 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006451/0.05616, allocations: 326.1 kB / 302.8 MB, free: 4.531 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01077/0.06692, allocations: 9.125 MB / 311.9 MB, free: 11.36 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009627/0.07655, allocations: 3.957 MB / 315.8 MB, free: 7.383 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004706/0.08126, allocations: 2.478 MB / 318.3 MB, free: 4.902 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.01383/0.09508, allocations: 14.45 MB / 332.8 MB, free: 6.402 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02099/0.1161, allocations: 17.68 MB / 350.4 MB, free: 4.551 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1455/0.2616, allocations: 11.23 MB / 361.7 MB, free: 34.71 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01184/0.2734, allocations: 7.929 MB / 369.6 MB, free: 34.71 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003791/0.2772, allocations: 2.017 MB / 371.6 MB, free: 34.71 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004858/0.2821, allocations: 2.402 MB / 374 MB, free: 34.71 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002716/0.2848, allocations: 4.365 MB / 378.4 MB, free: 34.71 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.007424/0.2922, allocations: 5.432 MB / 383.8 MB, free: 34.71 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0106/0.3028, allocations: 13.27 MB / 397.1 MB, free: 31.11 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.3028, allocations: 0 / 397.1 MB, free: 31.11 MB / 330.7 MB Notification: Performance of FrontEnd: time 7.31e-07/0.3028, allocations: 2.844 kB / 397.1 MB, free: 31.11 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.000517/0.3033, allocations: 0 / 397.1 MB, free: 31.11 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: 3597 * Number of variables: 3597 Notification: Performance of Generate backend data structure: time 0.02519/0.3285, allocations: 16.52 MB / 413.6 MB, free: 17.33 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.669e-05/0.3286, allocations: 11.98 kB / 413.6 MB, free: 17.32 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02891/0.3575, allocations: 8.576 MB / 422.2 MB, free: 8.844 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01173/0.3692, allocations: 6.664 MB / 428.9 MB, free: 2.531 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006074/0.3698, allocations: 0.968 MB / 429.8 MB, free: 1.578 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002524/0.3724, allocations: 1.278 MB / 431.1 MB, free: 328 kB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01855/0.3909, allocations: 10.29 MB / 441.4 MB, free: 6.449 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002183/0.3911, allocations: 26.59 kB / 441.4 MB, free: 6.43 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000969/0.3921, allocations: 0.5253 MB / 442 MB, free: 5.918 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005157/0.3926, allocations: 0.7455 MB / 442.7 MB, free: 5.172 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01031/0.4029, allocations: 5 MB / 447.7 MB, free: 184 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1956/0.5985, allocations: 50.53 MB / 498.2 MB, free: 69.52 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01209/0.6106, allocations: 12.31 MB / 0.4986 GB, free: 68.91 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001797/0.6124, allocations: 1.638 MB / 0.5002 GB, free: 68.82 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009139/0.6215, allocations: 6.852 MB / 0.5069 GB, free: 68.36 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.5e-05/0.6216, allocations: 81.78 kB / 0.5069 GB, free: 68.3 MB / 394.7 MB Notification: Performance of pre-optimization done (n=361): time 4.608e-06/0.6216, allocations: 0 / 0.5069 GB, free: 68.3 MB / 394.7 MB Notification: Performance of matching and sorting (n=403): time 0.01401/0.6356, allocations: 8.969 MB / 0.5157 GB, free: 67.02 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.665e-05/0.6356, allocations: 90.92 kB / 0.5158 GB, free: 66.96 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004188/0.6398, allocations: 4.991 MB / 0.5207 GB, free: 66.19 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000171/0.64, allocations: 94.36 kB / 0.5207 GB, free: 66.15 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002284/0.6423, allocations: 6.581 MB / 0.5272 GB, free: 62.52 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007335/0.643, allocations: 1.532 MB / 0.5287 GB, free: 61.59 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00163/0.6446, allocations: 1.717 MB / 0.5303 GB, free: 61.44 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 3.461e-05/0.6447, allocations: 481.3 kB / 0.5308 GB, free: 60.97 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001161/0.6458, allocations: 0.8132 MB / 0.5316 GB, free: 60.95 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002559/0.6484, allocations: 6.474 MB / 0.5379 GB, free: 53.94 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004743/0.6531, allocations: 8.184 MB / 0.5459 GB, free: 46.82 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.508e-05/0.6532, allocations: 38.34 kB / 0.546 GB, free: 46.82 MB / 394.7 MB Notification: Performance of matching and sorting (n=1007) (initialization): time 0.007169/0.6604, allocations: 6.501 MB / 0.5523 GB, free: 46.18 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.139e-05/0.6604, allocations: 63.81 kB / 0.5524 GB, free: 46.18 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001049/0.6605, allocations: 128 kB / 0.5525 GB, free: 46.18 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001553/0.6621, allocations: 0.8852 MB / 0.5533 GB, free: 46.09 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003038/0.6651, allocations: 1.742 MB / 0.555 GB, free: 46.09 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00481/0.6699, allocations: 8.236 MB / 0.5631 GB, free: 39.57 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003049/0.673, allocations: 328.2 kB / 0.5634 GB, free: 39.38 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003339/0.6733, allocations: 365 kB / 0.5638 GB, free: 39.09 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 583 * 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 (958): * Single equations (assignments): 953 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * 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): 3 systems {(1,1,100.0%), (1,1,100.0%), (8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002314/0.6756, allocations: 0.7223 MB / 0.5645 GB, free: 38.71 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006857/0.6763, allocations: 0.688 MB / 0.5651 GB, free: 38.07 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003817/0.6801, allocations: 3.407 MB / 0.5685 GB, free: 36.05 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.309e-05/0.6801, allocations: 43.94 kB / 0.5685 GB, free: 36.01 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.235e-06/0.6801, allocations: 11.66 kB / 0.5685 GB, free: 36 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.116e-05/0.6802, allocations: 19.5 kB / 0.5685 GB, free: 36 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01053/0.6907, allocations: 9.103 MB / 0.5774 GB, free: 31.31 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.403e-06/0.6907, allocations: 8.062 kB / 0.5774 GB, free: 31.3 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001547/0.6922, allocations: 0.6728 MB / 0.5781 GB, free: 30.77 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001297/0.6935, allocations: 0.7107 MB / 0.5788 GB, free: 30.28 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001738/0.6937, allocations: 87.56 kB / 0.5789 GB, free: 30.25 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003792/0.6975, allocations: 7.745 MB / 0.5864 GB, free: 23.61 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/0.6975, allocations: 7.375 kB / 0.5864 GB, free: 23.61 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004662/0.7022, allocations: 4.234 MB / 0.5906 GB, free: 20.26 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001199/0.7034, allocations: 0.8865 MB / 0.5914 GB, free: 19.64 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004116/0.7038, allocations: 74.31 kB / 0.5915 GB, free: 19.62 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001065/0.7048, allocations: 114.3 kB / 0.5916 GB, free: 19.56 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003093/0.7052, allocations: 297.4 kB / 0.5919 GB, free: 19.3 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001497/0.7053, allocations: 88.66 kB / 0.592 GB, free: 19.25 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001664/0.707, allocations: 2.131 MB / 0.5941 GB, free: 17.57 MB / 394.7 MB Notification: Performance of sort global known variables: time 8e-08/0.707, allocations: 0 / 0.5941 GB, free: 17.57 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004732/0.7117, allocations: 2.029 MB / 0.596 GB, free: 15.73 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi,smpmQS.inertiaRotor.w,quadraticSpeedDependentTorqueQS.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 (384): * Single equations (assignments): 379 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * 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): 3 systems {(1,1,100.0%), (1,1,100.0%), (8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000386/0.7121, allocations: 264.9 kB / 0.5963 GB, free: 15.57 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004516/0.7166, allocations: 4.677 MB / 0.6009 GB, free: 11.58 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/0.7166, allocations: 5.875 kB / 0.6009 GB, free: 11.57 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001793/0.7184, allocations: 2.141 MB / 0.603 GB, free: 9.492 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002897/0.7213, allocations: 1.328 MB / 0.6043 GB, free: 8.203 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02043/0.7417, allocations: 18.51 MB / 0.6223 GB, free: 5.613 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002819/0.7445, allocations: 3.22 MB / 0.6255 GB, free: 2.359 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.003042/0.7476, allocations: 0.9233 MB / 0.6264 GB, free: 1.43 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002212/0.7498, allocations: 1.369 MB / 0.6277 GB, free: 60 kB / 410.7 MB Notification: Performance of SimCode: time 1.473e-06/0.7498, allocations: 4 kB / 0.6277 GB, free: 56 kB / 410.7 MB Notification: Performance of Templates: time 0.2172/0.967, allocations: 76.75 MB / 0.7027 GB, free: 81.77 MB / 426.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_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_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: 5.954851843882352]