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.0008651/0.0008651, 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.0007432/0.0007432, 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.8814/0.8814, allocations: 173.4 MB / 200.4 MB, free: 9.426 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.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 1.984e-06/1.984e-06, allocations: 0 / 318.5 MB, free: 6.348 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.429e-05/1.627e-05, allocations: 2.281 kB / 318.5 MB, free: 6.344 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.01969/0.01971, allocations: 26.1 MB / 344.6 MB, free: 12.12 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01706/0.03676, allocations: 8.33 MB / 352.9 MB, free: 3.762 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004478/0.04124, allocations: 222.9 kB / 353.1 MB, free: 3.543 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006432/0.04767, allocations: 4.861 MB / 358 MB, free: 14.67 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008167/0.05584, allocations: 3.122 MB / 361.1 MB, free: 11.53 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00373/0.05957, allocations: 1.57 MB / 362.7 MB, free: 9.969 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.009758/0.06933, allocations: 9.077 MB / 371.7 MB, free: 0.8555 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01137/0.0807, allocations: 9.115 MB / 380.9 MB, free: 7.637 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00787/0.08857, allocations: 6.356 MB / 387.2 MB, free: 1.273 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00515/0.09372, allocations: 4.057 MB / 391.3 MB, free: 13.2 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001752/0.09548, allocations: 1.16 MB / 392.4 MB, free: 12.04 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00201/0.09748, allocations: 1.523 MB / 394 MB, free: 10.52 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001304/0.09879, allocations: 2.462 MB / 396.4 MB, free: 8.051 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005163/0.104, allocations: 3.146 MB / 399.6 MB, free: 4.898 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01863/0.1226, allocations: 16 MB / 415.6 MB, free: 4.859 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.123e-06/0.1226, allocations: 7.938 kB / 415.6 MB, free: 4.852 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.485e-06/0.1226, allocations: 0 / 415.6 MB, free: 4.852 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0004422/0.123, allocations: 0 / 415.6 MB, free: 4.852 MB / 378.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.02205/0.1451, allocations: 9.752 MB / 425.3 MB, free: 11.01 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.711e-05/0.1451, allocations: 16.86 kB / 425.3 MB, free: 11 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002849/0.148, allocations: 1.145 MB / 426.5 MB, free: 9.84 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01579/0.1638, allocations: 5.325 MB / 431.8 MB, free: 4.504 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01049/0.1743, allocations: 5.082 MB / 436.9 MB, free: 15.33 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005014/0.1748, allocations: 0.5298 MB / 437.4 MB, free: 14.8 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003116/0.1779, allocations: 0.7108 MB / 438.1 MB, free: 14.09 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02297/0.2009, allocations: 11.55 MB / 449.7 MB, free: 2.402 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002153/0.2011, allocations: 19.83 kB / 449.7 MB, free: 2.383 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00133/0.2024, allocations: 300 kB / 450 MB, free: 2.09 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003051/0.2027, allocations: 443 kB / 450.4 MB, free: 1.656 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1838/0.3865, allocations: 10.78 MB / 461.2 MB, free: 109.1 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04795/0.4344, allocations: 33.6 MB / 494.8 MB, free: 78.02 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007256/0.4417, allocations: 7.371 MB / 0.4904 GB, free: 71.85 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002556/0.4442, allocations: 2.42 MB / 0.4928 GB, free: 69.43 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009388/0.4536, allocations: 6.868 MB / 0.4995 GB, free: 62.72 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.401e-05/0.4536, allocations: 52.56 kB / 0.4995 GB, free: 62.66 MB / 410.7 MB Notification: Performance of pre-optimization done (n=217): time 4.699e-06/0.4536, allocations: 0 / 0.4995 GB, free: 62.66 MB / 410.7 MB Notification: Performance of matching and sorting (n=233): time 0.01261/0.4663, allocations: 10.28 MB / 0.5096 GB, free: 52.71 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001149/0.4674, allocations: 1.883 MB / 0.5114 GB, free: 50.68 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004196/0.4716, allocations: 3.973 MB / 0.5153 GB, free: 46.83 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002187/0.4718, allocations: 65.64 kB / 0.5153 GB, free: 46.76 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0011/0.4729, allocations: 3.664 MB / 0.5189 GB, free: 43.1 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004898/0.4734, allocations: 0.8552 MB / 0.5198 GB, free: 42.25 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008722/0.4743, allocations: 0.9535 MB / 0.5207 GB, free: 41.29 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.553e-05/0.4743, allocations: 305.1 kB / 0.521 GB, free: 40.98 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001715/0.476, allocations: 1.891 MB / 0.5228 GB, free: 39.09 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002093/0.4781, allocations: 4.442 MB / 0.5272 GB, free: 33.39 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004187/0.4823, allocations: 6.788 MB / 0.5338 GB, free: 25.4 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.379e-05/0.4824, allocations: 28 kB / 0.5338 GB, free: 25.37 MB / 410.7 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.007004/0.4894, allocations: 6.982 MB / 0.5406 GB, free: 18.37 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.093e-05/0.4894, allocations: 42.81 kB / 0.5407 GB, free: 18.33 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.588e-05/0.4895, allocations: 88 kB / 0.5408 GB, free: 18.25 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001133/0.4906, allocations: 0.7398 MB / 0.5415 GB, free: 17.5 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001808/0.4924, allocations: 1.115 MB / 0.5426 GB, free: 16.38 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004011/0.4964, allocations: 5.436 MB / 0.5479 GB, free: 10.83 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002801/0.4992, allocations: 319.4 kB / 0.5482 GB, free: 10.52 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003489/0.4996, allocations: 272 kB / 0.5484 GB, free: 10.25 MB / 410.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.002985/0.5026, allocations: 2.526 MB / 0.5509 GB, free: 7.715 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006653/0.5032, allocations: 405.4 kB / 0.5513 GB, free: 7.316 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004483/0.5077, allocations: 4.251 MB / 0.5555 GB, free: 3.043 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.074e-05/0.5077, allocations: 24 kB / 0.5555 GB, free: 3.02 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.254e-06/0.5077, allocations: 11.94 kB / 0.5555 GB, free: 3.008 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.421e-05/0.5077, allocations: 11.95 kB / 0.5555 GB, free: 2.996 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01755/0.5253, allocations: 13.44 MB / 0.5686 GB, free: 5.363 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.365e-05/0.5253, allocations: 12 kB / 0.5686 GB, free: 5.352 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001287/0.5266, allocations: 487.3 kB / 0.5691 GB, free: 4.875 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001295/0.5279, allocations: 0.6775 MB / 0.5698 GB, free: 4.188 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000158/0.528, allocations: 71.97 kB / 0.5698 GB, free: 4.117 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006274/0.5343, allocations: 7.184 MB / 0.5768 GB, free: 12.7 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001187/0.5355, allocations: 1.83 MB / 0.5786 GB, free: 10.74 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00785/0.5433, allocations: 6.715 MB / 0.5852 GB, free: 3.75 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001733/0.5451, allocations: 0.7585 MB / 0.5859 GB, free: 2.992 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003286/0.5454, allocations: 63.92 kB / 0.586 GB, free: 2.93 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009986/0.5464, allocations: 167.9 kB / 0.5862 GB, free: 2.766 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003283/0.5467, allocations: 225.9 kB / 0.5864 GB, free: 2.547 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000116/0.5469, allocations: 91.98 kB / 0.5865 GB, free: 2.457 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002766/0.5496, allocations: 2.512 MB / 0.5889 GB, free: 15.97 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.4e-07/0.5496, allocations: 0 / 0.5889 GB, free: 15.97 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.00402/0.5536, allocations: 1.297 MB / 0.5902 GB, free: 14.68 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.00763/0.5613, allocations: 7.399 MB / 0.5974 GB, free: 6.988 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.00606/0.5673, allocations: 4.816 MB / 0.6021 GB, free: 2.164 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.246e-05/0.5673, allocations: 8.125 kB / 0.6021 GB, free: 2.156 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002542/0.5699, allocations: 2.165 MB / 0.6042 GB, free: 15.97 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003842/0.5737, allocations: 0.9807 MB / 0.6052 GB, free: 15.02 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2277/0.8014, allocations: 46.26 MB / 0.6504 GB, free: 139.8 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003393/0.8048, allocations: 4.018 MB / 0.6543 GB, free: 135.8 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.002811/0.8076, allocations: 1.363 MB / 0.6556 GB, free: 134.6 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002213/0.8098, allocations: 2.542 MB / 0.6581 GB, free: 132 MB / 474.7 MB Notification: Performance of SimCode: time 3.046e-06/0.8098, allocations: 0 / 0.6581 GB, free: 132 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1167/0.9265, allocations: 107.3 MB / 0.7629 GB, free: 25.69 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.69/12.62, allocations: 4 kB / 0.7629 GB, free: 25.69 MB / 474.7 MB " [Timeout remaining time 647] (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 & python3 -m fmpy simulate --output-file Modelica_4.0.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_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.csv","/var/lib/jenkins/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/jenkins/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: 14.46043437346816]