Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.0008756/0.0008756, allocations: 87.62 kB / 21.43 MB, free: 3.129 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.004486/0.004486, allocations: 166 kB / 24.7 MB, free: 9.422 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8682/0.8682, allocations: 158.6 MB / 186.5 MB, free: 3.039 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_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_3_2_3_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.513e-06/1.513e-06, allocations: 0 / 298.5 MB, free: 3.496 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.451e-05/1.602e-05, allocations: 6.281 kB / 298.5 MB, free: 3.488 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.1628/0.1628, allocations: 26 MB / 324.5 MB, free: 15.84 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01822/0.1811, allocations: 8.353 MB / 332.8 MB, free: 9.695 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009104/0.1902, allocations: 196.3 kB / 333 MB, free: 9.633 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01012/0.2003, allocations: 4.844 MB / 337.9 MB, free: 6.086 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009491/0.2098, allocations: 3.075 MB / 340.9 MB, free: 3.609 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003498/0.2133, allocations: 1.589 MB / 342.5 MB, free: 2.332 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.01021/0.2235, allocations: 9.095 MB / 351.6 MB, free: 9.602 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01169/0.2352, allocations: 9.083 MB / 360.7 MB, free: 428 kB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00899/0.2442, allocations: 6.345 MB / 367 MB, free: 10.06 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004613/0.2488, allocations: 4.053 MB / 371.1 MB, free: 6 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001626/0.2504, allocations: 1.164 MB / 372.3 MB, free: 4.836 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003509/0.2539, allocations: 1.526 MB / 373.8 MB, free: 3.309 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001723/0.2556, allocations: 2.462 MB / 376.3 MB, free: 0.8398 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003537/0.2592, allocations: 3.134 MB / 379.4 MB, free: 13.7 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01266/0.2718, allocations: 15.93 MB / 395.3 MB, free: 13.72 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.74e-06/0.2719, allocations: 0 / 395.3 MB, free: 13.72 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.2719, allocations: 0 / 395.3 MB, free: 13.72 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.00038/0.2722, allocations: 0 / 395.3 MB, free: 13.72 MB / 362.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.01911/0.2913, allocations: 9.771 MB / 405.1 MB, free: 3.867 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.785e-05/0.2914, allocations: 11.98 kB / 405.1 MB, free: 3.855 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001611/0.293, allocations: 1.156 MB / 406.3 MB, free: 2.688 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01399/0.307, allocations: 5.313 MB / 411.6 MB, free: 13.36 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007575/0.3146, allocations: 4.669 MB / 416.2 MB, free: 8.602 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002709/0.3148, allocations: 0.5338 MB / 416.8 MB, free: 8.066 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001184/0.316, allocations: 0.7108 MB / 417.5 MB, free: 7.355 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01444/0.3305, allocations: 11.54 MB / 429 MB, free: 11.68 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001192/0.3306, allocations: 19.89 kB / 429 MB, free: 11.66 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005345/0.3311, allocations: 296 kB / 429.3 MB, free: 11.37 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002895/0.3314, allocations: 451 kB / 429.8 MB, free: 10.93 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01258/0.344, allocations: 10.76 MB / 440.5 MB, free: 164 kB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2057/0.5497, allocations: 33.6 MB / 474.1 MB, free: 99.43 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007889/0.5576, allocations: 7.387 MB / 481.5 MB, free: 97.37 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002387/0.56, allocations: 2.422 MB / 483.9 MB, free: 96.46 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007956/0.5679, allocations: 6.867 MB / 490.8 MB, free: 93.5 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.802e-05/0.568, allocations: 60.06 kB / 490.9 MB, free: 93.44 MB / 410.7 MB Notification: Performance of pre-optimization done (n=217): time 3.717e-06/0.568, allocations: 0 / 490.9 MB, free: 93.44 MB / 410.7 MB Notification: Performance of matching and sorting (n=233): time 0.01127/0.5792, allocations: 10.29 MB / 0.4894 GB, free: 88.92 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001056/0.5803, allocations: 1.874 MB / 0.4912 GB, free: 87.18 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003315/0.5836, allocations: 3.974 MB / 0.4951 GB, free: 85.13 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001003/0.5837, allocations: 68.39 kB / 0.4952 GB, free: 85.07 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009072/0.5846, allocations: 3.654 MB / 0.4987 GB, free: 82.14 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002957/0.5849, allocations: 0.8528 MB / 0.4996 GB, free: 81.42 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007274/0.5856, allocations: 0.9561 MB / 0.5005 GB, free: 80.84 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.462e-05/0.5857, allocations: 305.1 kB / 0.5008 GB, free: 80.54 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001516/0.5872, allocations: 1.896 MB / 0.5027 GB, free: 79.4 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002002/0.5892, allocations: 4.438 MB / 0.507 GB, free: 73.71 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003784/0.593, allocations: 6.787 MB / 0.5136 GB, free: 65.72 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.12e-05/0.593, allocations: 28 kB / 0.5136 GB, free: 65.69 MB / 410.7 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.006043/0.599, allocations: 6.977 MB / 0.5205 GB, free: 58.7 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.182e-05/0.5991, allocations: 47.75 kB / 0.5205 GB, free: 58.65 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.325e-05/0.5991, allocations: 87.09 kB / 0.5206 GB, free: 58.57 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001103/0.6002, allocations: 0.736 MB / 0.5213 GB, free: 57.82 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001811/0.602, allocations: 1.127 MB / 0.5224 GB, free: 56.7 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004122/0.6062, allocations: 5.444 MB / 0.5277 GB, free: 51.14 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002287/0.6084, allocations: 315.4 kB / 0.528 GB, free: 50.83 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002562/0.6087, allocations: 272 kB / 0.5283 GB, free: 50.57 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.002977/0.6117, allocations: 2.526 MB / 0.5308 GB, free: 48.03 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004866/0.6122, allocations: 397.5 kB / 0.5311 GB, free: 47.64 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003912/0.6161, allocations: 4.251 MB / 0.5353 GB, free: 43.36 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.117e-06/0.6161, allocations: 24 kB / 0.5353 GB, free: 43.34 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.434e-06/0.6161, allocations: 7.938 kB / 0.5353 GB, free: 43.33 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.267e-05/0.6161, allocations: 11.95 kB / 0.5353 GB, free: 43.32 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01274/0.6288, allocations: 13.44 MB / 0.5484 GB, free: 29.68 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.298e-06/0.6289, allocations: 12 kB / 0.5485 GB, free: 29.67 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008737/0.6297, allocations: 480.2 kB / 0.5489 GB, free: 29.2 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009901/0.6307, allocations: 0.693 MB / 0.5496 GB, free: 28.5 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001213/0.6308, allocations: 67.98 kB / 0.5497 GB, free: 28.43 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004405/0.6352, allocations: 7.183 MB / 0.5567 GB, free: 21.02 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007446/0.636, allocations: 1.826 MB / 0.5585 GB, free: 19.07 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005103/0.6411, allocations: 6.711 MB / 0.565 GB, free: 12.08 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001019/0.6421, allocations: 0.7626 MB / 0.5658 GB, free: 11.31 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003104/0.6424, allocations: 67.92 kB / 0.5658 GB, free: 11.25 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008929/0.6433, allocations: 163.9 kB / 0.566 GB, free: 11.09 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002407/0.6436, allocations: 229.4 kB / 0.5662 GB, free: 10.86 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.831e-05/0.6437, allocations: 84.17 kB / 0.5663 GB, free: 10.78 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002105/0.6458, allocations: 2.513 MB / 0.5687 GB, free: 8.289 MB / 410.7 MB Notification: Performance of sort global known variables: time 7e-08/0.6458, allocations: 0 / 0.5687 GB, free: 8.289 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002776/0.6485, allocations: 1.292 MB / 0.57 GB, free: 7 MB / 410.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.005533/0.6541, allocations: 7.4 MB / 0.5772 GB, free: 15.32 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005522/0.6596, allocations: 4.823 MB / 0.5819 GB, free: 10.48 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.614e-06/0.6596, allocations: 4 kB / 0.5819 GB, free: 10.48 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002327/0.6619, allocations: 2.181 MB / 0.5841 GB, free: 8.277 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002829/0.6648, allocations: 0.982 MB / 0.585 GB, free: 7.301 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1974/0.8622, allocations: 46.26 MB / 0.6302 GB, free: 149.5 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004451/0.8666, allocations: 4.016 MB / 0.6341 GB, free: 148.4 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003386/0.87, allocations: 1.362 MB / 0.6355 GB, free: 148.4 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002088/0.8721, allocations: 2.54 MB / 0.6379 GB, free: 146.3 MB / 458.7 MB Notification: Performance of SimCode: time 1.332e-06/0.8721, allocations: 1.688 kB / 0.6379 GB, free: 146.3 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1035/0.9756, allocations: 107.4 MB / 0.7428 GB, free: 50.49 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.69/12.67, allocations: 4.062 kB / 0.7428 GB, free: 50.48 MB / 458.7 MB " [Timeout remaining time 647] (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_OpenCircuit/SMPM_OpenCircuit.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.428582874126732]