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.001504/0.001504, allocations: 123.9 kB / 17.79 MB, free: 5.266 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.001582/0.001582, allocations: 185.2 kB / 20.73 MB, free: 2.332 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.39/1.39, allocations: 225.6 MB / 249.1 MB, free: 3.609 MB / 190.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.001576/0.001576, allocations: 52.06 kB / 365.7 MB, free: 0.832 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1083/0.1099, allocations: 52.14 MB / 417.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.2313/0.3412, allocations: 30.47 MB / 448.3 MB, free: 8.773 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01514/0.3563, allocations: 8.664 MB / 456.9 MB, free: 8.645 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005738/0.3621, allocations: 189.8 kB / 457.1 MB, free: 8.641 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01159/0.3737, allocations: 4.999 MB / 462.1 MB, free: 7.773 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009586/0.3833, allocations: 3.046 MB / 465.2 MB, free: 6.43 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004849/0.3881, allocations: 1.606 MB / 466.8 MB, free: 5.637 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01163/0.3997, allocations: 8.721 MB / 475.5 MB, free: 1.422 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01484/0.4146, allocations: 9.99 MB / 485.5 MB, free: 12.69 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007066/0.4216, allocations: 4.253 MB / 489.7 MB, free: 10.43 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00872/0.4304, allocations: 4.788 MB / 494.5 MB, free: 7.371 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002847/0.4332, allocations: 1.163 MB / 495.7 MB, free: 6.969 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004822/0.438, allocations: 1.534 MB / 497.2 MB, free: 5.445 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002918/0.4409, allocations: 2.414 MB / 499.6 MB, free: 3.059 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008489/0.4494, allocations: 4.674 MB / 0.4925 GB, free: 14.4 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01992/0.4693, allocations: 15.84 MB / 0.508 GB, free: 14.87 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.452e-06/0.4694, allocations: 0 / 0.508 GB, free: 14.87 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.4694, allocations: 4 kB / 0.508 GB, free: 14.86 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0003282/0.4697, allocations: 0 / 0.508 GB, free: 14.86 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.0293/0.499, allocations: 9.925 MB / 0.5177 GB, free: 4.906 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.676e-05/0.499, allocations: 8.031 kB / 0.5177 GB, free: 4.898 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004862/0.5039, allocations: 1.154 MB / 0.5188 GB, free: 3.742 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03024/0.5341, allocations: 5.309 MB / 0.524 GB, free: 14.48 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.014/0.5481, allocations: 5.116 MB / 0.529 GB, free: 9.332 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006807/0.5488, allocations: 0.5359 MB / 0.5295 GB, free: 8.805 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002918/0.5517, allocations: 0.7051 MB / 0.5302 GB, free: 8.109 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03292/0.5847, allocations: 11.33 MB / 0.5412 GB, free: 12.72 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005397/0.5852, allocations: 19.84 kB / 0.5413 GB, free: 12.7 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002853/0.5881, allocations: 302.2 kB / 0.5416 GB, free: 12.42 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007096/0.5888, allocations: 443 kB / 0.542 GB, free: 11.98 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03335/0.6221, allocations: 10.83 MB / 0.5526 GB, free: 1.141 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07221/0.6943, allocations: 37.69 MB / 0.5894 GB, free: 10.61 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02443/0.7188, allocations: 27.78 MB / 0.6165 GB, free: 11.03 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005073/0.7238, allocations: 2.421 MB / 0.6189 GB, free: 8.598 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01723/0.7411, allocations: 7.914 MB / 0.6266 GB, free: 0.6094 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.881e-05/0.7411, allocations: 56.56 kB / 0.6266 GB, free: 0.5469 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=217): time 4.538e-06/0.7411, allocations: 0 / 0.6266 GB, free: 0.5469 MB / 0.5137 GB Notification: Performance of matching and sorting (n=233): time 0.02151/0.7626, allocations: 10.43 MB / 0.6368 GB, free: 6.078 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002261/0.7649, allocations: 2.009 MB / 0.6388 GB, free: 3.91 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007092/0.772, allocations: 3.83 MB / 0.6425 GB, free: 104 kB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0003739/0.7724, allocations: 69.64 kB / 0.6426 GB, free: 28 kB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.2295/1.002, allocations: 3.675 MB / 0.6462 GB, free: 173.5 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009653/1.003, allocations: 0.8633 MB / 0.647 GB, free: 173 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001483/1.004, allocations: 0.9607 MB / 0.648 GB, free: 172.9 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 4.379e-05/1.004, allocations: 301.7 kB / 0.6483 GB, free: 172.6 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002762/1.007, allocations: 1.892 MB / 0.6501 GB, free: 172.6 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004181/1.011, allocations: 4.394 MB / 0.6544 GB, free: 168.6 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007721/1.019, allocations: 6.797 MB / 0.661 GB, free: 163.3 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001792/1.019, allocations: 24.16 kB / 0.6611 GB, free: 163.3 MB / 0.5294 GB Notification: Performance of matching and sorting (n=627) (initialization): time 0.01375/1.033, allocations: 6.973 MB / 0.6679 GB, free: 160.4 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001116/1.033, allocations: 42.73 kB / 0.6679 GB, free: 160.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001813/1.033, allocations: 90.03 kB / 0.668 GB, free: 160.4 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002304/1.036, allocations: 0.7357 MB / 0.6687 GB, free: 160.2 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004253/1.04, allocations: 1.119 MB / 0.6698 GB, free: 160.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007321/1.047, allocations: 5.652 MB / 0.6753 GB, free: 156.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004423/1.052, allocations: 308.7 kB / 0.6756 GB, free: 156.7 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001108/1.053, allocations: 275.8 kB / 0.6759 GB, free: 156.7 MB / 0.5294 GB 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.005392/1.058, allocations: 2.526 MB / 0.6783 GB, free: 155.4 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001151/1.059, allocations: 398 kB / 0.6787 GB, free: 155.2 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007723/1.067, allocations: 4.25 MB / 0.6829 GB, free: 153.5 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.11e-05/1.067, allocations: 23.66 kB / 0.6829 GB, free: 153.5 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.176e-05/1.067, allocations: 11.84 kB / 0.6829 GB, free: 153.5 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.636e-05/1.067, allocations: 12.14 kB / 0.6829 GB, free: 153.5 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02347/1.091, allocations: 14.26 MB / 0.6968 GB, free: 147 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.324e-05/1.091, allocations: 8.5 kB / 0.6969 GB, free: 147 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001768/1.092, allocations: 481 kB / 0.6973 GB, free: 147 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001866/1.094, allocations: 0.6868 MB / 0.698 GB, free: 146.8 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002903/1.094, allocations: 73.31 kB / 0.6981 GB, free: 146.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007665/1.102, allocations: 7.496 MB / 0.7054 GB, free: 140.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001396/1.104, allocations: 1.956 MB / 0.7073 GB, free: 138.8 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008784/1.112, allocations: 6.745 MB / 0.7139 GB, free: 131.7 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002205/1.115, allocations: 0.8107 MB / 0.7147 GB, free: 130.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008188/1.115, allocations: 59.98 kB / 0.7147 GB, free: 130.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001888/1.117, allocations: 168.9 kB / 0.7149 GB, free: 130.7 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003992/1.118, allocations: 221.4 kB / 0.7151 GB, free: 130.5 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001843/1.118, allocations: 95.97 kB / 0.7152 GB, free: 130.4 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003722/1.122, allocations: 2.502 MB / 0.7176 GB, free: 127.9 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.11e-07/1.122, allocations: 4 kB / 0.7176 GB, free: 127.9 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.005454/1.127, allocations: 1.291 MB / 0.7189 GB, free: 126.6 MB / 0.5294 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.009374/1.136, allocations: 7.425 MB / 0.7261 GB, free: 118.9 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.007361/1.144, allocations: 4.958 MB / 0.731 GB, free: 113.9 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.117e-05/1.144, allocations: 8.062 kB / 0.731 GB, free: 113.9 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003317/1.147, allocations: 2.259 MB / 0.7332 GB, free: 111.6 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005241/1.152, allocations: 0.986 MB / 0.7342 GB, free: 110.7 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06917/1.221, allocations: 46.19 MB / 0.7793 GB, free: 60.81 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005004/1.226, allocations: 4.497 MB / 0.7837 GB, free: 56.27 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.003568/1.23, allocations: 1.368 MB / 0.785 GB, free: 54.9 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003113/1.233, allocations: 2.538 MB / 0.7875 GB, free: 52.37 MB / 0.5294 GB Notification: Performance of SimCode: time 1.813e-06/1.233, allocations: 0 / 0.7875 GB, free: 52.37 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4635/1.697, allocations: 104.8 MB / 0.8898 GB, free: 161.6 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.27/22.97, allocations: 10.52 kB / 0.8898 GB, free: 161.6 MB / 0.545 GB " [Timeout remaining time 637] (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_2/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_2/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: 26.114042500033975]