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.SMPM_OpenCircuit.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.001784/0.001784, allocations: 112.2 kB / 20.43 MB, free: 1.457 MB / 14.72 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.001523/0.001523, allocations: 180.4 kB / 23.72 MB, free: 4.699 MB / 14.72 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 1.41/1.41, allocations: 225.6 MB / 252.5 MB, free: 13.01 MB / 206.1 MB " [Timeout remaining time 178] 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.SMPM_OpenCircuit,fileNamePrefix="Modelica_4_0_0_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_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00163/0.00163, allocations: 47.92 kB / 370.5 MB, free: 9.832 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2628/0.2644, allocations: 52.19 MB / 422.7 MB, free: 14.58 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.03735/0.3018, allocations: 30.54 MB / 453.2 MB, free: 15.91 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02043/0.3222, allocations: 8.685 MB / 461.9 MB, free: 7.195 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005202/0.3274, allocations: 218.9 kB / 462.1 MB, free: 6.98 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01298/0.3404, allocations: 5.013 MB / 467.1 MB, free: 1.953 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01072/0.3511, allocations: 3.115 MB / 470.2 MB, free: 14.83 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005796/0.3569, allocations: 1.643 MB / 471.9 MB, free: 13.19 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01412/0.371, allocations: 8.773 MB / 480.6 MB, free: 4.387 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01987/0.3909, allocations: 9.22 MB / 489.9 MB, free: 11.07 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008717/0.3996, allocations: 4.347 MB / 494.2 MB, free: 6.707 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008891/0.4085, allocations: 4.796 MB / 499 MB, free: 1.895 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003546/0.4121, allocations: 1.164 MB / 0.4884 GB, free: 0.7305 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005163/0.4172, allocations: 1.539 MB / 0.4899 GB, free: 15.19 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004211/0.4214, allocations: 2.423 MB / 0.4923 GB, free: 12.76 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008681/0.4301, allocations: 4.665 MB / 0.4969 GB, free: 8.078 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02334/0.4535, allocations: 15.85 MB / 0.5123 GB, free: 8.18 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.616e-06/0.4535, allocations: 0 / 0.5123 GB, free: 8.18 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.206e-06/0.4535, allocations: 0 / 0.5123 GB, free: 8.18 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0005426/0.454, allocations: 0 / 0.5123 GB, free: 8.18 MB / 430.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.03321/0.4872, allocations: 9.853 MB / 0.522 GB, free: 14.24 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.687e-05/0.4873, allocations: 8.031 kB / 0.522 GB, free: 14.23 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004548/0.4918, allocations: 1.156 MB / 0.5231 GB, free: 13.06 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03033/0.5221, allocations: 5.314 MB / 0.5283 GB, free: 7.738 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01302/0.5352, allocations: 5.109 MB / 0.5333 GB, free: 2.543 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006738/0.5358, allocations: 0.5376 MB / 0.5338 GB, free: 2.004 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003016/0.5389, allocations: 0.7069 MB / 0.5345 GB, free: 1.297 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2283/0.7672, allocations: 11.32 MB / 0.5456 GB, free: 93.14 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002862/0.7675, allocations: 17.53 kB / 0.5456 GB, free: 93.14 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001589/0.769, allocations: 302.8 kB / 0.5459 GB, free: 92.92 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003255/0.7694, allocations: 444.3 kB / 0.5463 GB, free: 92.87 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01932/0.7887, allocations: 10.84 MB / 0.5569 GB, free: 88.06 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05873/0.8474, allocations: 36.53 MB / 0.5925 GB, free: 52.15 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01155/0.859, allocations: 7.467 MB / 0.5998 GB, free: 45.89 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003735/0.8627, allocations: 2.412 MB / 0.6022 GB, free: 43.47 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01358/0.8763, allocations: 7.472 MB / 0.6095 GB, free: 36.16 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.929e-05/0.8763, allocations: 64.56 kB / 0.6096 GB, free: 36.09 MB / 446.1 MB Notification: Performance of pre-optimization done (n=217): time 4.789e-06/0.8763, allocations: 3.984 kB / 0.6096 GB, free: 36.09 MB / 446.1 MB Notification: Performance of matching and sorting (n=233): time 0.0183/0.8946, allocations: 10.29 MB / 0.6196 GB, free: 26.11 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001573/0.8962, allocations: 1.899 MB / 0.6215 GB, free: 24.07 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005776/0.902, allocations: 3.819 MB / 0.6252 GB, free: 20.32 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003428/0.9023, allocations: 69.7 kB / 0.6253 GB, free: 20.25 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001693/0.904, allocations: 3.686 MB / 0.6289 GB, free: 16.62 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007743/0.9048, allocations: 0.8663 MB / 0.6297 GB, free: 15.77 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001753/0.9065, allocations: 0.9575 MB / 0.6306 GB, free: 14.8 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.833e-05/0.9066, allocations: 305.1 kB / 0.6309 GB, free: 14.5 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002484/0.9091, allocations: 1.891 MB / 0.6328 GB, free: 12.6 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003324/0.9124, allocations: 4.392 MB / 0.6371 GB, free: 6.973 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006988/0.9194, allocations: 6.79 MB / 0.6437 GB, free: 14.98 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.422e-05/0.9195, allocations: 24 kB / 0.6437 GB, free: 14.95 MB / 462.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.01536/0.9348, allocations: 6.986 MB / 0.6505 GB, free: 7.949 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.00011/0.9349, allocations: 44 kB / 0.6506 GB, free: 7.906 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001447/0.9351, allocations: 84 kB / 0.6507 GB, free: 7.824 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002295/0.9374, allocations: 0.7473 MB / 0.6514 GB, free: 7.07 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004084/0.9415, allocations: 1.115 MB / 0.6525 GB, free: 5.953 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008568/0.95, allocations: 5.542 MB / 0.6579 GB, free: 304 kB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004211/0.9542, allocations: 311.5 kB / 0.6582 GB, free: 15.99 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000884/0.9551, allocations: 283.9 kB / 0.6585 GB, free: 15.71 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.005676/0.9608, allocations: 2.522 MB / 0.6609 GB, free: 13.18 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001282/0.9621, allocations: 409.3 kB / 0.6613 GB, free: 12.78 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009542/0.9716, allocations: 4.243 MB / 0.6655 GB, free: 8.512 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.508e-05/0.9716, allocations: 24 kB / 0.6655 GB, free: 8.488 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.19e-05/0.9717, allocations: 4 kB / 0.6655 GB, free: 8.484 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.704e-05/0.9717, allocations: 15.95 kB / 0.6655 GB, free: 8.469 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02915/1.001, allocations: 13.96 MB / 0.6791 GB, free: 10.31 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.653e-05/1.001, allocations: 16.88 kB / 0.6791 GB, free: 10.3 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002025/1.003, allocations: 475.2 kB / 0.6796 GB, free: 9.832 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002208/1.005, allocations: 0.7007 MB / 0.6803 GB, free: 9.121 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003833/1.006, allocations: 67.98 kB / 0.6803 GB, free: 9.055 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01073/1.016, allocations: 7.29 MB / 0.6875 GB, free: 1.523 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002122/1.018, allocations: 1.857 MB / 0.6893 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01265/1.031, allocations: 6.741 MB / 0.6959 GB, free: 8.527 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002623/1.034, allocations: 0.7471 MB / 0.6966 GB, free: 7.777 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001052/1.035, allocations: 63.98 kB / 0.6967 GB, free: 7.715 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002328/1.037, allocations: 163.9 kB / 0.6968 GB, free: 7.555 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005791/1.038, allocations: 241.1 kB / 0.697 GB, free: 7.316 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002767/1.038, allocations: 87.98 kB / 0.6971 GB, free: 7.23 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.005581/1.043, allocations: 2.509 MB / 0.6996 GB, free: 4.742 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.81e-07/1.043, allocations: 0 / 0.6996 GB, free: 4.742 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.006657/1.05, allocations: 1.293 MB / 0.7008 GB, free: 3.449 MB / 0.4981 GB 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.01366/1.064, allocations: 7.428 MB / 0.7081 GB, free: 11.75 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.00952/1.073, allocations: 4.812 MB / 0.7128 GB, free: 6.922 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.776e-05/1.073, allocations: 4 kB / 0.7128 GB, free: 6.918 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.004784/1.078, allocations: 2.183 MB / 0.7149 GB, free: 4.715 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006427/1.085, allocations: 0.9832 MB / 0.7159 GB, free: 3.75 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3008/1.385, allocations: 46.26 MB / 0.7611 GB, free: 186.3 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004935/1.39, allocations: 4.493 MB / 0.7655 GB, free: 184.6 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0038/1.394, allocations: 1.362 MB / 0.7668 GB, free: 184.6 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003044/1.397, allocations: 2.542 MB / 0.7693 GB, free: 182.5 MB / 0.545 GB Notification: Performance of SimCode: time 1.754e-06/1.397, allocations: 0 / 0.7693 GB, free: 182.5 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1613/1.558, allocations: 108.9 MB / 0.8757 GB, free: 80.29 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.66/24.21, allocations: 8.047 kB / 0.8757 GB, free: 80.28 MB / 0.545 GB " [Timeout remaining time 636] (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit_fmu --startTime=0 --stopTime=0.1 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_OpenCircuit/SMPM_OpenCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.176222714828327]