Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Vtr|Vqs",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Vtr|Vqs",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001393/0.001393, allocations: 192.8 kB / 17.43 MB, free: 4.398 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.336/1.336, allocations: 229.5 MB / 247.7 MB, free: 6.289 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008835/0.0008837, allocations: 94.17 kB / 299.8 MB, free: 5.328 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002342/0.0002343, allocations: 8 kB / 360.7 MB, free: 8.434 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2028/0.203, allocations: 51.41 MB / 412.1 MB, free: 25.88 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.02715/0.2302, allocations: 27.32 MB / 439.4 MB, free: 14.46 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.02015/0.2504, allocations: 11.14 MB / 450.5 MB, free: 2.691 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005911/0.2564, allocations: 175.4 kB / 450.7 MB, free: 2.52 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005034/0.2615, allocations: 1.578 MB / 452.3 MB, free: 0.9336 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008866/0.2704, allocations: 3.622 MB / 455.9 MB, free: 13.08 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004336/0.2747, allocations: 2.007 MB / 457.9 MB, free: 10.92 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.01077/0.2855, allocations: 9.109 MB / 467 MB, free: 1.773 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02103/0.3065, allocations: 14.84 MB / 481.9 MB, free: 2.113 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006123/0.3127, allocations: 3.128 MB / 485 MB, free: 14.97 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00841/0.3211, allocations: 3.8 MB / 488.8 MB, free: 11.16 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002619/0.3238, allocations: 476 kB / 489.3 MB, free: 10.69 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005004/0.3288, allocations: 0.8393 MB / 490.1 MB, free: 9.852 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003996/0.3328, allocations: 1.592 MB / 491.7 MB, free: 8.254 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.009932/0.3428, allocations: 3.795 MB / 495.5 MB, free: 4.434 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02375/0.3666, allocations: 14.88 MB / 0.4984 GB, free: 5.5 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.3666, allocations: 0 / 0.4984 GB, free: 5.5 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.863e-06/0.3667, allocations: 0 / 0.4984 GB, free: 5.5 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0004399/0.3671, allocations: 0 / 0.4984 GB, free: 5.5 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.2326/0.5998, allocations: 8.206 MB / 0.5064 GB, free: 81.72 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.353e-05/0.5998, allocations: 9.656 kB / 0.5064 GB, free: 81.72 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02734/0.6272, allocations: 5.272 MB / 0.5116 GB, free: 80.13 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009898/0.6371, allocations: 4.984 MB / 0.5164 GB, free: 76.64 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005345/0.6377, allocations: 0.5365 MB / 0.517 GB, free: 76.4 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002059/0.6398, allocations: 0.7119 MB / 0.5177 GB, free: 76.16 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02467/0.6644, allocations: 11.26 MB / 0.5287 GB, free: 66.56 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002505/0.6647, allocations: 11.91 kB / 0.5287 GB, free: 66.55 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001282/0.666, allocations: 301 kB / 0.529 GB, free: 66.26 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003383/0.6664, allocations: 450.9 kB / 0.5294 GB, free: 65.82 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01997/0.6863, allocations: 10.77 MB / 0.5399 GB, free: 55.04 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05417/0.7405, allocations: 39.01 MB / 0.578 GB, free: 15.05 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01747/0.758, allocations: 28.24 MB / 0.6056 GB, free: 14.93 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004723/0.7628, allocations: 2.659 MB / 0.6082 GB, free: 12.27 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01451/0.7774, allocations: 8.465 MB / 0.6164 GB, free: 3.633 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.376e-05/0.7774, allocations: 52.56 kB / 0.6165 GB, free: 3.57 MB / 410.7 MB Notification: Performance of pre-optimization done (n=217): time 3.567e-06/0.7774, allocations: 4 kB / 0.6165 GB, free: 3.566 MB / 410.7 MB Notification: Performance of matching and sorting (n=233): time 0.02084/0.7983, allocations: 10.34 MB / 0.6266 GB, free: 9.18 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001966/0.8003, allocations: 1.914 MB / 0.6285 GB, free: 7.105 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006497/0.8068, allocations: 3.81 MB / 0.6322 GB, free: 3.27 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003015/0.8071, allocations: 61.7 kB / 0.6322 GB, free: 3.203 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002431/0.8096, allocations: 3.56 MB / 0.6357 GB, free: 15.62 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009122/0.8105, allocations: 0.8273 MB / 0.6365 GB, free: 14.8 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003159/0.8108, allocations: 96 kB / 0.6366 GB, free: 14.71 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003311/0.8112, allocations: 0.5006 MB / 0.6371 GB, free: 14.2 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002992/0.8142, allocations: 1.868 MB / 0.6389 GB, free: 12.33 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004633/0.8188, allocations: 4.38 MB / 0.6432 GB, free: 6.711 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00802/0.8268, allocations: 6.755 MB / 0.6498 GB, free: 14.75 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.442e-05/0.8269, allocations: 24 kB / 0.6498 GB, free: 14.73 MB / 458.7 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.01194/0.8389, allocations: 6.943 MB / 0.6566 GB, free: 7.762 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.617e-05/0.839, allocations: 40 kB / 0.6566 GB, free: 7.723 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001161/0.8391, allocations: 88 kB / 0.6567 GB, free: 7.637 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001996/0.8411, allocations: 0.7466 MB / 0.6575 GB, free: 6.883 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003637/0.8448, allocations: 1.123 MB / 0.6586 GB, free: 5.758 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006948/0.8517, allocations: 5.209 MB / 0.6636 GB, free: 424 kB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004035/0.8558, allocations: 311.1 kB / 0.6639 GB, free: 112 kB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008863/0.8567, allocations: 276 kB / 0.6642 GB, free: 15.84 MB / 474.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.004782/0.8615, allocations: 2.522 MB / 0.6667 GB, free: 13.3 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008407/0.8623, allocations: 383.2 kB / 0.667 GB, free: 12.93 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007678/0.87, allocations: 4.267 MB / 0.6712 GB, free: 8.629 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.205e-05/0.8701, allocations: 24 kB / 0.6712 GB, free: 8.605 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.604e-05/0.8701, allocations: 4 kB / 0.6712 GB, free: 8.602 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.213e-05/0.8701, allocations: 11.95 kB / 0.6712 GB, free: 8.59 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2307/1.101, allocations: 14.29 MB / 0.6852 GB, free: 159.1 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.816e-05/1.101, allocations: 12.81 kB / 0.6852 GB, free: 159.1 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001817/1.103, allocations: 475.3 kB / 0.6857 GB, free: 159.1 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001873/1.105, allocations: 0.6897 MB / 0.6863 GB, free: 158.9 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002352/1.105, allocations: 76.23 kB / 0.6864 GB, free: 158.9 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00713/1.112, allocations: 6.941 MB / 0.6932 GB, free: 154.4 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001443/1.113, allocations: 1.86 MB / 0.695 GB, free: 152.7 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008904/1.122, allocations: 6.716 MB / 0.7016 GB, free: 149.6 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001883/1.124, allocations: 0.796 MB / 0.7023 GB, free: 149.3 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006254/1.125, allocations: 62.39 kB / 0.7024 GB, free: 149.2 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001699/1.127, allocations: 169.5 kB / 0.7026 GB, free: 149.2 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004203/1.127, allocations: 223.4 kB / 0.7028 GB, free: 149.2 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001593/1.127, allocations: 93.36 kB / 0.7029 GB, free: 149.1 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.003641/1.131, allocations: 2.484 MB / 0.7053 GB, free: 148.2 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.7e-07/1.131, allocations: 3.219 kB / 0.7053 GB, free: 148.2 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.004969/1.136, allocations: 1.301 MB / 0.7066 GB, free: 148 MB / 474.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.0005624/1.136, allocations: 242.6 kB / 0.7068 GB, free: 147.9 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.007147/1.144, allocations: 5.108 MB / 0.7118 GB, free: 145.6 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.129e-05/1.144, allocations: 4 kB / 0.7118 GB, free: 145.6 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00321/1.147, allocations: 2.396 MB / 0.7141 GB, free: 143.5 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01066/1.158, allocations: 0.939 MB / 0.715 GB, free: 142.7 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01924/1.177, allocations: 15.52 MB / 0.7302 GB, free: 127.8 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003788/1.181, allocations: 4.501 MB / 0.7346 GB, free: 123.2 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.004365/1.185, allocations: 1.407 MB / 0.736 GB, free: 121.8 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007698/1.186, allocations: 295.4 kB / 0.7362 GB, free: 121.5 MB / 474.7 MB Notification: Performance of SimCode: time 1.182e-06/1.186, allocations: 0 / 0.7362 GB, free: 121.5 MB / 474.7 MB Notification: Performance of Templates: time 0.08131/1.267, allocations: 54.41 MB / 0.7894 GB, free: 67.59 MB / 474.7 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.makefile (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 & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe 2>&1) 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.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_OpenCircuit/SMPM_OpenCircuit.csv","../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches