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.001705/0.001705, allocations: 107.5 kB / 20.44 MB, free: 1.062 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.001944/0.001944, allocations: 185.2 kB / 23.7 MB, free: 4.188 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.483/1.483, allocations: 225.7 MB / 252.5 MB, free: 12.86 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.001606/0.001606, allocations: 47.92 kB / 370.4 MB, free: 9.672 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3035/0.3051, allocations: 52.18 MB / 422.6 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.03441/0.3395, allocations: 26.08 MB / 448.7 MB, free: 4.203 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02073/0.3602, allocations: 8.319 MB / 457 MB, free: 11.86 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00715/0.3674, allocations: 222.9 kB / 457.2 MB, free: 11.64 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01331/0.3807, allocations: 4.644 MB / 461.9 MB, free: 6.984 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01158/0.3922, allocations: 3.038 MB / 464.9 MB, free: 3.934 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005451/0.3977, allocations: 1.571 MB / 466.5 MB, free: 2.371 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01442/0.4121, allocations: 8.77 MB / 475.2 MB, free: 9.578 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01675/0.4289, allocations: 9.084 MB / 484.3 MB, free: 400 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008546/0.4374, allocations: 4.343 MB / 488.7 MB, free: 12.04 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009414/0.4468, allocations: 4.526 MB / 493.2 MB, free: 7.492 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0043/0.4511, allocations: 1.16 MB / 494.4 MB, free: 6.332 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005817/0.4569, allocations: 1.503 MB / 495.9 MB, free: 4.828 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004524/0.4615, allocations: 2.412 MB / 498.3 MB, free: 2.41 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008872/0.4703, allocations: 3.657 MB / 0.4902 GB, free: 14.74 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02168/0.492, allocations: 15.89 MB / 0.5057 GB, free: 14.79 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.492, allocations: 4 kB / 0.5057 GB, free: 14.79 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.492, allocations: 4 kB / 0.5057 GB, free: 14.79 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0004441/0.4925, allocations: 0 / 0.5057 GB, free: 14.79 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.03062/0.5231, allocations: 9.834 MB / 0.5153 GB, free: 4.863 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.52e-05/0.5231, allocations: 8.031 kB / 0.5153 GB, free: 4.855 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004472/0.5276, allocations: 1.145 MB / 0.5164 GB, free: 3.699 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03052/0.5581, allocations: 5.314 MB / 0.5216 GB, free: 14.38 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01325/0.5714, allocations: 5.097 MB / 0.5266 GB, free: 9.191 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000549/0.5719, allocations: 0.5298 MB / 0.5271 GB, free: 8.66 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003352/0.5753, allocations: 0.7108 MB / 0.5278 GB, free: 7.949 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.246/0.8213, allocations: 11.55 MB / 0.5391 GB, free: 96.39 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002624/0.8216, allocations: 11.73 kB / 0.5391 GB, free: 96.39 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00124/0.8228, allocations: 301.4 kB / 0.5394 GB, free: 96.17 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004874/0.8233, allocations: 446.1 kB / 0.5398 GB, free: 96.12 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01927/0.8426, allocations: 10.79 MB / 0.5503 GB, free: 92.08 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04936/0.8919, allocations: 33.58 MB / 0.5831 GB, free: 61.12 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01033/0.9023, allocations: 7.384 MB / 0.5903 GB, free: 54.94 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002978/0.9052, allocations: 2.416 MB / 0.5927 GB, free: 52.52 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01162/0.9168, allocations: 6.854 MB / 0.5994 GB, free: 45.82 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.629e-05/0.9169, allocations: 60.56 kB / 0.5995 GB, free: 45.75 MB / 446.1 MB Notification: Performance of pre-optimization done (n=217): time 4.789e-06/0.9169, allocations: 0 / 0.5995 GB, free: 45.75 MB / 446.1 MB Notification: Performance of matching and sorting (n=233): time 0.01672/0.9336, allocations: 10.28 MB / 0.6095 GB, free: 35.79 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001467/0.9351, allocations: 1.89 MB / 0.6113 GB, free: 33.76 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004635/0.9397, allocations: 3.971 MB / 0.6152 GB, free: 29.91 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003481/0.9401, allocations: 69.7 kB / 0.6153 GB, free: 29.84 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001458/0.9415, allocations: 3.671 MB / 0.6189 GB, free: 26.16 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006892/0.9422, allocations: 0.869 MB / 0.6197 GB, free: 25.3 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001092/0.9433, allocations: 0.9575 MB / 0.6207 GB, free: 24.34 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.001e-05/0.9433, allocations: 305.2 kB / 0.6209 GB, free: 24.04 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002351/0.9457, allocations: 1.891 MB / 0.6228 GB, free: 22.14 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00356/0.9493, allocations: 4.446 MB / 0.6271 GB, free: 16.45 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006897/0.9562, allocations: 6.784 MB / 0.6338 GB, free: 8.457 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.215e-05/0.9562, allocations: 27.75 kB / 0.6338 GB, free: 8.434 MB / 446.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.009773/0.966, allocations: 6.981 MB / 0.6406 GB, free: 1.434 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.382e-05/0.9661, allocations: 44 kB / 0.6406 GB, free: 1.391 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001089/0.9662, allocations: 92 kB / 0.6407 GB, free: 1.301 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001782/0.968, allocations: 0.7479 MB / 0.6415 GB, free: 0.5469 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003679/0.9716, allocations: 1.119 MB / 0.6426 GB, free: 15.43 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00828/0.9799, allocations: 5.434 MB / 0.6479 GB, free: 9.875 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004386/0.9843, allocations: 311.4 kB / 0.6482 GB, free: 9.57 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006465/0.9849, allocations: 276 kB / 0.6484 GB, free: 9.301 MB / 462.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.004687/0.9896, allocations: 2.529 MB / 0.6509 GB, free: 6.758 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001009/0.9906, allocations: 409.3 kB / 0.6513 GB, free: 6.355 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008026/0.9987, allocations: 4.247 MB / 0.6554 GB, free: 2.086 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.292e-05/0.9987, allocations: 24 kB / 0.6555 GB, free: 2.062 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.159e-05/0.9987, allocations: 8 kB / 0.6555 GB, free: 2.055 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.723e-05/0.9987, allocations: 15.95 kB / 0.6555 GB, free: 2.039 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0265/1.025, allocations: 13.44 MB / 0.6686 GB, free: 4.406 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.082e-05/1.025, allocations: 12 kB / 0.6686 GB, free: 4.395 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001881/1.027, allocations: 484 kB / 0.6691 GB, free: 3.922 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002052/1.029, allocations: 0.689 MB / 0.6697 GB, free: 3.223 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001807/1.029, allocations: 67.98 kB / 0.6698 GB, free: 3.156 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01014/1.04, allocations: 7.183 MB / 0.6768 GB, free: 11.74 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001989/1.041, allocations: 1.83 MB / 0.6786 GB, free: 9.781 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01117/1.053, allocations: 6.741 MB / 0.6852 GB, free: 2.766 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002365/1.055, allocations: 0.751 MB / 0.6859 GB, free: 2.012 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005846/1.056, allocations: 56 kB / 0.686 GB, free: 1.957 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001927/1.058, allocations: 167.9 kB / 0.6861 GB, free: 1.793 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005313/1.058, allocations: 241.1 kB / 0.6864 GB, free: 1.555 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001911/1.058, allocations: 91.98 kB / 0.6865 GB, free: 1.465 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004574/1.063, allocations: 2.509 MB / 0.6889 GB, free: 14.98 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.01e-07/1.063, allocations: 0 / 0.6889 GB, free: 14.98 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.005584/1.068, allocations: 1.285 MB / 0.6902 GB, free: 13.69 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.01178/1.08, allocations: 7.445 MB / 0.6974 GB, free: 5.973 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.008903/1.089, allocations: 4.808 MB / 0.7021 GB, free: 1.152 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.045e-05/1.089, allocations: 0 / 0.7021 GB, free: 1.152 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.004008/1.093, allocations: 2.185 MB / 0.7043 GB, free: 14.95 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005145/1.098, allocations: 0.9776 MB / 0.7052 GB, free: 13.98 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2961/1.394, allocations: 46.24 MB / 0.7504 GB, free: 193.6 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003993/1.398, allocations: 4.023 MB / 0.7543 GB, free: 193.3 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.003428/1.402, allocations: 1.359 MB / 0.7556 GB, free: 193.2 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002793/1.405, allocations: 2.545 MB / 0.7581 GB, free: 192.4 MB / 0.545 GB Notification: Performance of SimCode: time 1.082e-06/1.405, allocations: 3.562 kB / 0.7581 GB, free: 192.4 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.156/1.561, allocations: 107.6 MB / 0.8632 GB, free: 94.83 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.16/19.72, allocations: 7.438 kB / 0.8632 GB, free: 94.82 MB / 0.545 GB " [Timeout remaining time 640] (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/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: 22.338671006262302]