Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001238/0.001238, allocations: 117.2 kB / 17.79 MB, free: 5.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00133/0.00133, allocations: 200.6 kB / 18.73 MB, free: 4.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.298/1.298, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001095/0.001095, allocations: 55.91 kB / 358.7 MB, free: 12.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3055/0.3066, allocations: 50.54 MB / 409.3 MB, free: 1.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.03205/0.3387, allocations: 30.98 MB / 440.2 MB, free: 2.613 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01855/0.3573, allocations: 8.888 MB / 449.1 MB, free: 9.703 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005899/0.3632, allocations: 187.5 kB / 449.3 MB, free: 9.52 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01294/0.3762, allocations: 4.984 MB / 454.3 MB, free: 4.523 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01131/0.3875, allocations: 3.046 MB / 457.3 MB, free: 1.465 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005672/0.3932, allocations: 1.636 MB / 459 MB, free: 15.83 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01217/0.4054, allocations: 8.809 MB / 467.8 MB, free: 6.996 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0197/0.4251, allocations: 12.85 MB / 480.6 MB, free: 10.05 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006527/0.4317, allocations: 4.257 MB / 484.9 MB, free: 5.777 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007599/0.4393, allocations: 4.827 MB / 489.7 MB, free: 0.9336 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003307/0.4427, allocations: 1.164 MB / 490.9 MB, free: 15.77 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005698/0.4484, allocations: 1.539 MB / 492.4 MB, free: 14.23 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004248/0.4527, allocations: 2.415 MB / 494.8 MB, free: 11.81 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009298/0.462, allocations: 4.673 MB / 499.5 MB, free: 7.117 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02072/0.4827, allocations: 15.86 MB / 0.5033 GB, free: 7.215 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.823e-06/0.4828, allocations: 0 / 0.5033 GB, free: 7.215 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.4828, allocations: 0 / 0.5033 GB, free: 7.215 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0004641/0.4833, allocations: 3.984 kB / 0.5033 GB, free: 7.211 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.03105/0.5143, allocations: 9.771 MB / 0.5128 GB, free: 13.34 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.221e-05/0.5144, allocations: 11.97 kB / 0.5129 GB, free: 13.33 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02874/0.5432, allocations: 5.274 MB / 0.518 GB, free: 8.043 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01131/0.5545, allocations: 5.12 MB / 0.523 GB, free: 2.84 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006363/0.5552, allocations: 0.526 MB / 0.5235 GB, free: 2.312 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002981/0.5582, allocations: 0.7069 MB / 0.5242 GB, free: 1.605 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03134/0.5895, allocations: 11.32 MB / 0.5353 GB, free: 6.199 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005234/0.5901, allocations: 11.91 kB / 0.5353 GB, free: 6.188 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003017/0.5931, allocations: 304 kB / 0.5356 GB, free: 5.891 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000618/0.5938, allocations: 450.9 kB / 0.536 GB, free: 5.449 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2433/0.8371, allocations: 10.83 MB / 0.5466 GB, free: 112.6 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0478/0.8849, allocations: 38.48 MB / 0.5841 GB, free: 84.43 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01251/0.8974, allocations: 28.29 MB / 0.6118 GB, free: 52.31 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003347/0.9008, allocations: 2.685 MB / 0.6144 GB, free: 49.62 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01071/0.9116, allocations: 8.42 MB / 0.6226 GB, free: 41.04 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.476e-05/0.9116, allocations: 56.56 kB / 0.6227 GB, free: 40.98 MB / 462.1 MB Notification: Performance of pre-optimization done (n=217): time 5.039e-06/0.9117, allocations: 0 / 0.6227 GB, free: 40.98 MB / 462.1 MB Notification: Performance of matching and sorting (n=233): time 0.01668/0.9283, allocations: 10.36 MB / 0.6328 GB, free: 30.61 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001488/0.9299, allocations: 2.003 MB / 0.6347 GB, free: 28.43 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004317/0.9342, allocations: 3.843 MB / 0.6385 GB, free: 24.56 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001729/0.9344, allocations: 61.7 kB / 0.6386 GB, free: 24.5 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001292/0.9357, allocations: 3.555 MB / 0.642 GB, free: 20.92 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004351/0.9361, allocations: 0.8315 MB / 0.6428 GB, free: 20.1 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001057/0.9372, allocations: 0.9529 MB / 0.6438 GB, free: 19.13 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.426e-05/0.9372, allocations: 305.1 kB / 0.6441 GB, free: 18.83 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002244/0.9395, allocations: 1.891 MB / 0.6459 GB, free: 16.93 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002999/0.9425, allocations: 4.395 MB / 0.6502 GB, free: 11.3 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005533/0.948, allocations: 6.793 MB / 0.6568 GB, free: 3.305 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.63e-05/0.9481, allocations: 24 kB / 0.6569 GB, free: 3.281 MB / 462.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.01041/0.9585, allocations: 6.977 MB / 0.6637 GB, free: 12.29 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.042e-05/0.9586, allocations: 47.94 kB / 0.6637 GB, free: 12.24 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.65e-05/0.9587, allocations: 87.94 kB / 0.6638 GB, free: 12.15 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001949/0.9606, allocations: 0.7452 MB / 0.6645 GB, free: 11.4 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003466/0.9641, allocations: 1.119 MB / 0.6656 GB, free: 10.28 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007371/0.9715, allocations: 5.635 MB / 0.6711 GB, free: 4.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003959/0.9755, allocations: 315.1 kB / 0.6714 GB, free: 4.191 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006672/0.9762, allocations: 280 kB / 0.6717 GB, free: 3.918 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.004183/0.9803, allocations: 2.526 MB / 0.6742 GB, free: 1.379 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008801/0.9812, allocations: 379.3 kB / 0.6745 GB, free: 1.004 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007607/0.9889, allocations: 4.271 MB / 0.6787 GB, free: 12.7 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.037e-05/0.9889, allocations: 24 kB / 0.6787 GB, free: 12.68 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.326e-05/0.9889, allocations: 11.94 kB / 0.6787 GB, free: 12.66 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.23e-05/0.9889, allocations: 11.95 kB / 0.6787 GB, free: 12.65 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02337/1.012, allocations: 14.29 MB / 0.6927 GB, free: 14.16 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.664e-05/1.012, allocations: 12 kB / 0.6927 GB, free: 14.15 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0018/1.014, allocations: 483.2 kB / 0.6932 GB, free: 13.68 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001985/1.016, allocations: 0.6897 MB / 0.6938 GB, free: 12.98 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001777/1.016, allocations: 71.97 kB / 0.6939 GB, free: 12.91 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009769/1.026, allocations: 7.494 MB / 0.7012 GB, free: 5.137 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001811/1.028, allocations: 1.953 MB / 0.7031 GB, free: 3.031 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01041/1.038, allocations: 6.747 MB / 0.7097 GB, free: 12.01 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002388/1.041, allocations: 0.7967 MB / 0.7105 GB, free: 11.19 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006145/1.041, allocations: 67.98 kB / 0.7106 GB, free: 11.12 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001724/1.043, allocations: 159.8 kB / 0.7107 GB, free: 10.97 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005178/1.044, allocations: 221.4 kB / 0.7109 GB, free: 10.75 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001822/1.044, allocations: 91.98 kB / 0.711 GB, free: 10.66 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.00428/1.048, allocations: 2.526 MB / 0.7135 GB, free: 8.121 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.71e-07/1.048, allocations: 0 / 0.7135 GB, free: 8.121 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.006008/1.054, allocations: 1.292 MB / 0.7147 GB, free: 6.832 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.0006487/1.055, allocations: 230.4 kB / 0.715 GB, free: 6.598 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.01078/1.066, allocations: 5.167 MB / 0.72 GB, free: 1.391 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.574e-05/1.066, allocations: 0 / 0.72 GB, free: 1.391 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.004228/1.07, allocations: 2.41 MB / 0.7224 GB, free: 14.94 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004633/1.075, allocations: 1.01 MB / 0.7234 GB, free: 13.95 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02412/1.099, allocations: 12.36 MB / 0.7354 GB, free: 1.406 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005744/1.105, allocations: 4.503 MB / 0.7398 GB, free: 12.86 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004139/1.109, allocations: 1.36 MB / 0.7411 GB, free: 11.5 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000906/1.11, allocations: 299.4 kB / 0.7414 GB, free: 11.21 MB / 0.545 GB Notification: Performance of SimCode: time 1.162e-06/1.11, allocations: 0 / 0.7414 GB, free: 11.21 MB / 0.545 GB Notification: Performance of Templates: time 0.3069/1.417, allocations: 53.62 MB / 0.7938 GB, free: 168.9 MB / 0.545 GB make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.makefile (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.sim & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches