Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001043/0.001043, allocations: 80.34 kB / 20.67 MB, free: 3.887 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001223/0.001223, allocations: 156.9 kB / 23.95 MB, free: 0.6094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9109/0.9109, allocations: 177 MB / 204.1 MB, free: 5.762 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,fileNamePrefix="Modelica_trunk_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_trunk_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.183e-06/1.183e-06, allocations: 0 / 324.5 MB, free: 15.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.833e-05/1.951e-05, allocations: 2.844 kB / 324.5 MB, free: 15.9 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.01869/0.01871, allocations: 26.65 MB / 351.2 MB, free: 5.113 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01618/0.03488, allocations: 8.572 MB / 359.8 MB, free: 12.52 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006017/0.0409, allocations: 218.9 kB / 360 MB, free: 12.3 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007103/0.048, allocations: 4.861 MB / 364.8 MB, free: 7.422 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008241/0.05624, allocations: 3.133 MB / 368 MB, free: 4.277 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003379/0.05962, allocations: 1.601 MB / 369.6 MB, free: 2.68 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.008939/0.06856, allocations: 9.194 MB / 378.8 MB, free: 9.453 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01052/0.07908, allocations: 9.122 MB / 387.9 MB, free: 236 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01017/0.08925, allocations: 6.36 MB / 394.3 MB, free: 9.859 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006256/0.09551, allocations: 4.077 MB / 398.3 MB, free: 5.773 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00267/0.09818, allocations: 1.16 MB / 399.5 MB, free: 4.613 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004598/0.1028, allocations: 1.542 MB / 401 MB, free: 3.07 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00242/0.1052, allocations: 2.462 MB / 403.5 MB, free: 0.6016 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.006412/0.1116, allocations: 3.146 MB / 406.6 MB, free: 13.45 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01955/0.1312, allocations: 16.04 MB / 422.7 MB, free: 13.37 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.933e-06/0.1312, allocations: 0 / 422.7 MB, free: 13.37 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.883e-06/0.1312, allocations: 0 / 422.7 MB, free: 13.37 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0005304/0.1317, allocations: 0 / 422.7 MB, free: 13.37 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.02645/0.1581, allocations: 9.806 MB / 432.5 MB, free: 3.473 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.739e-05/0.1582, allocations: 15.92 kB / 432.5 MB, free: 3.457 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004865/0.1631, allocations: 1.156 MB / 433.7 MB, free: 2.289 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0169/0.18, allocations: 5.22 MB / 438.9 MB, free: 13.06 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01154/0.1915, allocations: 5.117 MB / 444 MB, free: 7.848 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005203/0.192, allocations: 0.5299 MB / 444.5 MB, free: 7.316 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003292/0.1953, allocations: 0.7108 MB / 445.2 MB, free: 6.605 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2392/0.4345, allocations: 11.59 MB / 456.8 MB, free: 101.8 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002836/0.4348, allocations: 14.56 kB / 456.8 MB, free: 101.8 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002236/0.437, allocations: 298.8 kB / 457.1 MB, free: 101.6 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003404/0.4373, allocations: 444.9 kB / 457.6 MB, free: 101.6 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02219/0.4595, allocations: 10.82 MB / 468.4 MB, free: 97.32 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05312/0.5127, allocations: 33.74 MB / 0.4904 GB, free: 64.43 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008099/0.5208, allocations: 7.452 MB / 0.4976 GB, free: 58.18 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002935/0.5237, allocations: 2.446 MB / 0.5 GB, free: 55.73 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009634/0.5333, allocations: 6.939 MB / 0.5068 GB, free: 48.95 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.077e-05/0.5334, allocations: 56.56 kB / 0.5068 GB, free: 48.89 MB / 410.7 MB Notification: Performance of pre-optimization done (n=217): time 4.118e-06/0.5334, allocations: 3.938 kB / 0.5069 GB, free: 48.88 MB / 410.7 MB Notification: Performance of matching and sorting (n=233): time 0.0164/0.5498, allocations: 10.33 MB / 0.5169 GB, free: 38.89 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001422/0.5512, allocations: 1.893 MB / 0.5188 GB, free: 36.86 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004472/0.5557, allocations: 3.983 MB / 0.5227 GB, free: 32.95 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004662/0.5561, allocations: 65.7 kB / 0.5227 GB, free: 32.88 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001174/0.5573, allocations: 3.668 MB / 0.5263 GB, free: 29.21 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006479/0.558, allocations: 0.8552 MB / 0.5272 GB, free: 28.37 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008725/0.5588, allocations: 0.9535 MB / 0.5281 GB, free: 27.4 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.136e-05/0.5589, allocations: 305.1 kB / 0.5284 GB, free: 27.1 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001802/0.5607, allocations: 1.899 MB / 0.5302 GB, free: 25.2 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002393/0.5631, allocations: 4.446 MB / 0.5346 GB, free: 19.5 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005003/0.5681, allocations: 6.797 MB / 0.5412 GB, free: 11.5 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001122/0.5682, allocations: 24 kB / 0.5412 GB, free: 11.47 MB / 410.7 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.008759/0.5769, allocations: 7.003 MB / 0.5481 GB, free: 4.453 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.113e-05/0.577, allocations: 40 kB / 0.5481 GB, free: 4.414 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001046/0.5771, allocations: 88 kB / 0.5482 GB, free: 4.328 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001209/0.5783, allocations: 0.7419 MB / 0.5489 GB, free: 3.578 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002115/0.5804, allocations: 1.119 MB / 0.55 GB, free: 2.457 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005121/0.5855, allocations: 5.443 MB / 0.5553 GB, free: 12.9 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003394/0.5889, allocations: 319.2 kB / 0.5556 GB, free: 12.59 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000786/0.5897, allocations: 280 kB / 0.5559 GB, free: 12.32 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.00444/0.5941, allocations: 2.529 MB / 0.5584 GB, free: 9.773 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001158/0.5953, allocations: 413.3 kB / 0.5588 GB, free: 9.367 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005641/0.6009, allocations: 4.244 MB / 0.5629 GB, free: 5.09 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.815e-05/0.601, allocations: 24 kB / 0.5629 GB, free: 5.066 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.367e-06/0.601, allocations: 7.938 kB / 0.5629 GB, free: 5.059 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.583e-05/0.601, allocations: 11.95 kB / 0.5629 GB, free: 5.047 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01962/0.6206, allocations: 13.48 MB / 0.5761 GB, free: 7.359 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.682e-05/0.6206, allocations: 12 kB / 0.5761 GB, free: 7.348 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001056/0.6217, allocations: 487.3 kB / 0.5766 GB, free: 6.871 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00142/0.6231, allocations: 0.6895 MB / 0.5773 GB, free: 6.172 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001704/0.6233, allocations: 71.97 kB / 0.5773 GB, free: 6.102 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00717/0.6304, allocations: 7.177 MB / 0.5843 GB, free: 14.7 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001476/0.6319, allocations: 1.838 MB / 0.5861 GB, free: 12.74 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008358/0.6403, allocations: 6.739 MB / 0.5927 GB, free: 5.719 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002177/0.6424, allocations: 0.7549 MB / 0.5935 GB, free: 4.961 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005606/0.643, allocations: 63.98 kB / 0.5935 GB, free: 4.898 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00112/0.6441, allocations: 159.9 kB / 0.5937 GB, free: 4.742 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003951/0.6445, allocations: 237.2 kB / 0.5939 GB, free: 4.512 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000132/0.6447, allocations: 95.97 kB / 0.594 GB, free: 4.418 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.003485/0.6481, allocations: 2.522 MB / 0.5964 GB, free: 1.883 MB / 458.7 MB Notification: Performance of sort global known variables: time 2e-07/0.6481, allocations: 0 / 0.5964 GB, free: 1.883 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005505/0.6536, allocations: 1.297 MB / 0.5977 GB, free: 0.5859 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.009218/0.6629, allocations: 7.415 MB / 0.605 GB, free: 8.883 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.006916/0.6698, allocations: 4.819 MB / 0.6097 GB, free: 4.051 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.765e-05/0.6698, allocations: 8 kB / 0.6097 GB, free: 4.043 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003193/0.673, allocations: 2.189 MB / 0.6118 GB, free: 1.836 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004433/0.6774, allocations: 0.9917 MB / 0.6128 GB, free: 0.8633 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2559/0.9333, allocations: 46.25 MB / 0.6579 GB, free: 151.1 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003108/0.9364, allocations: 4.021 MB / 0.6619 GB, free: 147.2 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.002611/0.939, allocations: 1.374 MB / 0.6632 GB, free: 145.9 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0026/0.9416, allocations: 2.554 MB / 0.6657 GB, free: 143.4 MB / 490.7 MB Notification: Performance of SimCode: time 2.164e-06/0.9416, allocations: 0 / 0.6657 GB, free: 143.4 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1197/1.061, allocations: 107.9 MB / 0.771 GB, free: 36.29 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.05/12.11, allocations: 11.86 kB / 0.7711 GB, free: 36.28 MB / 490.7 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit_fmu --startTime=0 --stopTime=0.1 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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.209109296090901]