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.0008213/0.0008213, allocations: 76.36 kB / 20.67 MB, free: 3.895 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.0007985/0.0007985, allocations: 160.9 kB / 23.95 MB, free: 0.6133 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.9122/0.9122, allocations: 177 MB / 204.1 MB, free: 5.754 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.793e-06/1.793e-06, allocations: 0 / 324.5 MB, free: 15.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.418e-05/2.597e-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.02113/0.02115, allocations: 26.66 MB / 351.2 MB, free: 5.102 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01538/0.03654, allocations: 8.569 MB / 359.8 MB, free: 12.51 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005252/0.04179, allocations: 222.9 kB / 360 MB, free: 12.29 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00693/0.04872, allocations: 4.861 MB / 364.9 MB, free: 7.41 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007589/0.05631, allocations: 3.125 MB / 368 MB, free: 4.273 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00337/0.05968, allocations: 1.604 MB / 369.6 MB, free: 2.676 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.009136/0.06882, allocations: 9.194 MB / 378.8 MB, free: 9.445 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01062/0.07944, allocations: 9.122 MB / 387.9 MB, free: 228 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009735/0.08917, allocations: 6.36 MB / 394.3 MB, free: 9.852 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006993/0.09617, allocations: 4.077 MB / 398.3 MB, free: 5.766 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003236/0.0994, allocations: 1.156 MB / 399.5 MB, free: 4.609 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004008/0.1034, allocations: 1.546 MB / 401 MB, free: 3.062 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002174/0.1056, allocations: 2.466 MB / 403.5 MB, free: 0.5898 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00626/0.1118, allocations: 3.142 MB / 406.6 MB, free: 13.44 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01552/0.1274, allocations: 16.04 MB / 422.7 MB, free: 13.36 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.935e-06/0.1274, allocations: 4 kB / 422.7 MB, free: 13.35 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1274, allocations: 0 / 422.7 MB, free: 13.35 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0004049/0.1278, allocations: 0 / 422.7 MB, free: 13.35 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.02564/0.1534, allocations: 9.798 MB / 432.5 MB, free: 3.465 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.321e-05/0.1535, allocations: 15.98 kB / 432.5 MB, free: 3.449 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00356/0.157, allocations: 1.148 MB / 433.7 MB, free: 2.289 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01537/0.1724, allocations: 5.228 MB / 438.9 MB, free: 13.05 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01048/0.1829, allocations: 5.113 MB / 444 MB, free: 7.844 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004098/0.1833, allocations: 0.5377 MB / 444.5 MB, free: 7.305 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002896/0.1862, allocations: 0.703 MB / 445.2 MB, free: 6.602 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2163/0.4025, allocations: 11.59 MB / 456.8 MB, free: 101.9 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002536/0.4027, allocations: 16.7 kB / 456.8 MB, free: 101.9 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002139/0.4049, allocations: 301.5 kB / 457.1 MB, free: 101.7 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004121/0.4053, allocations: 443.3 kB / 457.6 MB, free: 101.6 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01782/0.4231, allocations: 10.82 MB / 468.4 MB, free: 97.38 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03987/0.463, allocations: 33.74 MB / 0.4904 GB, free: 64.43 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007055/0.47, allocations: 7.449 MB / 0.4976 GB, free: 58.18 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002185/0.4722, allocations: 2.445 MB / 0.5 GB, free: 55.73 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007897/0.4801, allocations: 6.942 MB / 0.5068 GB, free: 48.96 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.76e-05/0.4801, allocations: 60.5 kB / 0.5069 GB, free: 48.89 MB / 410.7 MB Notification: Performance of pre-optimization done (n=217): time 4.048e-06/0.4801, allocations: 3.938 kB / 0.5069 GB, free: 48.88 MB / 410.7 MB Notification: Performance of matching and sorting (n=233): time 0.01273/0.4929, allocations: 10.32 MB / 0.5169 GB, free: 38.91 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001275/0.4941, allocations: 1.894 MB / 0.5188 GB, free: 36.88 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00441/0.4985, allocations: 3.985 MB / 0.5227 GB, free: 32.96 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002592/0.4988, allocations: 65.7 kB / 0.5227 GB, free: 32.89 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001113/0.4999, allocations: 3.666 MB / 0.5263 GB, free: 29.22 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004965/0.5004, allocations: 0.8553 MB / 0.5272 GB, free: 28.38 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007703/0.5012, allocations: 0.9535 MB / 0.5281 GB, free: 27.41 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.159e-05/0.5012, allocations: 301.1 kB / 0.5284 GB, free: 27.12 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00163/0.5028, allocations: 1.903 MB / 0.5302 GB, free: 25.21 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002091/0.5049, allocations: 4.442 MB / 0.5346 GB, free: 19.52 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004174/0.5091, allocations: 6.801 MB / 0.5412 GB, free: 11.51 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.494e-05/0.5092, allocations: 24 kB / 0.5412 GB, free: 11.48 MB / 410.7 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.006883/0.516, allocations: 7.003 MB / 0.5481 GB, free: 4.465 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.104e-05/0.5161, allocations: 40 kB / 0.5481 GB, free: 4.426 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.113e-05/0.5162, allocations: 88 kB / 0.5482 GB, free: 4.34 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001124/0.5173, allocations: 0.742 MB / 0.5489 GB, free: 3.59 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001859/0.5191, allocations: 1.119 MB / 0.55 GB, free: 2.469 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00512/0.5243, allocations: 5.447 MB / 0.5553 GB, free: 12.91 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003807/0.5281, allocations: 319.4 kB / 0.5556 GB, free: 12.6 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007908/0.5289, allocations: 276 kB / 0.5559 GB, free: 12.33 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.004035/0.5329, allocations: 2.529 MB / 0.5584 GB, free: 9.785 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008474/0.5337, allocations: 409.5 kB / 0.5588 GB, free: 9.383 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005269/0.539, allocations: 4.248 MB / 0.5629 GB, free: 5.102 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.78e-05/0.539, allocations: 31.92 kB / 0.5629 GB, free: 5.07 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.082e-05/0.539, allocations: 4 kB / 0.5629 GB, free: 5.066 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.786e-05/0.539, allocations: 11.95 kB / 0.563 GB, free: 5.055 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01799/0.557, allocations: 13.47 MB / 0.5761 GB, free: 7.375 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-05/0.557, allocations: 12 kB / 0.5761 GB, free: 7.363 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001024/0.5581, allocations: 491.3 kB / 0.5766 GB, free: 6.883 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001257/0.5593, allocations: 0.6895 MB / 0.5773 GB, free: 6.184 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001493/0.5595, allocations: 71.98 kB / 0.5773 GB, free: 6.113 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006539/0.566, allocations: 7.175 MB / 0.5843 GB, free: 14.71 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001341/0.5674, allocations: 1.836 MB / 0.5861 GB, free: 12.75 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008532/0.5759, allocations: 6.745 MB / 0.5927 GB, free: 5.723 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002035/0.5779, allocations: 0.751 MB / 0.5935 GB, free: 4.969 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004758/0.5784, allocations: 63.98 kB / 0.5935 GB, free: 4.906 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001011/0.5794, allocations: 163.9 kB / 0.5937 GB, free: 4.746 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003752/0.5798, allocations: 237.2 kB / 0.5939 GB, free: 4.516 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001209/0.5799, allocations: 91.97 kB / 0.594 GB, free: 4.426 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.003601/0.5835, allocations: 2.522 MB / 0.5964 GB, free: 1.891 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.5835, allocations: 0 / 0.5964 GB, free: 1.891 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004283/0.5878, allocations: 1.293 MB / 0.5977 GB, free: 0.5977 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.00745/0.5952, allocations: 7.425 MB / 0.605 GB, free: 8.887 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.006469/0.6017, allocations: 4.823 MB / 0.6097 GB, free: 4.051 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.383e-05/0.6017, allocations: 8 kB / 0.6097 GB, free: 4.043 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002679/0.6044, allocations: 2.183 MB / 0.6118 GB, free: 1.84 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003437/0.6078, allocations: 0.9968 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.2233/0.8311, allocations: 46.25 MB / 0.6579 GB, free: 150.7 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003855/0.835, allocations: 4.016 MB / 0.6619 GB, free: 146.7 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.002914/0.8379, allocations: 1.368 MB / 0.6632 GB, free: 145.5 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002586/0.8405, allocations: 2.562 MB / 0.6657 GB, free: 143 MB / 490.7 MB Notification: Performance of SimCode: time 1.894e-06/0.8405, allocations: 0 / 0.6657 GB, free: 143 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1154/0.9559, allocations: 107.9 MB / 0.7711 GB, free: 35.89 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.14/12.09, allocations: 8 kB / 0.7711 GB, free: 35.88 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 & python3 -m fmpy simulate --output-file Modelica_trunk_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_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.csv","/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: 13.966789809986949]