Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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) 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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Vtr|Vqs",fileNamePrefix="Modelica_3.2.3_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_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001423/0.001423, allocations: 105.4 kB / 18.4 MB, free: 4.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00131/0.001311, allocations: 189.2 kB / 19.33 MB, free: 3.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.345/1.345, allocations: 205.1 MB / 225.2 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001268/0.001268, allocations: 51.92 kB / 329.2 MB, free: 3.309 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08507/0.08635, allocations: 46.62 MB / 375.8 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.2147/0.3011, allocations: 30.23 MB / 406.1 MB, free: 9.699 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02128/0.3224, allocations: 8.638 MB / 414.7 MB, free: 3.449 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00773/0.3302, allocations: 173.3 kB / 414.9 MB, free: 3.41 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01274/0.343, allocations: 4.903 MB / 419.8 MB, free: 52 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01142/0.3544, allocations: 2.943 MB / 422.7 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005617/0.3601, allocations: 1.619 MB / 424.3 MB, free: 12.37 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01493/0.375, allocations: 8.701 MB / 433 MB, free: 6.457 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01881/0.3939, allocations: 12.84 MB / 445.9 MB, free: 9.52 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00791/0.4018, allocations: 4.238 MB / 450.1 MB, free: 5.27 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008566/0.4105, allocations: 4.733 MB / 454.9 MB, free: 0.5195 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003518/0.414, allocations: 1.164 MB / 456 MB, free: 15.35 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005762/0.4198, allocations: 1.523 MB / 457.5 MB, free: 13.83 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003555/0.4234, allocations: 2.404 MB / 460 MB, free: 11.42 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009722/0.4331, allocations: 4.673 MB / 464.6 MB, free: 6.73 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02003/0.4532, allocations: 15.73 MB / 480.4 MB, free: 6.957 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.768e-06/0.4532, allocations: 0 / 480.4 MB, free: 6.957 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.976e-06/0.4533, allocations: 0 / 480.4 MB, free: 6.957 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.000458/0.4537, allocations: 0 / 480.4 MB, free: 6.957 MB / 398.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.03012/0.4838, allocations: 9.755 MB / 490.1 MB, free: 13.11 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.593e-05/0.4839, allocations: 8.031 kB / 490.1 MB, free: 13.1 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02933/0.5133, allocations: 5.278 MB / 495.4 MB, free: 7.805 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01034/0.5236, allocations: 4.691 MB / 0.4884 GB, free: 3.031 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005291/0.5242, allocations: 0.5299 MB / 0.4889 GB, free: 2.5 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002912/0.5271, allocations: 0.7068 MB / 0.4896 GB, free: 1.793 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0282/0.5553, allocations: 11.32 MB / 0.5006 GB, free: 6.391 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002709/0.5557, allocations: 23.84 kB / 0.5006 GB, free: 6.367 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001664/0.5573, allocations: 292 kB / 0.5009 GB, free: 6.082 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004779/0.5578, allocations: 443 kB / 0.5013 GB, free: 5.648 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02342/0.5813, allocations: 10.82 MB / 0.5119 GB, free: 10.82 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06555/0.6469, allocations: 37.58 MB / 0.5486 GB, free: 4.113 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2149/0.8618, allocations: 28.1 MB / 0.5761 GB, free: 116.8 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004343/0.8662, allocations: 2.662 MB / 0.5786 GB, free: 116.7 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01202/0.8783, allocations: 7.906 MB / 0.5864 GB, free: 113.4 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.874e-05/0.8783, allocations: 60.25 kB / 0.5864 GB, free: 113.3 MB / 478.1 MB Notification: Performance of pre-optimization done (n=217): time 3.967e-06/0.8783, allocations: 0 / 0.5864 GB, free: 113.3 MB / 478.1 MB Notification: Performance of matching and sorting (n=233): time 0.01825/0.8966, allocations: 10.36 MB / 0.5965 GB, free: 108.8 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001562/0.8982, allocations: 2.006 MB / 0.5985 GB, free: 107 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004962/0.9032, allocations: 3.82 MB / 0.6022 GB, free: 105.6 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003019/0.9035, allocations: 66.55 kB / 0.6023 GB, free: 105.5 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001752/0.9052, allocations: 3.546 MB / 0.6058 GB, free: 102.8 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000683/0.9059, allocations: 0.8392 MB / 0.6066 GB, free: 102.2 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009961/0.9069, allocations: 0.9474 MB / 0.6075 GB, free: 101.7 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 3.238e-05/0.907, allocations: 302.9 kB / 0.6078 GB, free: 101.4 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002142/0.9091, allocations: 1.892 MB / 0.6096 GB, free: 100.7 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002814/0.9119, allocations: 4.39 MB / 0.6139 GB, free: 96.62 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00506/0.917, allocations: 6.784 MB / 0.6206 GB, free: 91.16 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.898e-05/0.917, allocations: 33.06 kB / 0.6206 GB, free: 91.16 MB / 478.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.008676/0.9257, allocations: 6.979 MB / 0.6274 GB, free: 88.04 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.722e-05/0.9258, allocations: 47.8 kB / 0.6275 GB, free: 88 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.205e-05/0.9259, allocations: 88 kB / 0.6275 GB, free: 87.91 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00161/0.9275, allocations: 0.7342 MB / 0.6283 GB, free: 87.33 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002933/0.9304, allocations: 1.118 MB / 0.6293 GB, free: 86.36 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005367/0.9358, allocations: 5.638 MB / 0.6348 GB, free: 80.79 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003302/0.9391, allocations: 312 kB / 0.6351 GB, free: 80.49 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003007/0.9395, allocations: 272 kB / 0.6354 GB, free: 80.22 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.003041/0.9425, allocations: 2.522 MB / 0.6379 GB, free: 77.69 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006251/0.9431, allocations: 391.2 kB / 0.6382 GB, free: 77.3 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005557/0.9487, allocations: 4.272 MB / 0.6424 GB, free: 73 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.276e-05/0.9487, allocations: 24 kB / 0.6424 GB, free: 72.98 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.945e-06/0.9487, allocations: 8 kB / 0.6424 GB, free: 72.97 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.736e-05/0.9488, allocations: 11.95 kB / 0.6425 GB, free: 72.96 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01604/0.9648, allocations: 14.29 MB / 0.6564 GB, free: 58.5 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.425e-05/0.9648, allocations: 12 kB / 0.6564 GB, free: 58.48 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001596/0.9664, allocations: 479.2 kB / 0.6569 GB, free: 58.02 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001614/0.9681, allocations: 0.6893 MB / 0.6576 GB, free: 57.32 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000128/0.9682, allocations: 67.98 kB / 0.6576 GB, free: 57.25 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00655/0.9748, allocations: 7.495 MB / 0.6649 GB, free: 49.47 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001159/0.9759, allocations: 1.95 MB / 0.6668 GB, free: 47.38 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007299/0.9833, allocations: 6.744 MB / 0.6734 GB, free: 40.35 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001398/0.9847, allocations: 0.7889 MB / 0.6742 GB, free: 39.54 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004683/0.9851, allocations: 60 kB / 0.6743 GB, free: 39.48 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00158/0.9867, allocations: 171.6 kB / 0.6744 GB, free: 39.32 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003247/0.9871, allocations: 221.5 kB / 0.6746 GB, free: 39.1 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001371/0.9872, allocations: 95.98 kB / 0.6747 GB, free: 39 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.002673/0.9899, allocations: 2.513 MB / 0.6772 GB, free: 36.51 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.9899, allocations: 0 / 0.6772 GB, free: 36.51 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003631/0.9935, allocations: 1.292 MB / 0.6784 GB, free: 35.22 MB / 478.1 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.0003512/0.9939, allocations: 230.5 kB / 0.6787 GB, free: 34.99 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.00606/1, allocations: 5.17 MB / 0.6837 GB, free: 29.78 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 9.508e-06/1, allocations: 4 kB / 0.6837 GB, free: 29.77 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00287/1.003, allocations: 2.414 MB / 0.6861 GB, free: 27.32 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004277/1.007, allocations: 0.9772 MB / 0.687 GB, free: 26.35 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02017/1.027, allocations: 12.22 MB / 0.699 GB, free: 13.94 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004554/1.032, allocations: 4.382 MB / 0.7032 GB, free: 9.516 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001201/1.033, allocations: 331.4 kB / 0.7036 GB, free: 9.191 MB / 478.1 MB Notification: Performance of SimCode: time 8.72e-07/1.033, allocations: 0 / 0.7036 GB, free: 9.191 MB / 478.1 MB Notification: Performance of Templates: time 0.3964/1.43, allocations: 202.2 MB / 0.901 GB, free: 24.96 MB / 0.4981 GB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.sim & ./Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_OpenCircuit/SMPM_OpenCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches