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.001417/0.001417, allocations: 75.77 kB / 22.45 MB, free: 2.094 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.001051/0.001051, allocations: 168 kB / 25.75 MB, free: 8.922 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.7989/0.7989, allocations: 158.6 MB / 187.5 MB, free: 2.922 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.443e-06/1.443e-06, allocations: 0 / 251.2 MB, free: 7.746 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.811e-05/1.956e-05, allocations: 6.312 kB / 251.2 MB, free: 7.738 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.03116/0.03118, allocations: 40.67 MB / 291.8 MB, free: 14.89 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.02065/0.05184, allocations: 11.02 MB / 302.9 MB, free: 3.844 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00736/0.0592, allocations: 326.1 kB / 303.2 MB, free: 3.523 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01218/0.07138, allocations: 9.371 MB / 312.6 MB, free: 10.11 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01279/0.08416, allocations: 3.972 MB / 316.5 MB, free: 6.113 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005259/0.08942, allocations: 2.498 MB / 319 MB, free: 3.609 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.01433/0.1038, allocations: 14.44 MB / 333.5 MB, free: 5.117 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02241/0.1262, allocations: 17.69 MB / 351.2 MB, free: 3.258 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2307/0.3569, allocations: 10.98 MB / 362.1 MB, free: 31.72 MB / 330.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00927/0.3662, allocations: 7.871 MB / 370 MB, free: 31.72 MB / 330.8 MB Notification: Performance of NFPackage.collectConstants: time 0.002266/0.3684, allocations: 2.027 MB / 372 MB, free: 31.72 MB / 330.8 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003314/0.3717, allocations: 2.421 MB / 374.5 MB, free: 31.72 MB / 330.8 MB Notification: Performance of NFScalarize.scalarize: time 0.002455/0.3742, allocations: 4.401 MB / 378.9 MB, free: 31.72 MB / 330.8 MB Notification: Performance of NFVerifyModel.verify: time 0.00477/0.379, allocations: 5.46 MB / 384.3 MB, free: 31.72 MB / 330.8 MB Notification: Performance of NFConvertDAE.convert: time 0.01079/0.3898, allocations: 13.33 MB / 397.6 MB, free: 27.9 MB / 330.8 MB Notification: Performance of FrontEnd - DAE generated: time 4.96e-06/0.3898, allocations: 3.312 kB / 397.6 MB, free: 27.9 MB / 330.8 MB Notification: Performance of FrontEnd: time 1.333e-06/0.3898, allocations: 0 / 397.6 MB, free: 27.9 MB / 330.8 MB Notification: Performance of Transformations before backend: time 0.0001493/0.3899, allocations: 0 / 397.6 MB, free: 27.9 MB / 330.8 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.02078/0.4107, allocations: 17.15 MB / 414.8 MB, free: 13.62 MB / 330.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.027e-05/0.4107, allocations: 11.98 kB / 414.8 MB, free: 13.61 MB / 330.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02502/0.4358, allocations: 11.49 MB / 426.3 MB, free: 2.219 MB / 330.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01062/0.4464, allocations: 7.147 MB / 433.4 MB, free: 11.39 MB / 346.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005204/0.4469, allocations: 0.9723 MB / 434.4 MB, free: 10.43 MB / 346.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001934/0.4488, allocations: 1.28 MB / 435.7 MB, free: 9.16 MB / 346.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01864/0.4675, allocations: 11.26 MB / 446.9 MB, free: 13.77 MB / 362.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002158/0.4677, allocations: 19.91 kB / 447 MB, free: 13.75 MB / 362.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008984/0.4686, allocations: 0.5229 MB / 447.5 MB, free: 13.24 MB / 362.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000494/0.4691, allocations: 0.7533 MB / 448.2 MB, free: 12.49 MB / 362.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0133/0.4824, allocations: 6.391 MB / 454.6 MB, free: 6.109 MB / 362.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06763/0.55, allocations: 51.31 MB / 0.4941 GB, free: 2.633 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1352/0.6852, allocations: 13.99 MB / 0.5078 GB, free: 148 MB / 410.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003068/0.6883, allocations: 1.899 MB / 0.5096 GB, free: 147.9 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01003/0.6983, allocations: 7.263 MB / 0.5167 GB, free: 147.5 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.721e-05/0.6983, allocations: 76.94 kB / 0.5168 GB, free: 147.4 MB / 410.8 MB Notification: Performance of pre-optimization done (n=361): time 4.338e-06/0.6983, allocations: 0 / 0.5168 GB, free: 147.4 MB / 410.8 MB Notification: Performance of matching and sorting (n=403): time 0.01619/0.7145, allocations: 11.13 MB / 0.5276 GB, free: 145 MB / 410.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.85e-05/0.7146, allocations: 91.86 kB / 0.5277 GB, free: 145 MB / 410.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004441/0.719, allocations: 5.069 MB / 0.5327 GB, free: 144 MB / 410.8 MB Notification: Performance of collectPreVariables (initialization): time 0.00016/0.7192, allocations: 94.64 kB / 0.5328 GB, free: 144 MB / 410.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001938/0.7211, allocations: 6.548 MB / 0.5392 GB, free: 138.5 MB / 410.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005957/0.7217, allocations: 1.507 MB / 0.5406 GB, free: 137.1 MB / 410.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001354/0.7231, allocations: 1.699 MB / 0.5423 GB, free: 135.5 MB / 410.8 MB Notification: Performance of setup shared object (initialization): time 4.561e-05/0.7231, allocations: 484.7 kB / 0.5428 GB, free: 135.1 MB / 410.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001638/0.7247, allocations: 1.054 MB / 0.5438 GB, free: 134.2 MB / 410.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003003/0.7277, allocations: 6.684 MB / 0.5503 GB, free: 125.4 MB / 410.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005036/0.7328, allocations: 8.574 MB / 0.5587 GB, free: 114.5 MB / 410.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.609e-05/0.7328, allocations: 36 kB / 0.5587 GB, free: 114.5 MB / 410.8 MB Notification: Performance of matching and sorting (n=1007) (initialization): time 0.007485/0.7403, allocations: 7.103 MB / 0.5657 GB, free: 108 MB / 410.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.653e-05/0.7403, allocations: 60 kB / 0.5657 GB, free: 108 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-05/0.7404, allocations: 128 kB / 0.5658 GB, free: 107.8 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001555/0.742, allocations: 0.9195 MB / 0.5667 GB, free: 107.1 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002968/0.7449, allocations: 1.864 MB / 0.5686 GB, free: 105.5 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00521/0.7501, allocations: 8.509 MB / 0.5769 GB, free: 97.15 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002602/0.7527, allocations: 451.1 kB / 0.5773 GB, free: 96.77 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003257/0.7531, allocations: 427.7 kB / 0.5777 GB, free: 96.37 MB / 410.8 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.002251/0.7553, allocations: 0.7274 MB / 0.5784 GB, free: 95.62 MB / 410.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006378/0.756, allocations: 0.6875 MB / 0.5791 GB, free: 94.94 MB / 410.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004618/0.7606, allocations: 3.834 MB / 0.5828 GB, free: 91.65 MB / 410.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.31e-05/0.7606, allocations: 40 kB / 0.5829 GB, free: 91.61 MB / 410.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.295e-06/0.7606, allocations: 12 kB / 0.5829 GB, free: 91.6 MB / 410.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.063e-05/0.7606, allocations: 27.89 kB / 0.5829 GB, free: 91.57 MB / 410.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0124/0.773, allocations: 12.06 MB / 0.5947 GB, free: 79.46 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.005e-06/0.773, allocations: 8.062 kB / 0.5947 GB, free: 79.45 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001665/0.7747, allocations: 0.7801 MB / 0.5954 GB, free: 78.67 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001395/0.7761, allocations: 0.7356 MB / 0.5962 GB, free: 77.91 MB / 410.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001641/0.7762, allocations: 91.97 kB / 0.5963 GB, free: 77.82 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004444/0.7807, allocations: 8.013 MB / 0.6041 GB, free: 69.45 MB / 410.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.7807, allocations: 4 kB / 0.6041 GB, free: 69.45 MB / 410.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006135/0.7868, allocations: 4.799 MB / 0.6088 GB, free: 64.51 MB / 410.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00143/0.7883, allocations: 0.9646 MB / 0.6097 GB, free: 63.54 MB / 410.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004502/0.7887, allocations: 79.92 kB / 0.6098 GB, free: 63.46 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00123/0.7899, allocations: 227.8 kB / 0.61 GB, free: 63.24 MB / 410.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003658/0.7903, allocations: 290.6 kB / 0.6103 GB, free: 62.95 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001569/0.7905, allocations: 124 kB / 0.6104 GB, free: 62.83 MB / 410.8 MB Notification: Performance of sorting global known variables: time 0.002655/0.7931, allocations: 2.326 MB / 0.6127 GB, free: 60.53 MB / 410.8 MB Notification: Performance of sort global known variables: time 1e-07/0.7931, allocations: 0 / 0.6127 GB, free: 60.53 MB / 410.8 MB Notification: Performance of remove unused functions: time 0.005156/0.7983, allocations: 2.039 MB / 0.6147 GB, free: 58.49 MB / 410.8 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.0004456/0.7987, allocations: 255.8 kB / 0.6149 GB, free: 58.23 MB / 410.8 MB Notification: Performance of simCode: created initialization part: time 0.006727/0.8054, allocations: 5.097 MB / 0.6199 GB, free: 53.08 MB / 410.8 MB Notification: Performance of simCode: created event and clocks part: time 6.853e-06/0.8055, allocations: 0 / 0.6199 GB, free: 53.08 MB / 410.8 MB Notification: Performance of simCode: created simulation system equations: time 0.002428/0.8079, allocations: 2.329 MB / 0.6222 GB, free: 50.69 MB / 410.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003603/0.8115, allocations: 1.326 MB / 0.6235 GB, free: 49.39 MB / 410.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01963/0.8311, allocations: 18.65 MB / 0.6417 GB, free: 30.57 MB / 410.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002039/0.8332, allocations: 3.236 MB / 0.6448 GB, free: 27.3 MB / 410.8 MB Notification: Performance of simCode: alias equations: time 0.003571/0.8367, allocations: 2.031 MB / 0.6468 GB, free: 25.26 MB / 410.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007741/0.8375, allocations: 436.4 kB / 0.6472 GB, free: 24.83 MB / 410.8 MB Notification: Performance of SimCode: time 1.423e-06/0.8375, allocations: 0 / 0.6472 GB, free: 24.83 MB / 410.8 MB Notification: Performance of Templates: time 0.1921/1.03, allocations: 69.69 MB / 0.7153 GB, free: 124.8 MB / 410.8 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.5665463749319315]