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.0008251/0.0008251, allocations: 79.7 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.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.000852/0.000852, allocations: 170 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.9045/0.9045, allocations: 177.1 MB / 204.3 MB, free: 5.719 MB / 186.7 MB " [Timeout remaining time 179] 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 1.353e-06/1.353e-06, allocations: 0 / 324.6 MB, free: 15.8 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.04e-05/2.175e-05, allocations: 2.281 kB / 324.6 MB, free: 15.8 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.02104/0.02107, allocations: 26.66 MB / 351.3 MB, free: 5.004 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01989/0.04095, allocations: 8.569 MB / 359.8 MB, free: 12.41 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005226/0.04618, allocations: 222.9 kB / 360 MB, free: 12.19 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008157/0.05434, allocations: 4.869 MB / 364.9 MB, free: 7.305 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00859/0.06293, allocations: 3.125 MB / 368 MB, free: 4.168 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003948/0.06688, allocations: 1.61 MB / 369.6 MB, free: 2.562 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.01212/0.07899, allocations: 9.192 MB / 378.8 MB, free: 9.34 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01162/0.09061, allocations: 9.115 MB / 388 MB, free: 128 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0103/0.1009, allocations: 6.372 MB / 394.3 MB, free: 9.742 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007642/0.1086, allocations: 4.073 MB / 398.4 MB, free: 5.66 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00278/0.1113, allocations: 1.16 MB / 399.6 MB, free: 4.5 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004049/0.1154, allocations: 1.546 MB / 401.1 MB, free: 2.953 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003202/0.1186, allocations: 2.462 MB / 403.6 MB, free: 496 kB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.006241/0.1248, allocations: 3.146 MB / 406.7 MB, free: 13.33 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01626/0.1411, allocations: 16.04 MB / 422.7 MB, free: 13.25 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.255e-06/0.1411, allocations: 0 / 422.7 MB, free: 13.25 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.725e-06/0.1411, allocations: 0 / 422.7 MB, free: 13.25 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0004399/0.1415, allocations: 0 / 422.7 MB, free: 13.25 MB / 394.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.02236/0.1639, allocations: 9.802 MB / 432.6 MB, free: 3.355 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.406e-05/0.164, allocations: 12.03 kB / 432.6 MB, free: 3.344 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00424/0.1682, allocations: 1.149 MB / 433.7 MB, free: 2.184 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01592/0.1841, allocations: 5.228 MB / 438.9 MB, free: 12.95 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009139/0.1933, allocations: 5.125 MB / 444.1 MB, free: 7.727 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00034/0.1936, allocations: 0.5338 MB / 444.6 MB, free: 7.191 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002083/0.1957, allocations: 0.7069 MB / 445.3 MB, free: 6.484 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1718/0.3675, allocations: 11.58 MB / 456.9 MB, free: 101.9 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001262/0.3676, allocations: 18.38 kB / 456.9 MB, free: 101.9 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000493/0.3681, allocations: 296.2 kB / 457.2 MB, free: 101.6 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002481/0.3683, allocations: 446.1 kB / 457.6 MB, free: 101.6 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01034/0.3787, allocations: 10.81 MB / 468.4 MB, free: 97.38 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02613/0.4048, allocations: 33.76 MB / 0.4904 GB, free: 64.34 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006227/0.411, allocations: 7.436 MB / 0.4977 GB, free: 58.1 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001986/0.413, allocations: 2.436 MB / 0.5001 GB, free: 55.66 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006692/0.4197, allocations: 6.951 MB / 0.5069 GB, free: 48.88 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.389e-05/0.4197, allocations: 56.56 kB / 0.5069 GB, free: 48.81 MB / 410.7 MB Notification: Performance of pre-optimization done (n=217): time 3.417e-06/0.4197, allocations: 0 / 0.5069 GB, free: 48.81 MB / 410.7 MB Notification: Performance of matching and sorting (n=233): time 0.01024/0.43, allocations: 10.34 MB / 0.517 GB, free: 38.81 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0009473/0.4309, allocations: 1.886 MB / 0.5188 GB, free: 36.79 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002898/0.4338, allocations: 3.988 MB / 0.5227 GB, free: 32.88 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 9.359e-05/0.4339, allocations: 61.7 kB / 0.5228 GB, free: 32.81 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009597/0.4349, allocations: 3.674 MB / 0.5264 GB, free: 29.13 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000312/0.4352, allocations: 0.8591 MB / 0.5272 GB, free: 28.29 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007061/0.4359, allocations: 0.9536 MB / 0.5282 GB, free: 27.32 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 1.83e-05/0.4359, allocations: 309.1 kB / 0.5285 GB, free: 27.02 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001561/0.4375, allocations: 1.899 MB / 0.5303 GB, free: 25.11 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002157/0.4396, allocations: 4.438 MB / 0.5346 GB, free: 19.42 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004087/0.4437, allocations: 6.8 MB / 0.5413 GB, free: 11.41 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.72e-05/0.4437, allocations: 28 kB / 0.5413 GB, free: 11.39 MB / 410.7 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.006107/0.4498, allocations: 6.995 MB / 0.5481 GB, free: 4.375 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.166e-05/0.4499, allocations: 40 kB / 0.5482 GB, free: 4.336 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.338e-05/0.4499, allocations: 88.84 kB / 0.5483 GB, free: 4.25 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009942/0.4509, allocations: 0.7375 MB / 0.549 GB, free: 3.504 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001667/0.4526, allocations: 1.127 MB / 0.5501 GB, free: 2.375 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004352/0.4569, allocations: 5.449 MB / 0.5554 GB, free: 12.81 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002027/0.459, allocations: 307.4 kB / 0.5557 GB, free: 12.51 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002585/0.4592, allocations: 276 kB / 0.556 GB, free: 12.24 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.003126/0.4623, allocations: 2.526 MB / 0.5584 GB, free: 9.703 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004918/0.4628, allocations: 409.3 kB / 0.5588 GB, free: 9.301 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004582/0.4674, allocations: 4.259 MB / 0.563 GB, free: 5.008 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.355e-05/0.4674, allocations: 24 kB / 0.563 GB, free: 4.984 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.348e-06/0.4674, allocations: 12 kB / 0.563 GB, free: 4.973 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.546e-05/0.4675, allocations: 11.95 kB / 0.563 GB, free: 4.961 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01431/0.4818, allocations: 13.48 MB / 0.5762 GB, free: 7.281 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-05/0.4818, allocations: 12.06 kB / 0.5762 GB, free: 7.27 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001004/0.4828, allocations: 483.2 kB / 0.5767 GB, free: 6.797 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001189/0.484, allocations: 0.6893 MB / 0.5773 GB, free: 6.098 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001216/0.4841, allocations: 75.97 kB / 0.5774 GB, free: 6.023 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0059/0.49, allocations: 7.169 MB / 0.5844 GB, free: 14.63 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001091/0.4911, allocations: 1.838 MB / 0.5862 GB, free: 12.67 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006404/0.4975, allocations: 6.735 MB / 0.5928 GB, free: 5.648 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001356/0.4989, allocations: 0.7587 MB / 0.5935 GB, free: 4.887 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003072/0.4992, allocations: 68.42 kB / 0.5936 GB, free: 4.82 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009655/0.5001, allocations: 159.8 kB / 0.5937 GB, free: 4.664 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002814/0.5004, allocations: 233.3 kB / 0.594 GB, free: 4.438 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001212/0.5005, allocations: 95.97 kB / 0.5941 GB, free: 4.344 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002796/0.5033, allocations: 2.518 MB / 0.5965 GB, free: 1.812 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.9e-07/0.5033, allocations: 4 kB / 0.5965 GB, free: 1.809 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003717/0.507, allocations: 1.297 MB / 0.5978 GB, free: 0.5117 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.006863/0.5139, allocations: 7.421 MB / 0.605 GB, free: 8.805 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.005193/0.5191, allocations: 4.827 MB / 0.6097 GB, free: 3.965 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 7.494e-06/0.5191, allocations: 4 kB / 0.6097 GB, free: 3.961 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00208/0.5212, allocations: 2.183 MB / 0.6119 GB, free: 1.758 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002571/0.5238, allocations: 0.9884 MB / 0.6128 GB, free: 0.7852 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1922/0.7159, allocations: 46.24 MB / 0.658 GB, free: 151.4 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00221/0.7182, allocations: 4.028 MB / 0.6619 GB, free: 147.4 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.001958/0.7201, allocations: 1.358 MB / 0.6633 GB, free: 146.2 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001694/0.7218, allocations: 2.566 MB / 0.6658 GB, free: 143.6 MB / 490.7 MB Notification: Performance of SimCode: time 1.212e-06/0.7218, allocations: 0 / 0.6658 GB, free: 143.6 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1035/0.8253, allocations: 107.9 MB / 0.7711 GB, free: 36.73 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.21/12.04, allocations: 7.938 kB / 0.7711 GB, free: 36.72 MB / 490.7 MB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit_fmu --startTime=0 --stopTime=0.1 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 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.mat","/var/lib/jenkins/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/jenkins/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: 14.108520340174437]