Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008583/0.0008583, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008901/0.0008901, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8682/0.8682, allocations: 173.4 MB / 200.5 MB, free: 9.414 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.553e-06/1.553e-06, allocations: 0 / 318.5 MB, free: 6.32 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.733e-05/1.889e-05, allocations: 2.281 kB / 318.5 MB, free: 6.316 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.02443/0.02445, allocations: 33.86 MB / 352.3 MB, free: 4.293 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0197/0.04415, allocations: 10.15 MB / 362.5 MB, free: 10.11 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00675/0.0509, allocations: 370 kB / 362.9 MB, free: 9.746 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01166/0.06256, allocations: 8.424 MB / 371.3 MB, free: 1.297 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009191/0.07175, allocations: 3.57 MB / 374.9 MB, free: 13.71 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005259/0.07701, allocations: 2.317 MB / 377.2 MB, free: 11.4 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0142/0.09121, allocations: 13.4 MB / 390.6 MB, free: 13.95 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02502/0.1162, allocations: 17.17 MB / 407.7 MB, free: 12.62 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01807/0.1343, allocations: 10.32 MB / 418.1 MB, free: 2.285 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009533/0.1438, allocations: 6.665 MB / 424.7 MB, free: 11.61 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004604/0.1484, allocations: 1.949 MB / 426.7 MB, free: 9.656 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006931/0.1554, allocations: 2.335 MB / 429 MB, free: 7.32 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005855/0.1612, allocations: 4.04 MB / 433 MB, free: 3.27 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.009781/0.171, allocations: 5.076 MB / 438.1 MB, free: 14.18 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1893/0.3603, allocations: 26.21 MB / 464.3 MB, free: 50.57 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.202e-06/0.3603, allocations: 3.75 kB / 464.3 MB, free: 50.57 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.3603, allocations: 0 / 464.3 MB, free: 50.57 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0008105/0.3611, allocations: 0 / 464.3 MB, free: 50.57 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3329 * Number of variables: 3329 Notification: Performance of Generate backend data structure: time 0.03546/0.3966, allocations: 15.07 MB / 479.4 MB, free: 44.88 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.027e-05/0.3966, allocations: 10.58 kB / 479.4 MB, free: 44.88 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006632/0.4033, allocations: 1.706 MB / 481.1 MB, free: 44.45 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01993/0.4232, allocations: 6.22 MB / 487.4 MB, free: 41.99 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0163/0.4395, allocations: 8.075 MB / 495.4 MB, free: 38.95 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007465/0.4402, allocations: 0.9049 MB / 496.3 MB, free: 38.54 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005879/0.4461, allocations: 1.193 MB / 497.5 MB, free: 38.14 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04218/0.4883, allocations: 18.88 MB / 0.5043 GB, free: 21.57 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004424/0.4887, allocations: 29.59 kB / 0.5043 GB, free: 21.55 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004741/0.4935, allocations: 0.4907 MB / 0.5048 GB, free: 21.07 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003968/0.4939, allocations: 0.6382 MB / 0.5054 GB, free: 20.43 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03372/0.5276, allocations: 16.71 MB / 0.5217 GB, free: 3.715 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07188/0.5995, allocations: 52.4 MB / 0.5729 GB, free: 15.15 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01017/0.6097, allocations: 10.14 MB / 0.5828 GB, free: 6.594 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003579/0.6132, allocations: 3.373 MB / 0.5861 GB, free: 3.207 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009527/0.6228, allocations: 7.647 MB / 0.5936 GB, free: 11.67 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.338e-05/0.6228, allocations: 73.31 kB / 0.5937 GB, free: 11.59 MB / 490.7 MB Notification: Performance of pre-optimization done (n=349): time 5.44e-06/0.6228, allocations: 7.984 kB / 0.5937 GB, free: 11.58 MB / 490.7 MB Notification: Performance of matching and sorting (n=389): time 0.02217/0.645, allocations: 17.22 MB / 0.6105 GB, free: 10.39 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.981e-05/0.645, allocations: 94.47 kB / 0.6106 GB, free: 10.28 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005461/0.6505, allocations: 5.191 MB / 0.6156 GB, free: 5.098 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0002334/0.6507, allocations: 89.7 kB / 0.6157 GB, free: 5.004 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002458/0.6532, allocations: 5.612 MB / 0.6212 GB, free: 15.38 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001055/0.6542, allocations: 1.406 MB / 0.6226 GB, free: 13.99 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001407/0.6556, allocations: 1.315 MB / 0.6239 GB, free: 12.67 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 6.381e-05/0.6557, allocations: 301.1 kB / 0.6241 GB, free: 12.37 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002914/0.6586, allocations: 2.902 MB / 0.627 GB, free: 9.465 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004429/0.6631, allocations: 5.931 MB / 0.6328 GB, free: 2.164 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.1681/0.8311, allocations: 9.441 MB / 0.642 GB, free: 189 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.72e-05/0.8312, allocations: 27.28 kB / 0.642 GB, free: 189 MB / 0.5105 GB Notification: Performance of matching and sorting (n=865) (initialization): time 0.01/0.8412, allocations: 9.845 MB / 0.6516 GB, free: 185.5 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 5.002e-05/0.8413, allocations: 47 kB / 0.6517 GB, free: 185.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.291e-05/0.8413, allocations: 97.91 kB / 0.6518 GB, free: 185.5 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001383/0.8427, allocations: 0.9427 MB / 0.6527 GB, free: 185.3 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002683/0.8454, allocations: 1.585 MB / 0.6542 GB, free: 185.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006388/0.8518, allocations: 9.757 MB / 0.6638 GB, free: 178.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002946/0.8547, allocations: 413.1 kB / 0.6642 GB, free: 178.6 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004137/0.8552, allocations: 348.2 kB / 0.6645 GB, free: 178.5 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 455 * 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 (816): * Single equations (assignments): 811 * 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.004679/0.8598, allocations: 4.241 MB / 0.6686 GB, free: 175.7 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007253/0.8606, allocations: 0.5406 MB / 0.6692 GB, free: 175.4 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006306/0.8669, allocations: 6.458 MB / 0.6755 GB, free: 170 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.4e-05/0.8669, allocations: 40 kB / 0.6755 GB, free: 169.9 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.658e-06/0.8669, allocations: 8 kB / 0.6755 GB, free: 169.9 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.009e-05/0.8669, allocations: 29.14 kB / 0.6755 GB, free: 169.9 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01484/0.8817, allocations: 14.95 MB / 0.6901 GB, free: 157.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.985e-06/0.8818, allocations: 0 / 0.6901 GB, free: 157.4 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001584/0.8833, allocations: 0.7435 MB / 0.6909 GB, free: 156.8 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001119/0.8845, allocations: 0.7867 MB / 0.6916 GB, free: 156.2 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001631/0.8846, allocations: 83.75 kB / 0.6917 GB, free: 156.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005269/0.8899, allocations: 8.923 MB / 0.7004 GB, free: 147.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/0.8899, allocations: 7.938 kB / 0.7004 GB, free: 147.8 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007804/0.8977, allocations: 9.494 MB / 0.7097 GB, free: 138.6 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001645/0.8993, allocations: 1.023 MB / 0.7107 GB, free: 137.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003924/0.8997, allocations: 77.91 kB / 0.7108 GB, free: 137.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001214/0.901, allocations: 223.8 kB / 0.711 GB, free: 137.4 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003242/0.9013, allocations: 274.6 kB / 0.7113 GB, free: 137.1 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001564/0.9014, allocations: 112 kB / 0.7114 GB, free: 137 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.003069/0.9045, allocations: 3.346 MB / 0.7146 GB, free: 133.7 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2.5e-07/0.9045, allocations: 0 / 0.7146 GB, free: 133.7 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.003976/0.9085, allocations: 1.884 MB / 0.7165 GB, free: 131.8 MB / 0.5105 GB 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%), (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.007881/0.9164, allocations: 10.21 MB / 0.7265 GB, free: 121.5 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.006567/0.9229, allocations: 7.204 MB / 0.7335 GB, free: 114.2 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.9229, allocations: 4.438 kB / 0.7335 GB, free: 114.2 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.00253/0.9255, allocations: 3.163 MB / 0.7366 GB, free: 111 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003103/0.9286, allocations: 1.287 MB / 0.7378 GB, free: 109.8 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06154/0.9901, allocations: 65.25 MB / 0.8016 GB, free: 40.7 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004229/0.9943, allocations: 6.919 MB / 0.8083 GB, free: 33.73 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.003371/0.9977, allocations: 2.152 MB / 0.8104 GB, free: 31.58 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002902/1.001, allocations: 4.331 MB / 0.8146 GB, free: 27.25 MB / 0.5105 GB Notification: Performance of SimCode: time 9.42e-07/1.001, allocations: 0 / 0.8146 GB, free: 27.25 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2842/1.285, allocations: 151.6 MB / 0.9627 GB, free: 94.88 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.24/14.52, allocations: 6.656 kB / 0.9627 GB, free: 94.88 MB / 0.5105 GB " [Timeout remaining time 645] (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_CurrentSource/SMR_CurrentSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 653] Reference file matches [Calling sys.exit(0), Time elapsed: 25.98423425387591]