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.001395/0.001395, allocations: 114.8 kB / 17.75 MB, free: 5.344 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.001593/0.001593, allocations: 184.5 kB / 18.66 MB, free: 4.434 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.599/1.599, allocations: 222.9 MB / 242.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001148/0.001148, allocations: 47.94 kB / 352 MB, free: 3.25 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3167/0.3179, allocations: 49.44 MB / 401.4 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.03607/0.354, allocations: 30.34 MB / 431.8 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02071/0.3748, allocations: 8.639 MB / 440.4 MB, free: 1.746 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007648/0.3825, allocations: 183.5 kB / 440.6 MB, free: 1.566 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01259/0.3951, allocations: 4.906 MB / 445.5 MB, free: 12.65 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01023/0.4053, allocations: 2.96 MB / 448.5 MB, free: 9.676 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005218/0.4106, allocations: 1.61 MB / 450.1 MB, free: 8.07 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01284/0.4234, allocations: 8.714 MB / 458.8 MB, free: 15.32 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0209/0.4444, allocations: 12.85 MB / 471.6 MB, free: 2.375 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007636/0.452, allocations: 4.242 MB / 475.9 MB, free: 14.12 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008261/0.4603, allocations: 4.734 MB / 480.6 MB, free: 9.371 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003654/0.464, allocations: 1.164 MB / 481.8 MB, free: 8.207 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005414/0.4695, allocations: 1.523 MB / 483.3 MB, free: 6.684 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003867/0.4734, allocations: 2.412 MB / 485.7 MB, free: 4.266 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009437/0.4828, allocations: 4.669 MB / 490.4 MB, free: 15.57 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02172/0.5046, allocations: 15.8 MB / 0.4943 GB, free: 15.73 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.294e-06/0.5046, allocations: 0 / 0.4943 GB, free: 15.73 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.5046, allocations: 4 kB / 0.4943 GB, free: 15.73 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0004445/0.5051, allocations: 0 / 0.4943 GB, free: 15.73 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.02897/0.5341, allocations: 9.751 MB / 0.5038 GB, free: 5.883 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.345e-05/0.5341, allocations: 8.031 kB / 0.5039 GB, free: 5.875 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02914/0.5633, allocations: 5.27 MB / 0.509 GB, free: 0.5898 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01022/0.5735, allocations: 5.104 MB / 0.514 GB, free: 11.4 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000417/0.574, allocations: 0.5299 MB / 0.5145 GB, free: 10.87 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0022/0.5762, allocations: 0.703 MB / 0.5152 GB, free: 10.17 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0235/0.5997, allocations: 11.33 MB / 0.5263 GB, free: 14.76 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002064/0.5999, allocations: 19.89 kB / 0.5263 GB, free: 14.74 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001086/0.601, allocations: 296 kB / 0.5266 GB, free: 14.45 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004124/0.6014, allocations: 447 kB / 0.527 GB, free: 14.02 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02071/0.6222, allocations: 10.83 MB / 0.5376 GB, free: 3.176 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2727/0.8949, allocations: 37.58 MB / 0.5743 GB, free: 96.95 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01454/0.9095, allocations: 28.1 MB / 0.6017 GB, free: 68.27 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003781/0.9133, allocations: 2.659 MB / 0.6043 GB, free: 65.6 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01097/0.9243, allocations: 7.897 MB / 0.612 GB, free: 57.69 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.314e-05/0.9244, allocations: 64.47 kB / 0.6121 GB, free: 57.62 MB / 462.1 MB Notification: Performance of pre-optimization done (n=217): time 3.807e-06/0.9244, allocations: 0 / 0.6121 GB, free: 57.62 MB / 462.1 MB Notification: Performance of matching and sorting (n=233): time 0.0169/0.9413, allocations: 10.36 MB / 0.6222 GB, free: 47.25 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001499/0.9428, allocations: 2.015 MB / 0.6241 GB, free: 45.07 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004461/0.9473, allocations: 3.822 MB / 0.6279 GB, free: 41.27 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002484/0.9476, allocations: 61.7 kB / 0.6279 GB, free: 41.2 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001401/0.949, allocations: 3.555 MB / 0.6314 GB, free: 37.63 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004858/0.9495, allocations: 0.8201 MB / 0.6322 GB, free: 36.82 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001047/0.9505, allocations: 0.9529 MB / 0.6331 GB, free: 35.85 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.587e-05/0.9506, allocations: 305.1 kB / 0.6334 GB, free: 35.55 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002171/0.9528, allocations: 1.894 MB / 0.6353 GB, free: 33.65 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003002/0.9558, allocations: 4.397 MB / 0.6396 GB, free: 28.02 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005733/0.9615, allocations: 6.791 MB / 0.6462 GB, free: 20.03 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.964e-05/0.9616, allocations: 24 kB / 0.6462 GB, free: 20 MB / 462.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.00983/0.9714, allocations: 6.975 MB / 0.653 GB, free: 13.01 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.329e-05/0.9715, allocations: 44 kB / 0.6531 GB, free: 12.96 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001165/0.9716, allocations: 87.94 kB / 0.6532 GB, free: 12.88 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001721/0.9734, allocations: 0.7432 MB / 0.6539 GB, free: 12.13 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003185/0.9766, allocations: 1.123 MB / 0.655 GB, free: 11 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005949/0.9825, allocations: 5.636 MB / 0.6605 GB, free: 5.227 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003618/0.9862, allocations: 311.1 kB / 0.6608 GB, free: 4.922 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003999/0.9866, allocations: 276.1 kB / 0.6611 GB, free: 4.652 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.003353/0.99, allocations: 2.529 MB / 0.6635 GB, free: 2.109 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006831/0.9906, allocations: 379.3 kB / 0.6639 GB, free: 1.734 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00682/0.9975, allocations: 4.272 MB / 0.6681 GB, free: 13.44 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.883e-05/0.9975, allocations: 28 kB / 0.6681 GB, free: 13.41 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.185e-05/0.9975, allocations: 4 kB / 0.6681 GB, free: 13.41 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.398e-05/0.9976, allocations: 19.83 kB / 0.6681 GB, free: 13.39 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02319/1.021, allocations: 14.28 MB / 0.682 GB, free: 14.92 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.029e-05/1.021, allocations: 12 kB / 0.6821 GB, free: 14.91 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001909/1.023, allocations: 483.2 kB / 0.6825 GB, free: 14.44 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002073/1.025, allocations: 0.6854 MB / 0.6832 GB, free: 13.74 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002532/1.025, allocations: 71.97 kB / 0.6833 GB, free: 13.67 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00955/1.035, allocations: 7.485 MB / 0.6906 GB, free: 5.898 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001795/1.036, allocations: 1.961 MB / 0.6925 GB, free: 3.785 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01055/1.047, allocations: 6.743 MB / 0.6991 GB, free: 12.77 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002073/1.049, allocations: 0.8006 MB / 0.6999 GB, free: 11.94 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005447/1.05, allocations: 63.92 kB / 0.6999 GB, free: 11.88 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001796/1.052, allocations: 163.8 kB / 0.7001 GB, free: 11.72 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004483/1.052, allocations: 225.3 kB / 0.7003 GB, free: 11.5 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001655/1.052, allocations: 91.98 kB / 0.7004 GB, free: 11.41 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.003953/1.056, allocations: 2.509 MB / 0.7028 GB, free: 8.918 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.6e-07/1.056, allocations: 0 / 0.7028 GB, free: 8.918 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.005088/1.061, allocations: 1.292 MB / 0.7041 GB, free: 7.629 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.0005745/1.062, allocations: 229.1 kB / 0.7043 GB, free: 7.402 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.008404/1.07, allocations: 5.162 MB / 0.7093 GB, free: 2.195 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.218e-05/1.07, allocations: 0 / 0.7093 GB, free: 2.195 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.003909/1.074, allocations: 2.409 MB / 0.7117 GB, free: 15.75 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004979/1.079, allocations: 0.9935 MB / 0.7127 GB, free: 14.77 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02147/1.101, allocations: 12.2 MB / 0.7246 GB, free: 2.387 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00447/1.105, allocations: 4.386 MB / 0.7289 GB, free: 13.96 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001339/1.107, allocations: 335.4 kB / 0.7292 GB, free: 13.63 MB / 0.5294 GB Notification: Performance of SimCode: time 7.01e-07/1.107, allocations: 0 / 0.7292 GB, free: 13.63 MB / 0.5294 GB Notification: Performance of Templates: time 0.3945/1.501, allocations: 201.3 MB / 0.9258 GB, free: 11.96 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/jenkins1/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/jenkins1/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