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_OpenCircuit.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.001563/0.001563, allocations: 112.4 kB / 21.19 MB, free: 0.7031 MB / 14.72 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.001845/0.001845, allocations: 208.6 kB / 24.49 MB, free: 4.055 MB / 14.72 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 1.575/1.575, allocations: 207.6 MB / 235.3 MB, free: 10 MB / 190.1 MB " [Timeout remaining time 178] 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: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001968/0.001968, allocations: 55.92 kB / 347.2 MB, free: 10.1 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3024/0.3044, allocations: 49.16 MB / 396.4 MB, free: 8.984 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.03387/0.3382, allocations: 30.43 MB / 426.8 MB, free: 2.59 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02351/0.3618, allocations: 8.689 MB / 435.5 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007168/0.3689, allocations: 197 kB / 435.7 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01451/0.3834, allocations: 5.011 MB / 440.7 MB, free: 6.867 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01335/0.3968, allocations: 3.066 MB / 443.8 MB, free: 3.785 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007029/0.4038, allocations: 1.664 MB / 445.4 MB, free: 2.117 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01657/0.4204, allocations: 8.774 MB / 454.2 MB, free: 9.309 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02034/0.4407, allocations: 9.196 MB / 463.4 MB, free: 20 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009931/0.4507, allocations: 4.332 MB / 467.7 MB, free: 11.68 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01016/0.4608, allocations: 4.804 MB / 472.5 MB, free: 6.855 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003825/0.4646, allocations: 1.168 MB / 473.7 MB, free: 5.688 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005573/0.4702, allocations: 1.535 MB / 475.2 MB, free: 4.152 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004235/0.4745, allocations: 2.419 MB / 477.7 MB, free: 1.727 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00924/0.4837, allocations: 4.669 MB / 482.3 MB, free: 13.04 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02371/0.5074, allocations: 15.77 MB / 498.1 MB, free: 13.21 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.621e-06/0.5074, allocations: 0 / 498.1 MB, free: 13.21 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.5074, allocations: 0 / 498.1 MB, free: 13.21 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004501/0.5079, allocations: 0 / 498.1 MB, free: 13.21 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1994 * Number of variables: 1994 Notification: Performance of Generate backend data structure: time 0.03198/0.5398, allocations: 9.861 MB / 0.4961 GB, free: 3.266 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.028e-05/0.5399, allocations: 11.98 kB / 0.4961 GB, free: 3.254 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004089/0.544, allocations: 1.141 MB / 0.4972 GB, free: 2.102 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03027/0.5742, allocations: 5.313 MB / 0.5024 GB, free: 12.78 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0133/0.5875, allocations: 4.715 MB / 0.507 GB, free: 7.973 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000674/0.5882, allocations: 0.5299 MB / 0.5075 GB, free: 7.441 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003199/0.5914, allocations: 0.7108 MB / 0.5082 GB, free: 6.73 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03068/0.6221, allocations: 11.32 MB / 0.5192 GB, free: 11.33 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003465/0.6224, allocations: 15.91 kB / 0.5193 GB, free: 11.31 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002134/0.6246, allocations: 307.9 kB / 0.5196 GB, free: 11.01 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00052/0.6251, allocations: 450.9 kB / 0.52 GB, free: 10.57 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02569/0.6508, allocations: 10.81 MB / 0.5305 GB, free: 15.75 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2604/0.9112, allocations: 36.54 MB / 0.5662 GB, free: 123.3 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01307/0.9243, allocations: 7.438 MB / 0.5735 GB, free: 123.1 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004107/0.9284, allocations: 2.417 MB / 0.5758 GB, free: 123 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01363/0.942, allocations: 7.488 MB / 0.5832 GB, free: 121.9 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.219e-05/0.9421, allocations: 67.19 kB / 0.5832 GB, free: 121.9 MB / 478.1 MB Notification: Performance of pre-optimization done (n=217): time 4.709e-06/0.9421, allocations: 4.969 kB / 0.5832 GB, free: 121.9 MB / 478.1 MB Notification: Performance of matching and sorting (n=233): time 0.01966/0.9617, allocations: 10.28 MB / 0.5933 GB, free: 117.6 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001675/0.9634, allocations: 1.91 MB / 0.5951 GB, free: 115.9 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005398/0.9688, allocations: 3.828 MB / 0.5989 GB, free: 114.5 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004336/0.9693, allocations: 65.02 kB / 0.5989 GB, free: 114.5 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001916/0.9712, allocations: 3.675 MB / 0.6025 GB, free: 112 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007595/0.9719, allocations: 0.874 MB / 0.6034 GB, free: 111.3 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001143/0.9731, allocations: 0.9586 MB / 0.6043 GB, free: 110.8 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 4.571e-05/0.9731, allocations: 309 kB / 0.6046 GB, free: 110.5 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002253/0.9754, allocations: 1.89 MB / 0.6065 GB, free: 109.5 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003278/0.9786, allocations: 4.392 MB / 0.6107 GB, free: 105 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006043/0.9847, allocations: 6.786 MB / 0.6174 GB, free: 99.14 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.289e-05/0.9847, allocations: 24.69 kB / 0.6174 GB, free: 99.14 MB / 478.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.009979/0.9947, allocations: 6.985 MB / 0.6242 GB, free: 93.85 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.777e-05/0.9948, allocations: 43.94 kB / 0.6243 GB, free: 93.8 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000112/0.9949, allocations: 88 kB / 0.6243 GB, free: 93.72 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001707/0.9966, allocations: 0.7361 MB / 0.6251 GB, free: 92.97 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003305/0.9999, allocations: 1.123 MB / 0.6262 GB, free: 91.85 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005814/1.006, allocations: 5.538 MB / 0.6316 GB, free: 86.18 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003868/1.01, allocations: 307.4 kB / 0.6319 GB, free: 85.88 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005324/1.01, allocations: 280.1 kB / 0.6321 GB, free: 85.61 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 393 * 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 (590): * Single equations (assignments): 587 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * 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): 1 system {(4,32,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003617/1.014, allocations: 2.526 MB / 0.6346 GB, free: 83.07 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008141/1.015, allocations: 401.4 kB / 0.635 GB, free: 82.68 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006057/1.021, allocations: 4.255 MB / 0.6391 GB, free: 78.4 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.586e-05/1.021, allocations: 24 kB / 0.6391 GB, free: 78.38 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.408e-06/1.021, allocations: 8 kB / 0.6392 GB, free: 78.37 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.023e-05/1.021, allocations: 15.89 kB / 0.6392 GB, free: 78.36 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01983/1.04, allocations: 13.95 MB / 0.6528 GB, free: 64.21 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.827e-05/1.041, allocations: 12.44 kB / 0.6528 GB, free: 64.2 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001651/1.042, allocations: 484.1 kB / 0.6533 GB, free: 63.73 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001777/1.044, allocations: 0.6892 MB / 0.6539 GB, free: 63.03 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001817/1.044, allocations: 67.98 kB / 0.654 GB, free: 62.96 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007152/1.051, allocations: 7.288 MB / 0.6611 GB, free: 55.44 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001259/1.053, allocations: 1.853 MB / 0.6629 GB, free: 53.46 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008244/1.061, allocations: 6.735 MB / 0.6695 GB, free: 46.45 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002091/1.063, allocations: 0.7471 MB / 0.6702 GB, free: 45.7 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000722/1.064, allocations: 67.92 kB / 0.6703 GB, free: 45.63 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001751/1.065, allocations: 167.9 kB / 0.6705 GB, free: 45.47 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004086/1.066, allocations: 225.4 kB / 0.6707 GB, free: 45.25 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001553/1.066, allocations: 87.98 kB / 0.6708 GB, free: 45.16 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003402/1.069, allocations: 2.513 MB / 0.6732 GB, free: 42.67 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.3e-07/1.069, allocations: 0 / 0.6732 GB, free: 42.67 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005066/1.074, allocations: 1.293 MB / 0.6745 GB, free: 41.38 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 1 ($STATESET1.x) * 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 (241): * Single equations (assignments): 238 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(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): 1 system {(4,32,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.008236/1.083, allocations: 7.425 MB / 0.6817 GB, free: 33.67 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006573/1.089, allocations: 4.824 MB / 0.6864 GB, free: 28.84 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.821e-05/1.089, allocations: 7.938 kB / 0.6865 GB, free: 28.83 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003133/1.092, allocations: 2.189 MB / 0.6886 GB, free: 26.62 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004625/1.097, allocations: 0.9854 MB / 0.6896 GB, free: 25.64 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07192/1.169, allocations: 46.28 MB / 0.7347 GB, free: 7.66 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006078/1.175, allocations: 4.5 MB / 0.7391 GB, free: 3.113 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.00405/1.179, allocations: 1.356 MB / 0.7405 GB, free: 1.754 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004017/1.183, allocations: 2.539 MB / 0.7429 GB, free: 15.22 MB / 0.5137 GB Notification: Performance of SimCode: time 1.443e-06/1.183, allocations: 0 / 0.7429 GB, free: 15.22 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3489/1.532, allocations: 109 MB / 0.8494 GB, free: 105.2 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.71/24.24, allocations: 7.938 kB / 0.8494 GB, free: 105.2 MB / 0.5137 GB " [Timeout remaining time 636] (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit_fmu --startTime=0 --stopTime=0.1 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_OpenCircuit/SMPM_OpenCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 27.496022301958874]