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.001331/0.001331, allocations: 107.1 kB / 20.44 MB, free: 1.344 MB / 14.72 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.001427/0.001427, allocations: 210.7 kB / 23.73 MB, free: 4.523 MB / 14.72 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 1.446/1.446, allocations: 230.6 MB / 257.5 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001523/0.001523, allocations: 51.92 kB / 377.7 MB, free: 2.957 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.244/0.2455, allocations: 53.37 MB / 431.1 MB, free: 6.645 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.03469/0.2802, allocations: 26.62 MB / 457.7 MB, free: 11.91 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02058/0.3008, allocations: 8.557 MB / 466.3 MB, free: 3.324 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005567/0.3063, allocations: 222.9 kB / 466.5 MB, free: 3.105 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01317/0.3195, allocations: 4.657 MB / 471.2 MB, free: 14.44 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01204/0.3315, allocations: 3.065 MB / 474.2 MB, free: 11.36 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005971/0.3375, allocations: 1.598 MB / 475.8 MB, free: 9.766 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01551/0.353, allocations: 8.864 MB / 484.7 MB, free: 0.875 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0168/0.3698, allocations: 9.226 MB / 493.9 MB, free: 7.547 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008429/0.3783, allocations: 4.367 MB / 498.3 MB, free: 3.168 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009778/0.388, allocations: 4.889 MB / 0.4914 GB, free: 14.26 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003833/0.3919, allocations: 1.16 MB / 0.4925 GB, free: 13.1 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005579/0.3974, allocations: 1.542 MB / 0.494 GB, free: 11.56 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004319/0.4018, allocations: 2.412 MB / 0.4964 GB, free: 9.141 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007926/0.4097, allocations: 3.665 MB / 0.5 GB, free: 5.461 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02225/0.4319, allocations: 15.93 MB / 0.5155 GB, free: 5.473 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.394e-06/0.4319, allocations: 0 / 0.5155 GB, free: 5.473 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.525e-06/0.4319, allocations: 0 / 0.5155 GB, free: 5.473 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0004546/0.4324, allocations: 0 / 0.5155 GB, free: 5.473 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.03272/0.4651, allocations: 9.88 MB / 0.5252 GB, free: 11.5 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.906e-05/0.4652, allocations: 8.031 kB / 0.5252 GB, free: 11.5 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004584/0.4698, allocations: 1.141 MB / 0.5263 GB, free: 10.34 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03137/0.5011, allocations: 5.239 MB / 0.5314 GB, free: 5.094 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2451/0.7463, allocations: 5.1 MB / 0.5364 GB, free: 91.7 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008892/0.7471, allocations: 0.5328 MB / 0.5369 GB, free: 91.69 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004043/0.7512, allocations: 0.7061 MB / 0.5376 GB, free: 91.69 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02546/0.7766, allocations: 11.58 MB / 0.5489 GB, free: 87.3 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001995/0.7768, allocations: 20.69 kB / 0.5489 GB, free: 87.3 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009018/0.7777, allocations: 304.9 kB / 0.5492 GB, free: 87.08 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003075/0.7781, allocations: 450.1 kB / 0.5496 GB, free: 87.03 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01692/0.795, allocations: 10.81 MB / 0.5602 GB, free: 78.84 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05599/0.851, allocations: 33.75 MB / 0.5932 GB, free: 45 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01152/0.8625, allocations: 7.441 MB / 0.6004 GB, free: 38.77 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003365/0.8658, allocations: 2.44 MB / 0.6028 GB, free: 36.33 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01237/0.8782, allocations: 6.948 MB / 0.6096 GB, free: 29.54 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.078e-05/0.8783, allocations: 64.55 kB / 0.6097 GB, free: 29.47 MB / 446.1 MB Notification: Performance of pre-optimization done (n=217): time 4.498e-06/0.8783, allocations: 0 / 0.6097 GB, free: 29.47 MB / 446.1 MB Notification: Performance of matching and sorting (n=233): time 0.01703/0.8953, allocations: 10.32 MB / 0.6197 GB, free: 19.48 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001458/0.8967, allocations: 1.886 MB / 0.6216 GB, free: 17.45 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005072/0.9018, allocations: 3.986 MB / 0.6255 GB, free: 13.54 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002313/0.9021, allocations: 69.7 kB / 0.6255 GB, free: 13.46 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001375/0.9034, allocations: 3.687 MB / 0.6291 GB, free: 9.773 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004919/0.9039, allocations: 0.8672 MB / 0.63 GB, free: 8.918 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001038/0.905, allocations: 0.9653 MB / 0.6309 GB, free: 7.941 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.542e-05/0.905, allocations: 305.1 kB / 0.6312 GB, free: 7.641 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002187/0.9072, allocations: 1.899 MB / 0.6331 GB, free: 5.734 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00308/0.9103, allocations: 4.442 MB / 0.6374 GB, free: 48 kB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009921/0.9202, allocations: 6.812 MB / 0.6441 GB, free: 8.023 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001043/0.9203, allocations: 24 kB / 0.6441 GB, free: 8 MB / 462.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.01333/0.9336, allocations: 6.994 MB / 0.6509 GB, free: 0.9883 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.099e-05/0.9337, allocations: 47.94 kB / 0.651 GB, free: 0.9414 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001595/0.9338, allocations: 84 kB / 0.651 GB, free: 0.8594 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002067/0.9359, allocations: 0.7409 MB / 0.6518 GB, free: 112 kB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004/0.9399, allocations: 1.127 MB / 0.6529 GB, free: 14.98 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008243/0.9482, allocations: 5.444 MB / 0.6582 GB, free: 9.422 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004067/0.9522, allocations: 315.4 kB / 0.6585 GB, free: 9.113 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007683/0.953, allocations: 276 kB / 0.6587 GB, free: 8.844 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.00479/0.9578, allocations: 2.522 MB / 0.6612 GB, free: 6.309 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009437/0.9587, allocations: 405.4 kB / 0.6616 GB, free: 5.91 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008063/0.9668, allocations: 4.259 MB / 0.6657 GB, free: 1.617 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.449e-05/0.9668, allocations: 24 kB / 0.6658 GB, free: 1.594 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.144e-05/0.9668, allocations: 8 kB / 0.6658 GB, free: 1.586 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.8e-05/0.9668, allocations: 11.95 kB / 0.6658 GB, free: 1.574 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02658/0.9934, allocations: 13.49 MB / 0.679 GB, free: 3.879 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.125e-05/0.9934, allocations: 12 kB / 0.679 GB, free: 3.867 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001982/0.9954, allocations: 487.2 kB / 0.6794 GB, free: 3.391 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002127/0.9976, allocations: 0.6938 MB / 0.6801 GB, free: 2.688 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001987/0.9978, allocations: 67.98 kB / 0.6802 GB, free: 2.621 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01024/1.008, allocations: 7.173 MB / 0.6872 GB, free: 11.22 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001949/1.01, allocations: 1.833 MB / 0.689 GB, free: 9.262 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01155/1.021, allocations: 6.762 MB / 0.6956 GB, free: 2.219 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002386/1.024, allocations: 0.7549 MB / 0.6963 GB, free: 1.461 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006825/1.025, allocations: 56 kB / 0.6964 GB, free: 1.406 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001924/1.026, allocations: 168.2 kB / 0.6965 GB, free: 1.242 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000481/1.027, allocations: 233.3 kB / 0.6968 GB, free: 1.012 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000205/1.027, allocations: 95.97 kB / 0.6968 GB, free: 0.918 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.004276/1.031, allocations: 2.522 MB / 0.6993 GB, free: 14.38 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.31e-07/1.031, allocations: 0 / 0.6993 GB, free: 14.38 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.005097/1.037, allocations: 1.297 MB / 0.7006 GB, free: 13.09 MB / 0.5137 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.01156/1.048, allocations: 7.462 MB / 0.7079 GB, free: 5.34 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.008744/1.057, allocations: 4.818 MB / 0.7126 GB, free: 0.5117 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.808e-05/1.057, allocations: 5.75 kB / 0.7126 GB, free: 0.5078 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.004286/1.061, allocations: 2.177 MB / 0.7147 GB, free: 14.3 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005092/1.066, allocations: 0.9984 MB / 0.7157 GB, free: 13.33 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2846/1.351, allocations: 46.23 MB / 0.7608 GB, free: 179.6 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003967/1.355, allocations: 4.02 MB / 0.7647 GB, free: 178.4 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.003432/1.358, allocations: 1.369 MB / 0.7661 GB, free: 178.3 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003126/1.361, allocations: 2.556 MB / 0.7686 GB, free: 176.2 MB / 0.545 GB Notification: Performance of SimCode: time 1.152e-06/1.361, allocations: 0 / 0.7686 GB, free: 176.2 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1545/1.516, allocations: 110.4 MB / 0.8764 GB, free: 69.1 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.02/19.54, allocations: 10.95 kB / 0.8764 GB, free: 69.09 MB / 0.545 GB " [Timeout remaining time 640] (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/jenkins1/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/jenkins1/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: 22.161527205986204]