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.001559/0.001559, allocations: 111.1 kB / 20.44 MB, free: 1.176 MB / 14.72 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.001719/0.001719, allocations: 203.5 kB / 23.73 MB, free: 4.379 MB / 14.72 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 1.376/1.376, allocations: 230.6 MB / 257.5 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001509/0.001509, allocations: 47.92 kB / 377.7 MB, free: 2.922 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2534/0.2549, allocations: 53.36 MB / 431.1 MB, free: 6.633 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.03226/0.2872, allocations: 26.63 MB / 457.7 MB, free: 11.89 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01747/0.3047, allocations: 8.553 MB / 466.3 MB, free: 3.316 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005088/0.3098, allocations: 226.9 kB / 466.5 MB, free: 3.094 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01232/0.3221, allocations: 4.656 MB / 471.2 MB, free: 14.43 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01055/0.3326, allocations: 3.064 MB / 474.2 MB, free: 11.35 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005451/0.3381, allocations: 1.608 MB / 475.8 MB, free: 9.746 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01314/0.3512, allocations: 8.857 MB / 484.7 MB, free: 0.8633 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01561/0.3668, allocations: 9.234 MB / 493.9 MB, free: 7.527 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00724/0.3741, allocations: 4.359 MB / 498.3 MB, free: 3.156 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008534/0.3826, allocations: 4.89 MB / 0.4914 GB, free: 14.25 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003258/0.3859, allocations: 1.164 MB / 0.4925 GB, free: 13.09 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004799/0.3907, allocations: 1.539 MB / 0.494 GB, free: 11.55 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003281/0.3939, allocations: 2.404 MB / 0.4964 GB, free: 9.137 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006798/0.4007, allocations: 3.665 MB / 0.4999 GB, free: 5.457 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02148/0.4222, allocations: 15.93 MB / 0.5155 GB, free: 5.477 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.027e-05/0.4222, allocations: 8 kB / 0.5155 GB, free: 5.469 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.4222, allocations: 0 / 0.5155 GB, free: 5.469 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0004607/0.4227, allocations: 0 / 0.5155 GB, free: 5.469 MB / 430.1 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.03101/0.4537, allocations: 9.88 MB / 0.5252 GB, free: 11.5 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.618e-05/0.4538, allocations: 8.031 kB / 0.5252 GB, free: 11.49 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003239/0.457, allocations: 1.145 MB / 0.5263 GB, free: 10.34 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02891/0.4859, allocations: 5.232 MB / 0.5314 GB, free: 5.094 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2204/0.7063, allocations: 5.113 MB / 0.5364 GB, free: 91.68 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008487/0.7071, allocations: 0.5321 MB / 0.5369 GB, free: 91.66 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002658/0.7098, allocations: 0.7041 MB / 0.5376 GB, free: 91.66 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01993/0.7297, allocations: 11.59 MB / 0.5489 GB, free: 87.25 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001859/0.7299, allocations: 19.89 kB / 0.5489 GB, free: 87.25 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007334/0.7306, allocations: 297 kB / 0.5492 GB, free: 87.03 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002995/0.7309, allocations: 447.1 kB / 0.5496 GB, free: 86.98 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01574/0.7467, allocations: 10.82 MB / 0.5602 GB, free: 78.76 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0517/0.7984, allocations: 33.74 MB / 0.5932 GB, free: 44.95 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01102/0.8094, allocations: 7.444 MB / 0.6004 GB, free: 38.7 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003434/0.8128, allocations: 2.44 MB / 0.6028 GB, free: 36.27 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01144/0.8243, allocations: 6.944 MB / 0.6096 GB, free: 29.48 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.11e-05/0.8243, allocations: 56.56 kB / 0.6096 GB, free: 29.42 MB / 446.1 MB Notification: Performance of pre-optimization done (n=217): time 4.879e-06/0.8243, allocations: 0 / 0.6096 GB, free: 29.42 MB / 446.1 MB Notification: Performance of matching and sorting (n=233): time 0.01665/0.841, allocations: 10.32 MB / 0.6197 GB, free: 19.43 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001494/0.8425, allocations: 1.89 MB / 0.6216 GB, free: 17.39 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004521/0.847, allocations: 3.986 MB / 0.6255 GB, free: 13.48 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002902/0.8473, allocations: 65.7 kB / 0.6255 GB, free: 13.41 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001364/0.8486, allocations: 3.691 MB / 0.6291 GB, free: 9.719 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005468/0.8492, allocations: 0.8671 MB / 0.63 GB, free: 8.863 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001039/0.8502, allocations: 0.9614 MB / 0.6309 GB, free: 7.891 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4e-05/0.8503, allocations: 309.1 kB / 0.6312 GB, free: 7.586 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002047/0.8523, allocations: 1.899 MB / 0.6331 GB, free: 5.68 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002865/0.8552, allocations: 4.446 MB / 0.6374 GB, free: 15.99 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008486/0.8637, allocations: 6.801 MB / 0.644 GB, free: 7.977 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.377e-05/0.8637, allocations: 24 kB / 0.6441 GB, free: 7.953 MB / 462.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.01264/0.8764, allocations: 7.001 MB / 0.6509 GB, free: 0.9336 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.479e-05/0.8765, allocations: 40 kB / 0.6509 GB, free: 0.8945 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001609/0.8766, allocations: 88 kB / 0.651 GB, free: 0.8086 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002042/0.8787, allocations: 0.737 MB / 0.6517 GB, free: 64 kB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003893/0.8825, allocations: 1.127 MB / 0.6528 GB, free: 14.93 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007836/0.8904, allocations: 5.444 MB / 0.6582 GB, free: 9.375 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004105/0.8945, allocations: 319.4 kB / 0.6585 GB, free: 9.062 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007404/0.8952, allocations: 276 kB / 0.6587 GB, free: 8.793 MB / 478.1 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.004714/0.8999, allocations: 2.529 MB / 0.6612 GB, free: 6.25 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001163/0.9011, allocations: 413.2 kB / 0.6616 GB, free: 5.848 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007798/0.9089, allocations: 4.255 MB / 0.6657 GB, free: 1.559 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.614e-05/0.9089, allocations: 24 kB / 0.6658 GB, free: 1.535 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.085e-05/0.9089, allocations: 4 kB / 0.6658 GB, free: 1.531 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.461e-05/0.909, allocations: 11.95 kB / 0.6658 GB, free: 1.52 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02436/0.9333, allocations: 13.49 MB / 0.679 GB, free: 3.824 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.875e-05/0.9333, allocations: 8 kB / 0.679 GB, free: 3.816 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001914/0.9353, allocations: 491.2 kB / 0.6794 GB, free: 3.336 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002067/0.9373, allocations: 0.6869 MB / 0.6801 GB, free: 2.641 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001873/0.9375, allocations: 75.97 kB / 0.6802 GB, free: 2.566 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009349/0.9469, allocations: 7.174 MB / 0.6872 GB, free: 11.16 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001839/0.9487, allocations: 1.834 MB / 0.689 GB, free: 9.199 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01081/0.9595, allocations: 6.761 MB / 0.6956 GB, free: 2.16 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002475/0.962, allocations: 0.7549 MB / 0.6963 GB, free: 1.402 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005894/0.9626, allocations: 63.98 kB / 0.6964 GB, free: 1.34 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001766/0.9643, allocations: 167.8 kB / 0.6965 GB, free: 1.176 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004497/0.9648, allocations: 233.3 kB / 0.6968 GB, free: 0.9453 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001872/0.965, allocations: 91.97 kB / 0.6968 GB, free: 0.8555 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.003977/0.969, allocations: 2.521 MB / 0.6993 GB, free: 14.32 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.11e-07/0.969, allocations: 3.938 kB / 0.6993 GB, free: 14.32 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.00525/0.9742, allocations: 1.293 MB / 0.7006 GB, free: 13.03 MB / 0.5137 GB 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.01129/0.9855, allocations: 7.459 MB / 0.7079 GB, free: 5.285 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.008818/0.9943, allocations: 4.819 MB / 0.7126 GB, free: 468 kB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.602e-05/0.9943, allocations: 0 / 0.7126 GB, free: 468 kB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.004018/0.9983, allocations: 2.181 MB / 0.7147 GB, free: 14.25 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005036/1.003, allocations: 1 MB / 0.7157 GB, free: 13.27 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2895/1.293, allocations: 46.23 MB / 0.7608 GB, free: 179.6 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00351/1.296, allocations: 4.022 MB / 0.7647 GB, free: 178.4 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.003174/1.3, allocations: 1.363 MB / 0.7661 GB, free: 178.4 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002494/1.302, allocations: 2.561 MB / 0.7686 GB, free: 176.3 MB / 0.545 GB Notification: Performance of SimCode: time 1.393e-06/1.302, allocations: 0 / 0.7686 GB, free: 176.3 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1613/1.463, allocations: 110.5 MB / 0.8764 GB, free: 69 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.5/18.97, allocations: 8.062 kB / 0.8765 GB, free: 68.99 MB / 0.545 GB " [Timeout remaining time 641] (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/jenkins1/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/jenkins1/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: 21.90306610899279]