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.0009279/0.0009279, allocations: 87.62 kB / 21.43 MB, free: 3.137 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.004173/0.004173, allocations: 159.4 kB / 24.69 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.9284/0.9284, 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.493e-06/1.493e-06, allocations: 0 / 298.5 MB, free: 3.484 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.805e-05/1.955e-05, allocations: 2.281 kB / 298.5 MB, free: 3.48 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.1719/0.172, allocations: 25.99 MB / 324.5 MB, free: 15.69 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01685/0.1888, allocations: 8.356 MB / 332.8 MB, free: 9.555 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005589/0.1944, allocations: 197.2 kB / 333 MB, free: 9.492 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007243/0.2016, allocations: 4.842 MB / 337.9 MB, free: 5.945 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007497/0.2091, allocations: 3.07 MB / 340.9 MB, free: 3.473 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002704/0.2118, allocations: 1.599 MB / 342.5 MB, free: 2.188 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.008125/0.22, allocations: 9.083 MB / 351.6 MB, free: 9.48 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009528/0.2295, allocations: 9.096 MB / 360.7 MB, free: 292 kB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007041/0.2365, allocations: 6.348 MB / 367.1 MB, free: 9.926 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004513/0.241, allocations: 4.057 MB / 371.1 MB, free: 5.859 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001534/0.2426, allocations: 1.16 MB / 372.3 MB, free: 4.699 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002082/0.2447, allocations: 1.519 MB / 373.8 MB, free: 3.18 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001512/0.2462, allocations: 2.466 MB / 376.3 MB, free: 0.707 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002468/0.2486, allocations: 3.134 MB / 379.4 MB, free: 13.57 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01078/0.2594, allocations: 15.93 MB / 395.3 MB, free: 13.59 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.433e-06/0.2594, allocations: 3.984 kB / 395.3 MB, free: 13.59 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.355e-06/0.2594, allocations: 0 / 395.3 MB, free: 13.59 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.000196/0.2596, allocations: 3.938 kB / 395.3 MB, free: 13.59 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.01455/0.2742, allocations: 9.763 MB / 405.1 MB, free: 3.738 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.203e-05/0.2742, allocations: 19.91 kB / 405.1 MB, free: 3.719 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001248/0.2755, allocations: 1.152 MB / 406.3 MB, free: 2.555 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01378/0.2892, allocations: 5.317 MB / 411.6 MB, free: 13.23 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007289/0.2965, allocations: 4.668 MB / 416.2 MB, free: 8.465 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002788/0.2968, allocations: 0.5338 MB / 416.8 MB, free: 7.93 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001097/0.2979, allocations: 0.7069 MB / 417.5 MB, free: 7.223 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01375/0.3117, allocations: 11.55 MB / 429 MB, free: 11.54 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001194/0.3118, allocations: 23.88 kB / 429.1 MB, free: 11.52 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005323/0.3123, allocations: 296 kB / 429.3 MB, free: 11.23 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002729/0.3126, allocations: 443 kB / 429.8 MB, free: 10.79 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01317/0.3258, allocations: 10.76 MB / 440.5 MB, free: 20 kB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1796/0.5053, allocations: 33.59 MB / 474.1 MB, free: 119.3 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008612/0.5139, allocations: 7.398 MB / 481.5 MB, free: 119.1 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002881/0.5168, allocations: 2.416 MB / 483.9 MB, free: 119.1 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009021/0.5258, allocations: 6.868 MB / 490.8 MB, free: 117.9 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.057e-05/0.5259, allocations: 60.84 kB / 490.9 MB, free: 117.9 MB / 426.7 MB Notification: Performance of pre-optimization done (n=217): time 3.767e-06/0.5259, allocations: 2.75 kB / 490.9 MB, free: 117.9 MB / 426.7 MB Notification: Performance of matching and sorting (n=233): time 0.01101/0.5369, allocations: 10.28 MB / 0.4894 GB, free: 113.8 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0009999/0.5379, allocations: 1.88 MB / 0.4912 GB, free: 112.1 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003678/0.5416, allocations: 3.971 MB / 0.4951 GB, free: 110.7 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000107/0.5417, allocations: 67.48 kB / 0.4952 GB, free: 110.6 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001151/0.5428, allocations: 3.658 MB / 0.4988 GB, free: 108.1 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003259/0.5432, allocations: 0.8556 MB / 0.4996 GB, free: 107.4 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007408/0.5439, allocations: 0.9477 MB / 0.5005 GB, free: 106.9 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 3.025e-05/0.5439, allocations: 308.9 kB / 0.5008 GB, free: 106.6 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001597/0.5455, allocations: 1.889 MB / 0.5027 GB, free: 105.9 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00226/0.5478, allocations: 4.447 MB / 0.507 GB, free: 101.8 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004419/0.5522, allocations: 6.784 MB / 0.5136 GB, free: 96.44 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-05/0.5522, allocations: 27.22 kB / 0.5137 GB, free: 96.44 MB / 426.7 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.006417/0.5586, allocations: 6.978 MB / 0.5205 GB, free: 90.27 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.673e-05/0.5587, allocations: 47.94 kB / 0.5205 GB, free: 90.23 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.439e-05/0.5587, allocations: 84 kB / 0.5206 GB, free: 90.14 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001078/0.5598, allocations: 0.7444 MB / 0.5213 GB, free: 89.39 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001817/0.5616, allocations: 1.115 MB / 0.5224 GB, free: 88.27 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003635/0.5653, allocations: 5.429 MB / 0.5277 GB, free: 82.73 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002258/0.5675, allocations: 319.4 kB / 0.528 GB, free: 82.42 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001959/0.5677, allocations: 279.9 kB / 0.5283 GB, free: 82.15 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.002643/0.5704, allocations: 2.522 MB / 0.5307 GB, free: 79.61 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004165/0.5708, allocations: 401.4 kB / 0.5311 GB, free: 79.22 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003827/0.5746, allocations: 4.255 MB / 0.5353 GB, free: 74.95 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.726e-06/0.5746, allocations: 24 kB / 0.5353 GB, free: 74.92 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.5746, allocations: 8 kB / 0.5353 GB, free: 74.91 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.299e-05/0.5746, allocations: 15.89 kB / 0.5353 GB, free: 74.9 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01147/0.5861, allocations: 13.44 MB / 0.5485 GB, free: 61.26 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.636e-06/0.5861, allocations: 12 kB / 0.5485 GB, free: 61.25 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008463/0.587, allocations: 480 kB / 0.5489 GB, free: 60.78 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009373/0.5879, allocations: 0.6892 MB / 0.5496 GB, free: 60.08 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.486e-05/0.588, allocations: 67.98 kB / 0.5497 GB, free: 60.02 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004434/0.5924, allocations: 7.177 MB / 0.5567 GB, free: 52.61 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00073/0.5932, allocations: 1.833 MB / 0.5585 GB, free: 50.66 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005066/0.5982, allocations: 6.715 MB / 0.565 GB, free: 43.66 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009592/0.5992, allocations: 0.751 MB / 0.5658 GB, free: 42.91 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002402/0.5994, allocations: 64.06 kB / 0.5658 GB, free: 42.85 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008506/0.6003, allocations: 167.9 kB / 0.566 GB, free: 42.68 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002191/0.6005, allocations: 233.3 kB / 0.5662 GB, free: 42.45 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.442e-05/0.6006, allocations: 91.98 kB / 0.5663 GB, free: 42.36 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002025/0.6026, allocations: 2.509 MB / 0.5687 GB, free: 39.88 MB / 426.7 MB Notification: Performance of sort global known variables: time 7e-08/0.6026, allocations: 0 / 0.5687 GB, free: 39.88 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003043/0.6057, allocations: 1.289 MB / 0.57 GB, free: 38.59 MB / 426.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.005463/0.6111, allocations: 7.405 MB / 0.5772 GB, free: 30.9 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004747/0.6159, allocations: 4.816 MB / 0.5819 GB, free: 26.07 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.629e-06/0.6159, allocations: 0 / 0.5819 GB, free: 26.07 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001796/0.6177, allocations: 2.188 MB / 0.5841 GB, free: 23.86 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002439/0.6201, allocations: 0.9813 MB / 0.585 GB, free: 22.88 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05104/0.6711, allocations: 46.27 MB / 0.6302 GB, free: 4.918 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003165/0.6743, allocations: 4.008 MB / 0.6341 GB, free: 0.8594 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.1357/0.81, allocations: 1.363 MB / 0.6355 GB, free: 150.6 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003136/0.8131, allocations: 2.541 MB / 0.6379 GB, free: 150.6 MB / 458.7 MB Notification: Performance of SimCode: time 1.542e-06/0.8131, allocations: 1.062 kB / 0.6379 GB, free: 150.6 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1079/0.921, allocations: 107.4 MB / 0.7428 GB, free: 65.7 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.28/12.2, allocations: 7.984 kB / 0.7428 GB, free: 65.69 MB / 458.7 MB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit_fmu --startTime=0 --stopTime=0.1 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 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.mat","/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.256859068758786]