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.0009132/0.0009132, allocations: 80.8 kB / 21.5 MB, free: 2.988 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.0008824/0.0008824, allocations: 174.3 kB / 24.92 MB, free: 8.766 MB / 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.927/0.927, allocations: 177.1 MB / 205.3 MB, free: 5.48 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.523e-06/1.523e-06, allocations: 0 / 273.5 MB, free: 1.203 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.311e-05/2.464e-05, allocations: 4.422 kB / 273.6 MB, free: 1.199 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.1311/0.1312, allocations: 39.27 MB / 312.8 MB, free: 6.973 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.02152/0.1527, allocations: 11.71 MB / 324.5 MB, free: 14.42 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00874/0.1614, allocations: 383.2 kB / 324.9 MB, free: 14.29 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01355/0.175, allocations: 9.269 MB / 334.2 MB, free: 5.367 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01093/0.1859, allocations: 3.754 MB / 337.9 MB, free: 1.59 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005628/0.1915, allocations: 2.449 MB / 340.4 MB, free: 15.14 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.01494/0.2065, allocations: 14 MB / 354.4 MB, free: 1.094 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02837/0.2348, allocations: 17.87 MB / 372.3 MB, free: 15.02 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01763/0.2525, allocations: 10.95 MB / 383.2 MB, free: 4.055 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01105/0.2635, allocations: 7.68 MB / 390.9 MB, free: 12.36 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0052/0.2687, allocations: 1.98 MB / 392.9 MB, free: 10.38 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006502/0.2752, allocations: 2.394 MB / 395.3 MB, free: 7.984 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00579/0.281, allocations: 4.157 MB / 399.4 MB, free: 3.816 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0103/0.2913, allocations: 5.251 MB / 404.7 MB, free: 14.55 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01938/0.3107, allocations: 12.84 MB / 417.5 MB, free: 1.676 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.133e-06/0.3107, allocations: 4 kB / 417.5 MB, free: 1.672 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.102e-06/0.3107, allocations: 0 / 417.5 MB, free: 1.672 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.000625/0.3113, allocations: 0 / 417.5 MB, free: 1.672 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.02689/0.3382, allocations: 15 MB / 432.5 MB, free: 2.555 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.422e-05/0.3383, allocations: 16.02 kB / 432.5 MB, free: 2.539 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1568/0.495, allocations: 6.451 MB / 439 MB, free: 79.35 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01039/0.5054, allocations: 4.54 MB / 443.5 MB, free: 78.79 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007446/0.5061, allocations: 0.9286 MB / 444.5 MB, free: 78.77 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002715/0.5088, allocations: 1.23 MB / 445.7 MB, free: 78.75 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01386/0.5227, allocations: 9.894 MB / 455.6 MB, free: 77.8 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004459/0.5232, allocations: 24.2 kB / 455.6 MB, free: 77.79 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00236/0.5255, allocations: 0.504 MB / 456.1 MB, free: 77.79 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005689/0.5261, allocations: 0.657 MB / 456.8 MB, free: 77.76 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01315/0.5392, allocations: 4.778 MB / 461.5 MB, free: 76.17 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05459/0.5938, allocations: 37.84 MB / 499.4 MB, free: 42.31 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009228/0.603, allocations: 6.245 MB / 0.4938 GB, free: 36.25 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002415/0.6055, allocations: 1.322 MB / 0.4951 GB, free: 34.97 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009593/0.6151, allocations: 4.325 MB / 0.4993 GB, free: 30.81 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.097e-05/0.6151, allocations: 77.34 kB / 0.4994 GB, free: 30.73 MB / 378.7 MB Notification: Performance of pre-optimization done (n=361): time 6.462e-06/0.6151, allocations: 0 / 0.4994 GB, free: 30.73 MB / 378.7 MB Notification: Performance of matching and sorting (n=403): time 0.01872/0.6338, allocations: 8.399 MB / 0.5076 GB, free: 22.45 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.201e-05/0.6339, allocations: 90.58 kB / 0.5076 GB, free: 22.34 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003149/0.637, allocations: 3.497 MB / 0.5111 GB, free: 19.55 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004066/0.6374, allocations: 89.7 kB / 0.5111 GB, free: 19.46 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001478/0.6389, allocations: 5.252 MB / 0.5163 GB, free: 14.39 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007279/0.6396, allocations: 1.458 MB / 0.5177 GB, free: 13.02 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001283/0.6409, allocations: 1.268 MB / 0.5189 GB, free: 11.88 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 2.399e-05/0.6409, allocations: 308.4 kB / 0.5192 GB, free: 11.57 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001242/0.6422, allocations: 0.8821 MB / 0.5201 GB, free: 10.69 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001893/0.6441, allocations: 3.78 MB / 0.5238 GB, free: 5.688 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007187/0.6513, allocations: 5.333 MB / 0.529 GB, free: 15.49 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.469e-05/0.6513, allocations: 30.73 kB / 0.529 GB, free: 15.46 MB / 394.7 MB Notification: Performance of matching and sorting (n=890) (initialization): time 0.01125/0.6626, allocations: 4.648 MB / 0.5336 GB, free: 11.45 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.72e-05/0.6627, allocations: 50.84 kB / 0.5336 GB, free: 11.4 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001295/0.6628, allocations: 104 kB / 0.5337 GB, free: 11.3 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00212/0.6649, allocations: 0.809 MB / 0.5345 GB, free: 10.49 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004157/0.6691, allocations: 1.599 MB / 0.5361 GB, free: 9.012 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005008/0.6741, allocations: 6.027 MB / 0.5419 GB, free: 2.879 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003462/0.6775, allocations: 291.7 kB / 0.5422 GB, free: 2.594 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008756/0.6784, allocations: 300 kB / 0.5425 GB, free: 2.301 MB / 394.7 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.003172/0.6816, allocations: 0.6011 MB / 0.5431 GB, free: 1.809 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00106/0.6826, allocations: 439.5 kB / 0.5435 GB, free: 1.379 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004055/0.6867, allocations: 2.791 MB / 0.5462 GB, free: 14.59 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.347e-05/0.6867, allocations: 40 kB / 0.5463 GB, free: 14.55 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.093e-05/0.6867, allocations: 12 kB / 0.5463 GB, free: 14.54 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.733e-05/0.6868, allocations: 27.86 kB / 0.5463 GB, free: 14.51 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01177/0.6985, allocations: 7.058 MB / 0.5532 GB, free: 8.145 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.005e-05/0.6985, allocations: 4.5 kB / 0.5532 GB, free: 8.141 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001733/0.7003, allocations: 0.7269 MB / 0.5539 GB, free: 7.449 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001253/0.7015, allocations: 0.6695 MB / 0.5546 GB, free: 6.777 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001751/0.7017, allocations: 83.97 kB / 0.5547 GB, free: 6.695 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004349/0.706, allocations: 5.639 MB / 0.5602 GB, free: 0.9023 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.204e-06/0.7061, allocations: 15.34 kB / 0.5602 GB, free: 0.8906 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004757/0.7108, allocations: 3.429 MB / 0.5635 GB, free: 13.44 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001108/0.7119, allocations: 0.5922 MB / 0.5641 GB, free: 12.85 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003553/0.7123, allocations: 74.73 kB / 0.5642 GB, free: 12.78 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009279/0.7132, allocations: 112 kB / 0.5643 GB, free: 12.67 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000381/0.7136, allocations: 289.6 kB / 0.5646 GB, free: 12.39 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001593/0.7137, allocations: 83.97 kB / 0.5646 GB, free: 12.3 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001431/0.7152, allocations: 1.63 MB / 0.5662 GB, free: 10.89 MB / 426.7 MB Notification: Performance of sort global known variables: time 9e-08/0.7152, allocations: 0 / 0.5662 GB, free: 10.89 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004406/0.7196, allocations: 1.922 MB / 0.5681 GB, free: 8.965 MB / 426.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%), (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.0004204/0.72, allocations: 251.7 kB / 0.5683 GB, free: 8.75 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004355/0.7244, allocations: 3.735 MB / 0.572 GB, free: 5.363 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 0.00012/0.7245, allocations: 79.94 kB / 0.5721 GB, free: 5.277 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001758/0.7262, allocations: 1.811 MB / 0.5738 GB, free: 3.539 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00267/0.7289, allocations: 1.298 MB / 0.5751 GB, free: 2.297 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1323/0.8612, allocations: 17.3 MB / 0.592 GB, free: 108.4 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001772/0.8629, allocations: 2.28 MB / 0.5942 GB, free: 108.1 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002373/0.8653, allocations: 0.8508 MB / 0.5951 GB, free: 108 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002824/0.8681, allocations: 1.202 MB / 0.5962 GB, free: 107.9 MB / 426.7 MB Notification: Performance of SimCode: time 1.443e-06/0.8681, allocations: 0 / 0.5962 GB, free: 107.9 MB / 426.7 MB Notification: Performance of Templates: time 0.09069/0.9588, allocations: 74.85 MB / 0.6693 GB, free: 50.68 MB / 426.7 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 -s gbode -gbm=radauIIA3 -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.267264578957111]