Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001035/0.001035, allocations: 76.08 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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001107/0.001107, allocations: 149.1 kB / 23.93 MB, free: 0.625 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9724/0.9724, allocations: 173.4 MB / 200.4 MB, free: 9.434 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,fileNamePrefix="Modelica_4_0_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_0_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.633e-06/1.633e-06, allocations: 0 / 318.5 MB, free: 6.359 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.826e-05/1.99e-05, allocations: 2.281 kB / 318.5 MB, free: 6.355 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.02034/0.02036, allocations: 26.1 MB / 344.6 MB, free: 12.12 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0151/0.03546, allocations: 8.33 MB / 352.9 MB, free: 3.77 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004952/0.04041, allocations: 218.9 kB / 353.1 MB, free: 3.555 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008683/0.04909, allocations: 4.862 MB / 358 MB, free: 14.68 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007952/0.05705, allocations: 3.122 MB / 361.1 MB, free: 11.54 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003175/0.06022, allocations: 1.577 MB / 362.7 MB, free: 9.973 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.009158/0.06938, allocations: 9.079 MB / 371.7 MB, free: 0.8594 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01256/0.08194, allocations: 9.103 MB / 380.9 MB, free: 7.656 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01113/0.09306, allocations: 6.364 MB / 387.2 MB, free: 1.281 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005278/0.09834, allocations: 4.057 MB / 391.3 MB, free: 13.21 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002134/0.1005, allocations: 1.16 MB / 392.4 MB, free: 12.05 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003385/0.1039, allocations: 1.515 MB / 393.9 MB, free: 10.54 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002371/0.1062, allocations: 2.466 MB / 396.4 MB, free: 8.066 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004844/0.1111, allocations: 3.138 MB / 399.6 MB, free: 4.922 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01272/0.1238, allocations: 16.01 MB / 415.6 MB, free: 4.871 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.1238, allocations: 3.938 kB / 415.6 MB, free: 4.867 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.1238, allocations: 0 / 415.6 MB, free: 4.867 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003452/0.1241, allocations: 0 / 415.6 MB, free: 4.867 MB / 378.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.01803/0.1422, allocations: 9.759 MB / 425.3 MB, free: 11.02 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.62e-05/0.1422, allocations: 8.922 kB / 425.3 MB, free: 11.01 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002203/0.1444, allocations: 1.149 MB / 426.5 MB, free: 9.852 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01504/0.1595, allocations: 5.321 MB / 431.8 MB, free: 4.52 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01049/0.17, allocations: 5.089 MB / 436.9 MB, free: 15.34 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004118/0.1704, allocations: 0.5298 MB / 437.4 MB, free: 14.81 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002283/0.1727, allocations: 0.7108 MB / 438.1 MB, free: 14.1 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02075/0.1934, allocations: 11.55 MB / 449.7 MB, free: 2.414 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000232/0.1936, allocations: 15.91 kB / 449.7 MB, free: 2.398 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001774/0.1954, allocations: 296 kB / 450 MB, free: 2.109 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003415/0.1957, allocations: 447 kB / 450.4 MB, free: 1.672 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.184/0.3798, allocations: 10.79 MB / 461.2 MB, free: 109.1 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03518/0.415, allocations: 33.6 MB / 494.8 MB, free: 78.02 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00628/0.4213, allocations: 7.366 MB / 0.4904 GB, free: 71.85 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002004/0.4233, allocations: 2.42 MB / 0.4928 GB, free: 69.42 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007298/0.4306, allocations: 6.867 MB / 0.4995 GB, free: 62.72 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.658e-05/0.4306, allocations: 60.55 kB / 0.4995 GB, free: 62.65 MB / 410.7 MB Notification: Performance of pre-optimization done (n=217): time 3.577e-06/0.4306, allocations: 0 / 0.4995 GB, free: 62.65 MB / 410.7 MB Notification: Performance of matching and sorting (n=233): time 0.01289/0.4435, allocations: 10.28 MB / 0.5096 GB, free: 52.7 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001207/0.4447, allocations: 1.875 MB / 0.5114 GB, free: 50.69 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004069/0.4488, allocations: 3.974 MB / 0.5153 GB, free: 46.84 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002631/0.449, allocations: 69.64 kB / 0.5154 GB, free: 46.77 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001011/0.45, allocations: 3.659 MB / 0.5189 GB, free: 43.11 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004376/0.4505, allocations: 0.8559 MB / 0.5198 GB, free: 42.26 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007827/0.4512, allocations: 0.9496 MB / 0.5207 GB, free: 41.3 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.356e-05/0.4513, allocations: 305.1 kB / 0.521 GB, free: 41 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001659/0.4529, allocations: 1.899 MB / 0.5228 GB, free: 39.09 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00225/0.4552, allocations: 4.438 MB / 0.5272 GB, free: 33.4 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00442/0.4596, allocations: 6.784 MB / 0.5338 GB, free: 25.41 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.89e-05/0.4597, allocations: 32 kB / 0.5338 GB, free: 25.38 MB / 410.7 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.006846/0.4665, allocations: 6.986 MB / 0.5406 GB, free: 18.38 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.999e-05/0.4665, allocations: 40.78 kB / 0.5407 GB, free: 18.34 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.014e-05/0.4666, allocations: 88 kB / 0.5408 GB, free: 18.25 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001067/0.4677, allocations: 0.7321 MB / 0.5415 GB, free: 17.51 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00168/0.4694, allocations: 1.127 MB / 0.5426 GB, free: 16.38 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003794/0.4731, allocations: 5.436 MB / 0.5479 GB, free: 10.83 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00235/0.4755, allocations: 323.4 kB / 0.5482 GB, free: 10.52 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002571/0.4758, allocations: 272 kB / 0.5485 GB, free: 10.25 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.002624/0.4784, allocations: 2.522 MB / 0.5509 GB, free: 7.715 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005542/0.4789, allocations: 405.4 kB / 0.5513 GB, free: 7.316 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004078/0.483, allocations: 4.243 MB / 0.5555 GB, free: 3.051 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.898e-06/0.483, allocations: 28 kB / 0.5555 GB, free: 3.023 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.915e-06/0.483, allocations: 11.94 kB / 0.5555 GB, free: 3.012 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.251e-05/0.483, allocations: 11.95 kB / 0.5555 GB, free: 3 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01631/0.4993, allocations: 13.44 MB / 0.5686 GB, free: 5.363 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.034e-05/0.4994, allocations: 8 kB / 0.5686 GB, free: 5.355 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001004/0.5004, allocations: 475.3 kB / 0.5691 GB, free: 4.891 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001308/0.5017, allocations: 0.6892 MB / 0.5698 GB, free: 4.191 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001664/0.5018, allocations: 71.98 kB / 0.5698 GB, free: 4.121 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006544/0.5084, allocations: 7.183 MB / 0.5769 GB, free: 12.7 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001203/0.5096, allocations: 1.819 MB / 0.5786 GB, free: 10.75 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008032/0.5176, allocations: 6.727 MB / 0.5852 GB, free: 3.754 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001898/0.5195, allocations: 0.7663 MB / 0.5859 GB, free: 2.988 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004193/0.5199, allocations: 63.92 kB / 0.586 GB, free: 2.926 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009646/0.5209, allocations: 163.8 kB / 0.5862 GB, free: 2.766 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003212/0.5212, allocations: 229.7 kB / 0.5864 GB, free: 2.543 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001139/0.5213, allocations: 87.98 kB / 0.5865 GB, free: 2.457 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002911/0.5242, allocations: 2.509 MB / 0.5889 GB, free: 15.97 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5242, allocations: 4 kB / 0.5889 GB, free: 15.96 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003866/0.5281, allocations: 1.293 MB / 0.5902 GB, free: 14.67 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.007533/0.5356, allocations: 7.395 MB / 0.5974 GB, free: 6.988 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.006113/0.5418, allocations: 4.819 MB / 0.6021 GB, free: 2.156 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.162e-05/0.5418, allocations: 4 kB / 0.6021 GB, free: 2.152 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002571/0.5443, allocations: 2.166 MB / 0.6042 GB, free: 15.97 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003414/0.5478, allocations: 0.9823 MB / 0.6052 GB, free: 15.01 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2068/0.7546, allocations: 46.25 MB / 0.6503 GB, free: 140.3 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002644/0.7572, allocations: 4.019 MB / 0.6543 GB, free: 136.3 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.002435/0.7596, allocations: 1.363 MB / 0.6556 GB, free: 135.1 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001789/0.7614, allocations: 2.542 MB / 0.6581 GB, free: 132.5 MB / 474.7 MB Notification: Performance of SimCode: time 1.433e-06/0.7614, allocations: 0 / 0.6581 GB, free: 132.5 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1064/0.8679, allocations: 107.3 MB / 0.7629 GB, free: 26.18 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.12/11.98, allocations: 14.84 kB / 0.7629 GB, free: 26.16 MB / 474.7 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit_res.mat --tempDir=temp_Modelica_4_0_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_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.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.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_OpenCircuit/SMPM_OpenCircuit.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.148367192596197]