Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001344/0.001344, allocations: 79.59 kB / 21.18 MB, free: 3.387 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.0009924/0.0009924, allocations: 165.4 kB / 24.56 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9161/0.9161, allocations: 177.1 MB / 205 MB, free: 5.285 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.0_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_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.332e-06/1.332e-06, allocations: 0 / 273 MB, free: 1.336 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.033e-05/2.166e-05, allocations: 2.312 kB / 273 MB, free: 1.332 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.13/0.13, allocations: 41.07 MB / 314.1 MB, free: 6.973 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0181/0.1481, allocations: 11.14 MB / 325.3 MB, free: 14.47 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007518/0.1556, allocations: 381.9 kB / 325.6 MB, free: 14.09 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01501/0.1706, allocations: 9.372 MB / 335 MB, free: 4.688 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01154/0.1822, allocations: 3.778 MB / 338.8 MB, free: 0.8867 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006345/0.1885, allocations: 2.459 MB / 341.2 MB, free: 14.43 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0164/0.2049, allocations: 14 MB / 355.2 MB, free: 388 kB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02413/0.2291, allocations: 17.46 MB / 372.7 MB, free: 14.76 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01252/0.2416, allocations: 10.92 MB / 383.6 MB, free: 3.824 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00873/0.2503, allocations: 7.571 MB / 391.2 MB, free: 12.24 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003804/0.2541, allocations: 1.977 MB / 393.2 MB, free: 10.26 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003884/0.258, allocations: 2.394 MB / 395.5 MB, free: 7.867 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002767/0.2608, allocations: 4.153 MB / 399.7 MB, free: 3.703 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.006258/0.267, allocations: 5.255 MB / 405 MB, free: 14.44 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01214/0.2792, allocations: 12.85 MB / 417.8 MB, free: 1.555 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.2792, allocations: 0 / 417.8 MB, free: 1.555 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.2792, allocations: 3.938 kB / 417.8 MB, free: 1.551 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0005094/0.2797, allocations: 0 / 417.8 MB, free: 1.551 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3414 * Number of variables: 3414 Notification: Performance of Generate backend data structure: time 0.02451/0.3042, allocations: 16.51 MB / 434.3 MB, free: 0.9102 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.854e-05/0.3042, allocations: 8.031 kB / 434.3 MB, free: 0.9023 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.229/0.5332, allocations: 7.989 MB / 442.3 MB, free: 73.32 MB / 378.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01002/0.5432, allocations: 7.924 MB / 450.2 MB, free: 72.68 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004522/0.5437, allocations: 0.9312 MB / 451.2 MB, free: 72.66 MB / 378.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001732/0.5454, allocations: 1.235 MB / 452.4 MB, free: 72.64 MB / 378.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01627/0.5617, allocations: 10.56 MB / 463 MB, free: 71.5 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002012/0.5619, allocations: 19.25 kB / 463 MB, free: 71.49 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007434/0.5626, allocations: 0.5053 MB / 463.5 MB, free: 71.1 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003125/0.5629, allocations: 0.6581 MB / 464.1 MB, free: 71.03 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01024/0.5732, allocations: 5.541 MB / 469.7 MB, free: 67.13 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0409/0.6141, allocations: 49.04 MB / 0.5066 GB, free: 18.32 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007904/0.622, allocations: 9.004 MB / 0.5154 GB, free: 10.97 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001879/0.6238, allocations: 1.719 MB / 0.517 GB, free: 9.242 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006448/0.6303, allocations: 5.805 MB / 0.5227 GB, free: 3.688 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.701e-05/0.6303, allocations: 80.17 kB / 0.5228 GB, free: 3.598 MB / 378.8 MB Notification: Performance of pre-optimization done (n=361): time 5.35e-06/0.6303, allocations: 0 / 0.5228 GB, free: 3.598 MB / 378.8 MB Notification: Performance of matching and sorting (n=403): time 0.01635/0.6467, allocations: 10.9 MB / 0.5334 GB, free: 9.008 MB / 394.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.871e-05/0.6467, allocations: 98.14 kB / 0.5335 GB, free: 8.902 MB / 394.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004698/0.6514, allocations: 4.616 MB / 0.538 GB, free: 4.281 MB / 394.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001821/0.6516, allocations: 89.7 kB / 0.5381 GB, free: 4.188 MB / 394.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002958/0.6546, allocations: 6.081 MB / 0.544 GB, free: 14.09 MB / 410.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.000869/0.6554, allocations: 1.487 MB / 0.5455 GB, free: 12.62 MB / 410.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001403/0.6568, allocations: 1.5 MB / 0.547 GB, free: 11.11 MB / 410.8 MB Notification: Performance of setup shared object (initialization): time 9.103e-05/0.6569, allocations: 476.8 kB / 0.5474 GB, free: 10.64 MB / 410.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001929/0.6588, allocations: 0.9895 MB / 0.5484 GB, free: 9.645 MB / 410.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003562/0.6624, allocations: 5.558 MB / 0.5538 GB, free: 2.156 MB / 410.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00589/0.6683, allocations: 7.219 MB / 0.5609 GB, free: 9.363 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.798e-05/0.6683, allocations: 32 kB / 0.5609 GB, free: 9.332 MB / 426.8 MB Notification: Performance of matching and sorting (n=890) (initialization): time 0.008227/0.6766, allocations: 6.318 MB / 0.5671 GB, free: 3.633 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.775e-05/0.6766, allocations: 52.03 kB / 0.5671 GB, free: 3.582 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.449e-05/0.6767, allocations: 100 kB / 0.5672 GB, free: 3.484 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001706/0.6784, allocations: 0.8868 MB / 0.5681 GB, free: 2.578 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002934/0.6813, allocations: 1.616 MB / 0.5697 GB, free: 1.082 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006663/0.688, allocations: 8.451 MB / 0.5779 GB, free: 8.34 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002694/0.6907, allocations: 399.7 kB / 0.5783 GB, free: 7.949 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003526/0.691, allocations: 366.7 kB / 0.5786 GB, free: 7.594 MB / 442.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 466 * 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 (841): * Single equations (assignments): 836 * 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,59.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002125/0.6932, allocations: 0.636 MB / 0.5793 GB, free: 7.066 MB / 442.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007779/0.6939, allocations: 0.6645 MB / 0.5799 GB, free: 6.398 MB / 442.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005313/0.6992, allocations: 3.756 MB / 0.5836 GB, free: 2.621 MB / 442.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.036e-05/0.6993, allocations: 44 kB / 0.5836 GB, free: 2.578 MB / 442.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.047e-06/0.6993, allocations: 8 kB / 0.5836 GB, free: 2.57 MB / 442.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.414e-05/0.6993, allocations: 19.92 kB / 0.5836 GB, free: 2.551 MB / 442.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1527/0.852, allocations: 11.81 MB / 0.5952 GB, free: 105 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.214e-05/0.852, allocations: 5.312 kB / 0.5952 GB, free: 105 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00178/0.8538, allocations: 0.7659 MB / 0.5959 GB, free: 105 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001487/0.8552, allocations: 0.7352 MB / 0.5966 GB, free: 105 MB / 442.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001874/0.8554, allocations: 94.31 kB / 0.5967 GB, free: 105 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004619/0.8601, allocations: 8.002 MB / 0.6046 GB, free: 99.57 MB / 442.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.8601, allocations: 7.156 kB / 0.6046 GB, free: 99.57 MB / 442.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00616/0.8662, allocations: 4.773 MB / 0.6092 GB, free: 98.86 MB / 442.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001361/0.8676, allocations: 0.9403 MB / 0.6101 GB, free: 98.86 MB / 442.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004163/0.868, allocations: 74.38 kB / 0.6102 GB, free: 98.86 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001133/0.8691, allocations: 207.3 kB / 0.6104 GB, free: 98.86 MB / 442.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003522/0.8695, allocations: 296.7 kB / 0.6107 GB, free: 98.85 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001613/0.8696, allocations: 127.5 kB / 0.6108 GB, free: 98.85 MB / 442.8 MB Notification: Performance of sorting global known variables: time 0.002372/0.872, allocations: 2.15 MB / 0.6129 GB, free: 98.63 MB / 442.8 MB Notification: Performance of sort global known variables: time 8e-08/0.872, allocations: 0 / 0.6129 GB, free: 98.63 MB / 442.8 MB Notification: Performance of remove unused functions: time 0.004174/0.8762, allocations: 1.921 MB / 0.6148 GB, free: 98.63 MB / 442.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%), (8,38,59.4%), (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.0004487/0.8766, allocations: 275.4 kB / 0.615 GB, free: 98.54 MB / 442.8 MB Notification: Performance of simCode: created initialization part: time 0.005428/0.8821, allocations: 4.758 MB / 0.6197 GB, free: 97.83 MB / 442.8 MB Notification: Performance of simCode: created event and clocks part: time 4.738e-06/0.8821, allocations: 0 / 0.6197 GB, free: 97.83 MB / 442.8 MB Notification: Performance of simCode: created simulation system equations: time 0.00212/0.8842, allocations: 2.343 MB / 0.622 GB, free: 97.2 MB / 442.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003075/0.8873, allocations: 1.309 MB / 0.6233 GB, free: 97.08 MB / 442.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01858/0.9058, allocations: 17.61 MB / 0.6405 GB, free: 87.97 MB / 442.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001952/0.9078, allocations: 3.099 MB / 0.6435 GB, free: 86.46 MB / 442.8 MB Notification: Performance of simCode: alias equations: time 0.003029/0.9108, allocations: 1.845 MB / 0.6453 GB, free: 85.3 MB / 442.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007332/0.9116, allocations: 417.5 kB / 0.6457 GB, free: 84.95 MB / 442.8 MB Notification: Performance of SimCode: time 1.593e-06/0.9116, allocations: 0 / 0.6457 GB, free: 84.95 MB / 442.8 MB Notification: Performance of Templates: time 0.07732/0.9889, allocations: 71.25 MB / 0.7153 GB, free: 18.32 MB / 442.8 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/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.364920509979129]