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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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_4.0.0_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_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001606/0.001606, allocations: 175.5 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.522/1.522, allocations: 221.3 MB / 235.5 MB, free: 2.957 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009098/0.0009098, allocations: 89.98 kB / 286.5 MB, free: 228 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.108e-05/3.111e-05, allocations: 0 / 343.9 MB, free: 4.281 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.111/0.1111, allocations: 50.42 MB / 394.3 MB, free: 1.824 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4111/0.5222, allocations: 148.8 MB / 0.5303 GB, free: 2.621 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003719/0.5227, allocations: 105.4 kB / 0.5304 GB, free: 2.523 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9684/1.491, allocations: 233.5 MB / 0.7584 GB, free: 45.39 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.066e-06/1.491, allocations: 2.109 kB / 0.7584 GB, free: 45.39 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.000496/1.492, allocations: 159.4 kB / 0.7586 GB, free: 45.38 MB / 426.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.02321/1.515, allocations: 6.788 MB / 0.7652 GB, free: 43.09 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.531e-05/1.515, allocations: 5.688 kB / 0.7652 GB, free: 43.09 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02199/1.537, allocations: 3.665 MB / 0.7688 GB, free: 42.67 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01993/1.557, allocations: 6.036 MB / 0.7747 GB, free: 41.84 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006835/1.558, allocations: 0.5186 MB / 0.7752 GB, free: 41.82 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003685/1.561, allocations: 0.6929 MB / 0.7759 GB, free: 41.82 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0306/1.592, allocations: 11.02 MB / 0.7866 GB, free: 40.39 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003517/1.592, allocations: 22.69 kB / 0.7866 GB, free: 40.38 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002021/1.594, allocations: 295.6 kB / 0.7869 GB, free: 40.16 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004902/1.595, allocations: 0.5137 MB / 0.7874 GB, free: 40.07 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01998/1.615, allocations: 10.06 MB / 0.7972 GB, free: 36.05 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05808/1.673, allocations: 37.89 MB / 0.8342 GB, free: 8.895 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01852/1.692, allocations: 28.11 MB / 0.8617 GB, free: 10.13 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004123/1.696, allocations: 2.564 MB / 0.8642 GB, free: 7.793 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01367/1.709, allocations: 7.934 MB / 0.8719 GB, free: 1.191 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.293e-05/1.71, allocations: 56.56 kB / 0.872 GB, free: 1.129 MB / 458.7 MB Notification: Performance of pre-optimization done (n=217): time 4.418e-06/1.71, allocations: 0 / 0.872 GB, free: 1.129 MB / 458.7 MB Notification: Performance of matching and sorting (n=233): time 0.3923/2.102, allocations: 8.324 MB / 0.8801 GB, free: 75.86 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001776/2.104, allocations: 1.913 MB / 0.882 GB, free: 74.4 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007302/2.111, allocations: 3.331 MB / 0.8853 GB, free: 74.05 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005409/2.112, allocations: 62.11 kB / 0.8853 GB, free: 74.02 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002795/2.114, allocations: 3.542 MB / 0.8888 GB, free: 72.4 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001142/2.116, allocations: 0.8267 MB / 0.8896 GB, free: 71.9 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003765/2.116, allocations: 94.22 kB / 0.8897 GB, free: 71.9 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.000294/2.116, allocations: 0.4939 MB / 0.8902 GB, free: 71.59 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003457/2.12, allocations: 1.831 MB / 0.8919 GB, free: 71.57 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005361/2.125, allocations: 4.259 MB / 0.8961 GB, free: 68.48 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00553/2.131, allocations: 2.791 MB / 0.8988 GB, free: 68.44 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001358/2.131, allocations: 25.38 kB / 0.8988 GB, free: 68.44 MB / 458.7 MB Notification: Performance of matching and sorting (n=620) (initialization): time 0.01769/2.148, allocations: 6.829 MB / 0.9055 GB, free: 68.12 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001557/2.149, allocations: 46.62 kB / 0.9056 GB, free: 68.12 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001926/2.149, allocations: 83.75 kB / 0.9056 GB, free: 68.12 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002481/2.151, allocations: 0.7508 MB / 0.9064 GB, free: 68.09 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004838/2.156, allocations: 1.105 MB / 0.9075 GB, free: 68.09 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0067/2.163, allocations: 5.208 MB / 0.9125 GB, free: 66.74 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005409/2.168, allocations: 304 kB / 0.9128 GB, free: 66.7 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001179/2.17, allocations: 269.8 kB / 0.9131 GB, free: 66.7 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 384 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (583): * Single equations (assignments): 580 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,100.0%) 32} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001062/2.171, allocations: 439 kB / 0.9135 GB, free: 66.47 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001132/2.172, allocations: 389 kB / 0.9139 GB, free: 66.27 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007316/2.179, allocations: 4.212 MB / 0.918 GB, free: 66 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-05/2.179, allocations: 25.14 kB / 0.918 GB, free: 66 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.248e-06/2.179, allocations: 7.781 kB / 0.918 GB, free: 66 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.449e-05/2.179, allocations: 11.53 kB / 0.918 GB, free: 66 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02718/2.206, allocations: 14.14 MB / 0.9318 GB, free: 62.92 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.639e-05/2.207, allocations: 15.5 kB / 0.9319 GB, free: 62.91 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001833/2.208, allocations: 467.5 kB / 0.9323 GB, free: 62.87 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002015/2.21, allocations: 0.6842 MB / 0.933 GB, free: 62.7 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003188/2.211, allocations: 77.98 kB / 0.933 GB, free: 62.66 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007719/2.218, allocations: 6.925 MB / 0.9398 GB, free: 58.12 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00142/2.22, allocations: 1.873 MB / 0.9416 GB, free: 56.45 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0101/2.23, allocations: 7.727 MB / 0.9492 GB, free: 51.71 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00279/2.233, allocations: 0.7957 MB / 0.95 GB, free: 51.2 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001168/2.234, allocations: 63.67 kB / 0.95 GB, free: 51.17 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002637/2.237, allocations: 171.4 kB / 0.9502 GB, free: 51.13 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004743/2.237, allocations: 213.4 kB / 0.9504 GB, free: 51.08 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001828/2.237, allocations: 94.2 kB / 0.9505 GB, free: 51.06 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.004609/2.242, allocations: 2.428 MB / 0.9528 GB, free: 50.09 MB / 458.7 MB Notification: Performance of sort global known variables: time 6.11e-07/2.242, allocations: 0 / 0.9528 GB, free: 50.09 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.007468/2.25, allocations: 1.343 MB / 0.9542 GB, free: 49.94 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 46 * Number of states: 1 ($STATESET1.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (238): * Single equations (assignments): 235 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,100.0%) 32} * Non-linear torn systems: 1 {3 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.001402/2.251, allocations: 0.7073 MB / 0.9548 GB, free: 49.66 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.00877/2.26, allocations: 5.001 MB / 0.9597 GB, free: 47.5 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.296e-05/2.26, allocations: 2.094 kB / 0.9597 GB, free: 47.5 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004111/2.264, allocations: 2.348 MB / 0.962 GB, free: 46.34 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005628/2.27, allocations: 0.91 MB / 0.9629 GB, free: 46.07 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02339/2.293, allocations: 10.56 MB / 0.9732 GB, free: 41.62 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005394/2.298, allocations: 4.613 MB / 0.9777 GB, free: 38.66 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.004832/2.303, allocations: 1.358 MB / 0.9791 GB, free: 37.76 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009123/2.304, allocations: 301.3 kB / 0.9793 GB, free: 37.48 MB / 458.7 MB Notification: Performance of SimCode: time 8.92e-07/2.304, allocations: 0 / 0.9793 GB, free: 37.48 MB / 458.7 MB Notification: Performance of Templates: time 0.101/2.405, allocations: 58.15 MB / 1.036 GB, free: 12.72 MB / 474.7 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.makefile (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 & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe 2>&1) 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","../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches