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) 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) 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: 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001385/0.001385, allocations: 109.2 kB / 17.06 MB, free: 5.828 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.001383/0.001383, allocations: 195.9 kB / 18 MB, free: 4.965 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.326/1.326, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009416/0.0009416, allocations: 47.92 kB / 351.3 MB, free: 3.23 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.236/0.2369, allocations: 49.43 MB / 400.7 MB, free: 8.766 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.02984/0.2668, allocations: 30.35 MB / 431.1 MB, free: 10.4 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01651/0.2833, allocations: 8.642 MB / 439.7 MB, free: 1.734 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004849/0.2882, allocations: 183.5 kB / 439.9 MB, free: 1.555 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01128/0.2995, allocations: 4.914 MB / 444.8 MB, free: 12.62 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008322/0.3079, allocations: 2.96 MB / 447.8 MB, free: 9.652 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004161/0.312, allocations: 1.613 MB / 449.4 MB, free: 8.047 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01082/0.3229, allocations: 8.706 MB / 458.1 MB, free: 15.3 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01714/0.3401, allocations: 12.86 MB / 471 MB, free: 2.348 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005556/0.3457, allocations: 4.218 MB / 475.2 MB, free: 14.12 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006883/0.3526, allocations: 4.737 MB / 479.9 MB, free: 9.363 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00279/0.3554, allocations: 1.164 MB / 481.1 MB, free: 8.199 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004105/0.3595, allocations: 1.519 MB / 482.6 MB, free: 6.68 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00258/0.3621, allocations: 2.419 MB / 485 MB, free: 4.254 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0064/0.3685, allocations: 4.665 MB / 489.7 MB, free: 15.57 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01732/0.3859, allocations: 15.84 MB / 0.4937 GB, free: 15.68 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.242e-06/0.3859, allocations: 0 / 0.4937 GB, free: 15.68 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.3859, allocations: 0 / 0.4937 GB, free: 15.68 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0003992/0.3863, allocations: 0 / 0.4937 GB, free: 15.68 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.0277/0.414, allocations: 9.925 MB / 0.5034 GB, free: 5.645 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.229e-05/0.4141, allocations: 12.03 kB / 0.5034 GB, free: 5.633 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02896/0.4431, allocations: 5.31 MB / 0.5086 GB, free: 320 kB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009901/0.453, allocations: 5.122 MB / 0.5136 GB, free: 11.11 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003683/0.4534, allocations: 0.5299 MB / 0.5141 GB, free: 10.58 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00153/0.4549, allocations: 0.7069 MB / 0.5148 GB, free: 9.871 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02109/0.476, allocations: 11.32 MB / 0.5258 GB, free: 14.46 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001682/0.4762, allocations: 11.95 kB / 0.5259 GB, free: 14.45 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007478/0.477, allocations: 296 kB / 0.5261 GB, free: 14.16 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003994/0.4774, allocations: 446.9 kB / 0.5266 GB, free: 13.73 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01874/0.4961, allocations: 10.84 MB / 0.5371 GB, free: 2.879 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2495/0.7456, allocations: 37.67 MB / 0.5739 GB, free: 96.5 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0144/0.7601, allocations: 28.11 MB / 0.6014 GB, free: 67.65 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003495/0.7636, allocations: 2.659 MB / 0.604 GB, free: 64.98 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01125/0.7749, allocations: 7.913 MB / 0.6117 GB, free: 57.12 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.869e-05/0.775, allocations: 60.5 kB / 0.6118 GB, free: 57.05 MB / 462.1 MB Notification: Performance of pre-optimization done (n=217): time 3.456e-06/0.775, allocations: 0 / 0.6118 GB, free: 57.05 MB / 462.1 MB Notification: Performance of matching and sorting (n=233): time 0.01725/0.7922, allocations: 10.47 MB / 0.622 GB, free: 46.87 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001516/0.7938, allocations: 1.997 MB / 0.6239 GB, free: 44.71 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005544/0.7993, allocations: 3.828 MB / 0.6277 GB, free: 40.96 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002719/0.7996, allocations: 65.7 kB / 0.6277 GB, free: 40.89 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00162/0.8013, allocations: 3.673 MB / 0.6313 GB, free: 37.53 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006629/0.8019, allocations: 0.8705 MB / 0.6322 GB, free: 36.67 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001438/0.8034, allocations: 0.9575 MB / 0.6331 GB, free: 35.7 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.017e-05/0.8034, allocations: 305.1 kB / 0.6334 GB, free: 35.4 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002385/0.8058, allocations: 1.898 MB / 0.6353 GB, free: 33.5 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003185/0.809, allocations: 4.393 MB / 0.6395 GB, free: 27.88 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005767/0.8148, allocations: 6.791 MB / 0.6462 GB, free: 19.88 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.774e-05/0.8148, allocations: 24 kB / 0.6462 GB, free: 19.86 MB / 462.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.009698/0.8246, allocations: 7.001 MB / 0.653 GB, free: 12.84 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.917e-05/0.8246, allocations: 44.22 kB / 0.6531 GB, free: 12.79 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001085/0.8248, allocations: 91.94 kB / 0.6532 GB, free: 12.7 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001975/0.8267, allocations: 0.7348 MB / 0.6539 GB, free: 11.96 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003318/0.8301, allocations: 1.127 MB / 0.655 GB, free: 10.83 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006394/0.8365, allocations: 5.645 MB / 0.6605 GB, free: 5.047 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004055/0.8406, allocations: 311.4 kB / 0.6608 GB, free: 4.742 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006903/0.8413, allocations: 272 kB / 0.6611 GB, free: 4.477 MB / 462.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.004533/0.8458, allocations: 2.526 MB / 0.6635 GB, free: 1.938 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009425/0.8468, allocations: 409.4 kB / 0.6639 GB, free: 1.535 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007758/0.8545, allocations: 4.272 MB / 0.6681 GB, free: 13.24 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.163e-05/0.8546, allocations: 24 kB / 0.6681 GB, free: 13.22 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.954e-05/0.8546, allocations: 12 kB / 0.6681 GB, free: 13.21 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.699e-05/0.8546, allocations: 15.89 kB / 0.6681 GB, free: 13.19 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02441/0.8791, allocations: 14.28 MB / 0.6821 GB, free: 14.72 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.237e-05/0.8791, allocations: 15.94 kB / 0.6821 GB, free: 14.7 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001887/0.881, allocations: 475.3 kB / 0.6825 GB, free: 14.24 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002139/0.8832, allocations: 0.6898 MB / 0.6832 GB, free: 13.54 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002564/0.8834, allocations: 71.97 kB / 0.6833 GB, free: 13.47 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009529/0.893, allocations: 7.495 MB / 0.6906 GB, free: 5.688 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001919/0.8949, allocations: 1.957 MB / 0.6925 GB, free: 3.574 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01142/0.9064, allocations: 6.769 MB / 0.6991 GB, free: 12.54 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00197/0.9084, allocations: 0.8067 MB / 0.6999 GB, free: 11.71 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009464/0.9093, allocations: 67.92 kB / 0.7 GB, free: 11.64 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002307/0.9117, allocations: 167.9 kB / 0.7001 GB, free: 11.48 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004695/0.9121, allocations: 217.3 kB / 0.7003 GB, free: 11.26 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002197/0.9124, allocations: 87.98 kB / 0.7004 GB, free: 11.18 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.004464/0.9168, allocations: 2.509 MB / 0.7029 GB, free: 8.688 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.71e-07/0.9169, allocations: 4 kB / 0.7029 GB, free: 8.684 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.005132/0.922, allocations: 1.293 MB / 0.7041 GB, free: 7.391 MB / 0.4981 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.0005849/0.9226, allocations: 233.9 kB / 0.7044 GB, free: 7.156 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.008404/0.931, allocations: 5.163 MB / 0.7094 GB, free: 1.945 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.25e-05/0.9311, allocations: 8.062 kB / 0.7094 GB, free: 1.938 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.003936/0.935, allocations: 2.41 MB / 0.7118 GB, free: 15.49 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005852/0.9409, allocations: 0.9856 MB / 0.7127 GB, free: 14.52 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02422/0.9651, allocations: 12.52 MB / 0.725 GB, free: 1.797 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007223/0.9724, allocations: 4.491 MB / 0.7294 GB, free: 13.27 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004418/0.9769, allocations: 1.36 MB / 0.7307 GB, free: 11.9 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00116/0.978, allocations: 307.4 kB / 0.731 GB, free: 11.6 MB / 0.5294 GB Notification: Performance of SimCode: time 9.22e-07/0.9781, allocations: 0 / 0.731 GB, free: 11.6 MB / 0.5294 GB Notification: Performance of Templates: time 0.2713/1.249, allocations: 53.32 MB / 0.783 GB, free: 160 MB / 0.5294 GB 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","/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) Reference file matches