Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001017/0.001017, allocations: 83.69 kB / 20.67 MB, free: 3.887 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.001068/0.001068, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8938/0.8938, allocations: 177.1 MB / 204.3 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4_1_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_1_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 2.786e-06/2.786e-06, allocations: 0 / 324.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.876e-05/3.155e-05, allocations: 2.281 kB / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.02763/0.02766, allocations: 26.66 MB / 351.3 MB, free: 5.145 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01844/0.0461, allocations: 8.565 MB / 359.8 MB, free: 12.55 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006749/0.05285, allocations: 226.9 kB / 360 MB, free: 12.33 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009471/0.06232, allocations: 4.862 MB / 364.9 MB, free: 7.453 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01068/0.073, allocations: 3.122 MB / 368 MB, free: 4.316 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004593/0.0776, allocations: 1.613 MB / 369.6 MB, free: 2.707 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.01146/0.08906, allocations: 9.196 MB / 378.8 MB, free: 9.477 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01283/0.1019, allocations: 9.115 MB / 388 MB, free: 268 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0107/0.1126, allocations: 6.364 MB / 394.3 MB, free: 9.887 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006672/0.1193, allocations: 4.073 MB / 398.4 MB, free: 5.805 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002933/0.1222, allocations: 1.16 MB / 399.6 MB, free: 4.645 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005188/0.1274, allocations: 1.55 MB / 401.1 MB, free: 3.094 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004053/0.1314, allocations: 2.462 MB / 403.6 MB, free: 0.625 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.006432/0.1379, allocations: 3.138 MB / 406.7 MB, free: 13.48 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01833/0.1562, allocations: 16.05 MB / 422.7 MB, free: 13.39 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.245e-06/0.1562, allocations: 0 / 422.7 MB, free: 13.39 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.567e-06/0.1562, allocations: 0 / 422.7 MB, free: 13.39 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0007369/0.157, allocations: 0 / 422.7 MB, free: 13.39 MB / 394.7 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.02299/0.1799, allocations: 9.802 MB / 432.6 MB, free: 3.5 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.625e-05/0.18, allocations: 8.031 kB / 432.6 MB, free: 3.492 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00426/0.1843, allocations: 1.152 MB / 433.7 MB, free: 2.328 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0158/0.2001, allocations: 5.228 MB / 438.9 MB, free: 13.09 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009411/0.2095, allocations: 5.125 MB / 444.1 MB, free: 7.871 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003385/0.2098, allocations: 0.5338 MB / 444.6 MB, free: 7.336 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00243/0.2122, allocations: 0.7069 MB / 445.3 MB, free: 6.629 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1767/0.389, allocations: 11.58 MB / 456.9 MB, free: 102 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002187/0.3892, allocations: 16.05 kB / 456.9 MB, free: 102 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001244/0.3904, allocations: 295.1 kB / 457.2 MB, free: 101.7 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002641/0.3907, allocations: 450.5 kB / 457.6 MB, free: 101.7 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01598/0.4067, allocations: 10.81 MB / 468.4 MB, free: 97.45 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04015/0.4468, allocations: 33.75 MB / 0.4904 GB, free: 64.49 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006975/0.4538, allocations: 7.433 MB / 0.4977 GB, free: 58.26 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002497/0.4563, allocations: 2.444 MB / 0.5001 GB, free: 55.82 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009555/0.4659, allocations: 6.954 MB / 0.5069 GB, free: 49.03 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.201e-05/0.4659, allocations: 60.55 kB / 0.5069 GB, free: 48.96 MB / 410.7 MB Notification: Performance of pre-optimization done (n=217): time 3.967e-06/0.4659, allocations: 0 / 0.5069 GB, free: 48.96 MB / 410.7 MB Notification: Performance of matching and sorting (n=233): time 0.01275/0.4786, allocations: 10.32 MB / 0.517 GB, free: 38.96 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001136/0.4798, allocations: 1.886 MB / 0.5188 GB, free: 36.94 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004147/0.4839, allocations: 3.989 MB / 0.5227 GB, free: 33.03 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003261/0.4842, allocations: 61.7 kB / 0.5228 GB, free: 32.96 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001107/0.4854, allocations: 3.672 MB / 0.5264 GB, free: 29.29 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005332/0.4859, allocations: 0.8577 MB / 0.5272 GB, free: 28.44 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008237/0.4867, allocations: 0.9535 MB / 0.5282 GB, free: 27.47 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.749e-05/0.4867, allocations: 305.2 kB / 0.5284 GB, free: 27.17 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001657/0.4884, allocations: 1.895 MB / 0.5303 GB, free: 25.27 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002158/0.4906, allocations: 4.446 MB / 0.5346 GB, free: 19.57 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004272/0.4948, allocations: 6.8 MB / 0.5413 GB, free: 11.57 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.941e-05/0.4949, allocations: 24 kB / 0.5413 GB, free: 11.54 MB / 410.7 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.006643/0.5015, allocations: 6.999 MB / 0.5481 GB, free: 4.527 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.075e-05/0.5016, allocations: 40 kB / 0.5482 GB, free: 4.488 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.089e-05/0.5016, allocations: 88 kB / 0.5483 GB, free: 4.402 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001067/0.5027, allocations: 0.7382 MB / 0.549 GB, free: 3.656 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001669/0.5044, allocations: 1.123 MB / 0.5501 GB, free: 2.531 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004605/0.509, allocations: 5.455 MB / 0.5554 GB, free: 12.96 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002876/0.5118, allocations: 311.4 kB / 0.5557 GB, free: 12.66 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004596/0.5123, allocations: 276 kB / 0.556 GB, free: 12.39 MB / 426.7 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.004296/0.5166, allocations: 2.526 MB / 0.5584 GB, free: 9.852 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001047/0.5177, allocations: 409.3 kB / 0.5588 GB, free: 9.449 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005447/0.5231, allocations: 4.259 MB / 0.563 GB, free: 5.156 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.219e-05/0.5231, allocations: 24 kB / 0.563 GB, free: 5.133 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.402e-05/0.5231, allocations: 4 kB / 0.563 GB, free: 5.129 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.828e-05/0.5232, allocations: 11.95 kB / 0.563 GB, free: 5.117 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01744/0.5406, allocations: 13.49 MB / 0.5762 GB, free: 7.422 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-05/0.5406, allocations: 8.188 kB / 0.5762 GB, free: 7.414 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001027/0.5416, allocations: 487.2 kB / 0.5767 GB, free: 6.938 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001271/0.5429, allocations: 0.6854 MB / 0.5773 GB, free: 6.242 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001424/0.543, allocations: 75.97 kB / 0.5774 GB, free: 6.168 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006088/0.5491, allocations: 7.168 MB / 0.5844 GB, free: 14.77 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001103/0.5502, allocations: 1.836 MB / 0.5862 GB, free: 12.81 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007506/0.5577, allocations: 6.737 MB / 0.5928 GB, free: 5.793 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002422/0.5602, allocations: 0.7626 MB / 0.5935 GB, free: 5.027 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007827/0.5609, allocations: 64.36 kB / 0.5936 GB, free: 4.965 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001125/0.5621, allocations: 163.9 kB / 0.5937 GB, free: 4.805 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003924/0.5625, allocations: 233.3 kB / 0.594 GB, free: 4.578 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000133/0.5626, allocations: 91.98 kB / 0.594 GB, free: 4.488 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.003593/0.5662, allocations: 2.526 MB / 0.5965 GB, free: 1.949 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.5662, allocations: 0 / 0.5965 GB, free: 1.949 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004609/0.5708, allocations: 1.293 MB / 0.5978 GB, free: 0.6562 MB / 458.7 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.007804/0.5786, allocations: 7.42 MB / 0.605 GB, free: 8.949 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.006121/0.5847, allocations: 4.827 MB / 0.6097 GB, free: 4.109 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.262e-05/0.5847, allocations: 4 kB / 0.6097 GB, free: 4.105 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002366/0.5871, allocations: 2.187 MB / 0.6119 GB, free: 1.898 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00328/0.5904, allocations: 0.9931 MB / 0.6128 GB, free: 0.9258 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2339/0.8243, allocations: 46.25 MB / 0.658 GB, free: 150.9 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003371/0.8276, allocations: 4.02 MB / 0.6619 GB, free: 146.9 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.00269/0.8303, allocations: 1.361 MB / 0.6633 GB, free: 145.7 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002285/0.8326, allocations: 2.562 MB / 0.6658 GB, free: 143.1 MB / 490.7 MB Notification: Performance of SimCode: time 1.633e-06/0.8326, allocations: 4 kB / 0.6658 GB, free: 143.1 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1077/0.9403, allocations: 107.9 MB / 0.7711 GB, free: 36.23 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.09/12.03, allocations: 0 / 0.7711 GB, free: 36.23 MB / 490.7 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit_res.csv --start-time 0 --stop-time 0.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit.fmu > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_OpenCircuit/SMPM_OpenCircuit.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 13.902083417400718]