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.SMR_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.0009083/0.0009083, allocations: 80.8 kB / 22.29 MB, free: 2.203 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.001025/0.001025, allocations: 167.9 kB / 25.7 MB, free: 8.445 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.8138/0.8138, allocations: 158.6 MB / 187.6 MB, free: 2.785 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.SMR_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|currentController.y.[0-9,]+.",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|currentController.y.[0-9,]+.",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.583e-06/1.583e-06, allocations: 0 / 251.6 MB, free: 7.223 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.178e-05/1.337e-05, allocations: 2.312 kB / 251.6 MB, free: 7.219 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.02689/0.02691, allocations: 37.54 MB / 289.1 MB, free: 1.516 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.02054/0.04745, allocations: 11.06 MB / 300.2 MB, free: 6.414 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006106/0.05356, allocations: 322.1 kB / 300.5 MB, free: 6.098 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01193/0.06548, allocations: 9.113 MB / 309.6 MB, free: 12.94 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01007/0.07555, allocations: 3.817 MB / 313.4 MB, free: 9.102 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005459/0.08101, allocations: 2.424 MB / 315.8 MB, free: 6.676 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.01502/0.09603, allocations: 13.97 MB / 329.8 MB, free: 8.652 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02559/0.1216, allocations: 17.72 MB / 347.5 MB, free: 6.727 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1374/0.259, allocations: 10.99 MB / 358.5 MB, free: 34.97 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01292/0.2719, allocations: 7.841 MB / 366.4 MB, free: 34.97 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004232/0.2761, allocations: 1.977 MB / 368.3 MB, free: 34.97 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005868/0.282, allocations: 2.367 MB / 370.7 MB, free: 34.97 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00451/0.2865, allocations: 4.274 MB / 375 MB, free: 34.97 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.008584/0.2951, allocations: 5.297 MB / 380.3 MB, free: 34.97 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01503/0.3101, allocations: 12.98 MB / 393.3 MB, free: 31.62 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.232e-06/0.3101, allocations: 0 / 393.3 MB, free: 31.62 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3101, allocations: 4.375 kB / 393.3 MB, free: 31.62 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0005759/0.3107, allocations: 0 / 393.3 MB, free: 31.62 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: 3512 * Number of variables: 3512 Notification: Performance of Generate backend data structure: time 0.02397/0.3347, allocations: 15.1 MB / 408.4 MB, free: 21.27 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.871e-05/0.3347, allocations: 15.98 kB / 408.4 MB, free: 21.25 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03264/0.3674, allocations: 8.906 MB / 417.3 MB, free: 12.66 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009976/0.3773, allocations: 3.873 MB / 421.2 MB, free: 9.121 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006623/0.378, allocations: 0.954 MB / 422.1 MB, free: 8.184 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003126/0.3811, allocations: 1.248 MB / 423.4 MB, free: 6.953 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02212/0.4032, allocations: 10.27 MB / 433.6 MB, free: 13.14 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002184/0.4035, allocations: 18.95 kB / 433.6 MB, free: 13.13 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009859/0.4044, allocations: 0.5121 MB / 434.2 MB, free: 12.63 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005108/0.405, allocations: 0.7332 MB / 434.9 MB, free: 11.89 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009026/0.414, allocations: 5.246 MB / 440.1 MB, free: 6.648 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0439/0.4579, allocations: 38.27 MB / 478.4 MB, free: 1.645 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01063/0.4685, allocations: 8.739 MB / 487.2 MB, free: 9.113 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00155/0.4701, allocations: 1.419 MB / 488.6 MB, free: 7.734 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008789/0.4788, allocations: 5.251 MB / 493.8 MB, free: 2.688 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.315e-05/0.4789, allocations: 76.05 kB / 493.9 MB, free: 2.605 MB / 394.7 MB Notification: Performance of pre-optimization done (n=349): time 4.769e-06/0.4789, allocations: 0 / 493.9 MB, free: 2.605 MB / 394.7 MB Notification: Performance of matching and sorting (n=389): time 0.1366/0.6155, allocations: 8.807 MB / 0.4909 GB, free: 87.61 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.588e-05/0.6156, allocations: 91.22 kB / 0.491 GB, free: 87.54 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002864/0.6184, allocations: 3.694 MB / 0.4946 GB, free: 87.07 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001695/0.6186, allocations: 91.2 kB / 0.4947 GB, free: 87.04 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001439/0.62, allocations: 5.575 MB / 0.5001 GB, free: 83.53 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005482/0.6206, allocations: 1.422 MB / 0.5015 GB, free: 82.64 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001169/0.6217, allocations: 1.414 MB / 0.5029 GB, free: 82.5 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 2.83e-05/0.6218, allocations: 312.6 kB / 0.5032 GB, free: 82.2 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001021/0.6228, allocations: 0.9419 MB / 0.5041 GB, free: 82.17 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001674/0.6245, allocations: 4.458 MB / 0.5085 GB, free: 77.53 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003381/0.6279, allocations: 6.183 MB / 0.5145 GB, free: 72.83 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-05/0.6279, allocations: 36.25 kB / 0.5146 GB, free: 72.83 MB / 394.7 MB Notification: Performance of matching and sorting (n=982) (initialization): time 0.004965/0.6329, allocations: 5.168 MB / 0.5196 GB, free: 72.54 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.35e-05/0.6329, allocations: 59.09 kB / 0.5197 GB, free: 72.54 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.035e-05/0.633, allocations: 125.9 kB / 0.5198 GB, free: 72.54 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001357/0.6343, allocations: 0.8358 MB / 0.5206 GB, free: 72.47 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00278/0.6371, allocations: 1.671 MB / 0.5222 GB, free: 72.47 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004038/0.6412, allocations: 6.053 MB / 0.5281 GB, free: 68.79 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002217/0.6434, allocations: 329.5 kB / 0.5285 GB, free: 68.75 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003281/0.6437, allocations: 352.4 kB / 0.5288 GB, free: 68.75 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 572 * 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 (933): * Single equations (assignments): 928 * 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.001873/0.6456, allocations: 0.663 MB / 0.5294 GB, free: 68.55 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005567/0.6461, allocations: 438.6 kB / 0.5299 GB, free: 68.54 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003192/0.6493, allocations: 2.742 MB / 0.5325 GB, free: 68.26 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.423e-05/0.6493, allocations: 41.03 kB / 0.5326 GB, free: 68.26 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/0.6493, allocations: 7.781 kB / 0.5326 GB, free: 68.26 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.42e-05/0.6494, allocations: 23.86 kB / 0.5326 GB, free: 68.26 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00825/0.6576, allocations: 6.925 MB / 0.5394 GB, free: 67.59 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.686e-06/0.6576, allocations: 7.812 kB / 0.5394 GB, free: 67.59 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001601/0.6592, allocations: 0.6296 MB / 0.54 GB, free: 67.59 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001249/0.6605, allocations: 0.6653 MB / 0.5406 GB, free: 67.52 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001462/0.6606, allocations: 75.61 kB / 0.5407 GB, free: 67.52 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003165/0.6638, allocations: 5.617 MB / 0.5462 GB, free: 63.8 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.6638, allocations: 7.469 kB / 0.5462 GB, free: 63.8 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003399/0.6672, allocations: 3.283 MB / 0.5494 GB, free: 61.3 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008589/0.6681, allocations: 0.5879 MB / 0.55 GB, free: 60.8 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000362/0.6684, allocations: 65.12 kB / 0.55 GB, free: 60.79 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000908/0.6693, allocations: 112.2 kB / 0.5502 GB, free: 60.74 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002718/0.6696, allocations: 275.6 kB / 0.5504 GB, free: 60.64 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001384/0.6697, allocations: 78.67 kB / 0.5505 GB, free: 60.6 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.00114/0.6709, allocations: 1.668 MB / 0.5521 GB, free: 59.54 MB / 394.7 MB Notification: Performance of sort global known variables: time 8e-08/0.6709, allocations: 4 kB / 0.5521 GB, free: 59.54 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00418/0.6751, allocations: 1.962 MB / 0.554 GB, free: 57.76 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.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 (368): * Single equations (assignments): 363 * 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.0004161/0.6755, allocations: 239.6 kB / 0.5543 GB, free: 57.62 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003836/0.6793, allocations: 3.944 MB / 0.5581 GB, free: 54.73 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001549/0.6795, allocations: 108.2 kB / 0.5582 GB, free: 54.62 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001471/0.6809, allocations: 1.753 MB / 0.5599 GB, free: 53.27 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002568/0.6835, allocations: 1.192 MB / 0.5611 GB, free: 52.59 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01785/0.7013, allocations: 17.85 MB / 0.5785 GB, free: 36.25 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001701/0.7031, allocations: 2.37 MB / 0.5809 GB, free: 33.89 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002375/0.7054, allocations: 0.8823 MB / 0.5817 GB, free: 33.01 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001775/0.7072, allocations: 1.156 MB / 0.5828 GB, free: 31.88 MB / 394.7 MB Notification: Performance of SimCode: time 1.522e-06/0.7072, allocations: 4 kB / 0.5828 GB, free: 31.87 MB / 394.7 MB Notification: Performance of Templates: time 0.2087/0.9159, allocations: 71.81 MB / 0.653 GB, free: 97.64 MB / 410.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_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/SMR_CurrentSource/SMR_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: 4.906937037128955]