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.001024/0.001024, allocations: 75.75 kB / 21.97 MB, free: 2.602 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.001101/0.001101, allocations: 164.9 kB / 25.33 MB, free: 9.074 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.8817/0.8817, allocations: 158.6 MB / 187.2 MB, free: 2.902 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 2.094e-06/2.094e-06, allocations: 0 / 251.1 MB, free: 7.449 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.761e-05/2.971e-05, allocations: 6.312 kB / 251.1 MB, free: 7.441 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.03257/0.0326, allocations: 40.93 MB / 292 MB, free: 14.33 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.02114/0.05374, allocations: 11.03 MB / 303.1 MB, free: 3.266 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007039/0.06078, allocations: 326.1 kB / 303.4 MB, free: 2.945 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01194/0.07272, allocations: 9.406 MB / 312.8 MB, free: 9.496 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009415/0.08213, allocations: 3.976 MB / 316.8 MB, free: 5.496 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004571/0.0867, allocations: 2.502 MB / 319.3 MB, free: 2.988 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0125/0.0992, allocations: 14.44 MB / 333.7 MB, free: 4.492 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02014/0.1193, allocations: 17.69 MB / 351.4 MB, free: 2.629 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2608/0.3801, allocations: 10.98 MB / 362.4 MB, free: 31.43 MB / 330.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008799/0.3889, allocations: 7.901 MB / 370.3 MB, free: 31.43 MB / 330.8 MB Notification: Performance of NFPackage.collectConstants: time 0.002331/0.3913, allocations: 2.027 MB / 372.3 MB, free: 31.43 MB / 330.8 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003189/0.3945, allocations: 2.419 MB / 374.7 MB, free: 31.43 MB / 330.8 MB Notification: Performance of NFScalarize.scalarize: time 0.002504/0.397, allocations: 4.4 MB / 379.1 MB, free: 31.43 MB / 330.8 MB Notification: Performance of NFVerifyModel.verify: time 0.004814/0.4018, allocations: 5.458 MB / 384.6 MB, free: 31.43 MB / 330.8 MB Notification: Performance of NFConvertDAE.convert: time 0.01124/0.413, allocations: 13.32 MB / 397.9 MB, free: 27.09 MB / 330.8 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.413, allocations: 0 / 397.9 MB, free: 27.09 MB / 330.8 MB Notification: Performance of FrontEnd: time 1.563e-06/0.413, allocations: 0 / 397.9 MB, free: 27.09 MB / 330.8 MB Notification: Performance of Transformations before backend: time 0.0002163/0.4132, allocations: 0 / 397.9 MB, free: 27.09 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.01907/0.4323, allocations: 17.15 MB / 415.1 MB, free: 12.97 MB / 330.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.246e-05/0.4324, allocations: 11.98 kB / 415.1 MB, free: 12.96 MB / 330.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02445/0.4568, allocations: 11.48 MB / 426.6 MB, free: 1.574 MB / 330.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009673/0.4665, allocations: 7.152 MB / 433.7 MB, free: 10.73 MB / 346.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004827/0.467, allocations: 0.9685 MB / 434.7 MB, free: 9.777 MB / 346.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00142/0.4684, allocations: 1.278 MB / 436 MB, free: 8.52 MB / 346.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01781/0.4862, allocations: 11.26 MB / 447.2 MB, free: 13.13 MB / 362.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002082/0.4864, allocations: 23.86 kB / 447.3 MB, free: 13.11 MB / 362.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009153/0.4873, allocations: 0.5288 MB / 447.8 MB, free: 12.59 MB / 362.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005099/0.4878, allocations: 0.7494 MB / 448.5 MB, free: 11.84 MB / 362.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01398/0.5018, allocations: 6.396 MB / 454.9 MB, free: 5.457 MB / 362.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05828/0.5601, allocations: 51.31 MB / 0.4944 GB, free: 1.98 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1637/0.7238, allocations: 13.98 MB / 0.508 GB, free: 89.24 MB / 410.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002989/0.7268, allocations: 1.895 MB / 0.5099 GB, free: 89.14 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01121/0.738, allocations: 7.273 MB / 0.517 GB, free: 88.68 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.012e-05/0.7381, allocations: 74.77 kB / 0.5171 GB, free: 88.64 MB / 410.8 MB Notification: Performance of pre-optimization done (n=361): time 5.029e-06/0.7381, allocations: 0 / 0.5171 GB, free: 88.64 MB / 410.8 MB Notification: Performance of matching and sorting (n=403): time 0.01766/0.7557, allocations: 11.12 MB / 0.5279 GB, free: 86.48 MB / 410.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.268e-05/0.7558, allocations: 92.17 kB / 0.528 GB, free: 86.42 MB / 410.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005811/0.7616, allocations: 5.069 MB / 0.533 GB, free: 85.65 MB / 410.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001872/0.7618, allocations: 90.33 kB / 0.533 GB, free: 85.62 MB / 410.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003142/0.7649, allocations: 6.541 MB / 0.5394 GB, free: 81.99 MB / 410.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.000881/0.7658, allocations: 1.514 MB / 0.5409 GB, free: 81.06 MB / 410.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001817/0.7676, allocations: 1.701 MB / 0.5426 GB, free: 80.91 MB / 410.8 MB Notification: Performance of setup shared object (initialization): time 5.065e-05/0.7677, allocations: 478.5 kB / 0.543 GB, free: 80.44 MB / 410.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001779/0.7694, allocations: 1.066 MB / 0.5441 GB, free: 80.42 MB / 410.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003299/0.7727, allocations: 6.674 MB / 0.5506 GB, free: 73.4 MB / 410.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005299/0.778, allocations: 8.573 MB / 0.559 GB, free: 66.29 MB / 410.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.58e-05/0.7781, allocations: 38.97 kB / 0.559 GB, free: 66.29 MB / 410.8 MB Notification: Performance of matching and sorting (n=1007) (initialization): time 0.007995/0.7861, allocations: 7.11 MB / 0.5659 GB, free: 65.65 MB / 410.8 MB Notification: Performance of prepare postOptimizeDAE: time 5.134e-05/0.7861, allocations: 58.09 kB / 0.566 GB, free: 65.65 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.516e-05/0.7862, allocations: 132.2 kB / 0.5661 GB, free: 65.65 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001692/0.7879, allocations: 0.9199 MB / 0.567 GB, free: 65.55 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003005/0.7909, allocations: 1.858 MB / 0.5688 GB, free: 65 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00513/0.796, allocations: 8.517 MB / 0.5771 GB, free: 57.85 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002706/0.7987, allocations: 455.3 kB / 0.5776 GB, free: 57.59 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000329/0.7991, allocations: 431 kB / 0.578 GB, free: 57.24 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.002523/0.8016, allocations: 0.7149 MB / 0.5787 GB, free: 56.86 MB / 410.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006642/0.8022, allocations: 0.6866 MB / 0.5794 GB, free: 56.23 MB / 410.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004543/0.8068, allocations: 3.837 MB / 0.5831 GB, free: 53.22 MB / 410.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.375e-05/0.8068, allocations: 40 kB / 0.5831 GB, free: 53.18 MB / 410.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.795e-06/0.8068, allocations: 8 kB / 0.5832 GB, free: 53.18 MB / 410.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.044e-05/0.8068, allocations: 22.5 kB / 0.5832 GB, free: 53.18 MB / 410.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01359/0.8204, allocations: 12.06 MB / 0.595 GB, free: 42.82 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.207e-06/0.8204, allocations: 4 kB / 0.595 GB, free: 42.82 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001684/0.8221, allocations: 0.7724 MB / 0.5957 GB, free: 42.22 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001447/0.8236, allocations: 0.7534 MB / 0.5965 GB, free: 41.65 MB / 410.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001798/0.8237, allocations: 85.89 kB / 0.5965 GB, free: 41.57 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005086/0.8288, allocations: 7.993 MB / 0.6043 GB, free: 33.69 MB / 410.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.118e-06/0.8288, allocations: 7.625 kB / 0.6043 GB, free: 33.69 MB / 410.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006582/0.8354, allocations: 4.799 MB / 0.609 GB, free: 28.81 MB / 410.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00164/0.8371, allocations: 0.9724 MB / 0.61 GB, free: 27.84 MB / 410.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003682/0.8374, allocations: 80 kB / 0.6101 GB, free: 27.76 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001182/0.8386, allocations: 223.7 kB / 0.6103 GB, free: 27.54 MB / 410.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003229/0.8389, allocations: 302 kB / 0.6106 GB, free: 27.25 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001527/0.8391, allocations: 115.9 kB / 0.6107 GB, free: 27.14 MB / 410.8 MB Notification: Performance of sorting global known variables: time 0.002654/0.8417, allocations: 2.334 MB / 0.6129 GB, free: 24.83 MB / 410.8 MB Notification: Performance of sort global known variables: time 4.31e-07/0.8417, allocations: 4 kB / 0.613 GB, free: 24.82 MB / 410.8 MB Notification: Performance of remove unused functions: time 0.005337/0.8471, allocations: 2.039 MB / 0.6149 GB, free: 22.79 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.0004264/0.8475, allocations: 257.2 kB / 0.6152 GB, free: 22.56 MB / 410.8 MB Notification: Performance of simCode: created initialization part: time 0.005642/0.8531, allocations: 5.083 MB / 0.6202 GB, free: 17.79 MB / 410.8 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.8531, allocations: 0 / 0.6202 GB, free: 17.79 MB / 410.8 MB Notification: Performance of simCode: created simulation system equations: time 0.002148/0.8553, allocations: 2.32 MB / 0.6224 GB, free: 15.49 MB / 410.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002913/0.8582, allocations: 1.338 MB / 0.6237 GB, free: 14.18 MB / 410.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02265/0.8809, allocations: 18.67 MB / 0.642 GB, free: 11.37 MB / 426.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002527/0.8834, allocations: 3.225 MB / 0.6451 GB, free: 8.113 MB / 426.8 MB Notification: Performance of simCode: alias equations: time 0.004031/0.8874, allocations: 2.039 MB / 0.6471 GB, free: 6.066 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008924/0.8883, allocations: 440.4 kB / 0.6475 GB, free: 5.637 MB / 426.8 MB Notification: Performance of SimCode: time 1.523e-06/0.8883, allocations: 0 / 0.6475 GB, free: 5.637 MB / 426.8 MB Notification: Performance of Templates: time 0.2439/1.132, allocations: 69.68 MB / 0.7156 GB, free: 77.21 MB / 426.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.950610067229718]