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.001767/0.001767, allocations: 113.4 kB / 17.99 MB, free: 5.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002146/0.002146, allocations: 205.8 kB / 18.92 MB, free: 4.465 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.526/1.526, allocations: 227.4 MB / 247.1 MB, free: 10.68 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001865/0.001865, allocations: 64.77 kB / 307.2 MB, free: 0.8828 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.1139, allocations: 50.54 MB / 357.7 MB, free: 14.35 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.2449/0.3588, allocations: 30.46 MB / 388.2 MB, free: 4.715 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02217/0.3811, allocations: 8.759 MB / 396.9 MB, free: 14.68 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009038/0.3902, allocations: 182.3 kB / 397.1 MB, free: 14.64 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01396/0.4042, allocations: 4.6 MB / 401.7 MB, free: 12.04 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01282/0.4171, allocations: 2.701 MB / 404.4 MB, free: 10.03 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006062/0.4231, allocations: 1.512 MB / 405.9 MB, free: 8.844 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0159/0.4391, allocations: 8.892 MB / 414.8 MB, free: 3.59 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02427/0.4634, allocations: 14.39 MB / 429.2 MB, free: 5.137 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00931/0.4728, allocations: 4.202 MB / 433.4 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009833/0.4826, allocations: 4.784 MB / 438.2 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004137/0.4868, allocations: 1.16 MB / 439.4 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006921/0.4938, allocations: 1.558 MB / 440.9 MB, free: 9.402 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00452/0.4983, allocations: 2.412 MB / 443.3 MB, free: 6.984 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01164/0.51, allocations: 4.676 MB / 448 MB, free: 2.289 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02058/0.5306, allocations: 13.7 MB / 461.7 MB, free: 4.559 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.316e-06/0.5307, allocations: 0 / 461.7 MB, free: 4.559 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.415e-06/0.5307, allocations: 4 kB / 461.7 MB, free: 4.555 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0005412/0.5312, allocations: 0 / 461.7 MB, free: 4.555 MB / 366.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.03541/0.5666, allocations: 9.818 MB / 471.5 MB, free: 10.64 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.85e-05/0.5667, allocations: 12.03 kB / 471.5 MB, free: 10.63 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03006/0.5968, allocations: 5.157 MB / 476.7 MB, free: 5.457 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01544/0.6123, allocations: 4.984 MB / 481.7 MB, free: 400 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007808/0.6131, allocations: 0.5377 MB / 482.2 MB, free: 15.85 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003552/0.6167, allocations: 0.7106 MB / 482.9 MB, free: 15.14 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0329/0.6496, allocations: 11.35 MB / 494.3 MB, free: 3.707 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000441/0.6501, allocations: 23.75 kB / 494.3 MB, free: 3.684 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002779/0.6529, allocations: 296 kB / 494.6 MB, free: 3.395 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000581/0.6535, allocations: 447 kB / 495 MB, free: 2.957 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02587/0.6794, allocations: 10.85 MB / 0.494 GB, free: 8.094 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2921/0.9716, allocations: 38.88 MB / 0.532 GB, free: 125.1 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01892/0.9906, allocations: 28.3 MB / 0.5596 GB, free: 99.41 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004854/0.9955, allocations: 2.669 MB / 0.5622 GB, free: 99.38 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01409/1.01, allocations: 8.487 MB / 0.5705 GB, free: 96.68 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.866e-05/1.01, allocations: 60.75 kB / 0.5706 GB, free: 96.62 MB / 446.1 MB Notification: Performance of pre-optimization done (n=217): time 6.413e-06/1.01, allocations: 0 / 0.5706 GB, free: 96.62 MB / 446.1 MB Notification: Performance of matching and sorting (n=233): time 0.01948/1.029, allocations: 10.4 MB / 0.5807 GB, free: 92.17 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001822/1.031, allocations: 2.005 MB / 0.5827 GB, free: 90.34 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005305/1.036, allocations: 3.833 MB / 0.5864 GB, free: 88.86 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004349/1.037, allocations: 64.14 kB / 0.5865 GB, free: 88.8 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001974/1.039, allocations: 3.564 MB / 0.59 GB, free: 86.08 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009464/1.04, allocations: 0.8239 MB / 0.5908 GB, free: 85.46 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001284/1.041, allocations: 0.9613 MB / 0.5917 GB, free: 84.98 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.596e-05/1.041, allocations: 308.8 kB / 0.592 GB, free: 84.68 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002467/1.044, allocations: 1.899 MB / 0.5939 GB, free: 83.95 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003552/1.047, allocations: 4.392 MB / 0.5982 GB, free: 79.84 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006288/1.054, allocations: 6.804 MB / 0.6048 GB, free: 74.38 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.506e-05/1.054, allocations: 27.22 kB / 0.6048 GB, free: 74.38 MB / 446.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.01131/1.065, allocations: 6.995 MB / 0.6117 GB, free: 70.48 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.345e-05/1.065, allocations: 44 kB / 0.6117 GB, free: 70.44 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001369/1.065, allocations: 91.92 kB / 0.6118 GB, free: 70.35 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00181/1.067, allocations: 0.7445 MB / 0.6125 GB, free: 69.59 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003577/1.071, allocations: 1.128 MB / 0.6136 GB, free: 68.46 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005994/1.077, allocations: 5.634 MB / 0.6191 GB, free: 62.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004935/1.082, allocations: 311 kB / 0.6194 GB, free: 62.39 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008845/1.083, allocations: 280 kB / 0.6197 GB, free: 62.12 MB / 446.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.0055/1.088, allocations: 2.526 MB / 0.6221 GB, free: 59.58 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001115/1.089, allocations: 383.3 kB / 0.6225 GB, free: 59.2 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006619/1.096, allocations: 4.288 MB / 0.6267 GB, free: 54.88 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.784e-05/1.096, allocations: 24 kB / 0.6267 GB, free: 54.86 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.103e-05/1.096, allocations: 7.688 kB / 0.6267 GB, free: 54.86 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.269e-05/1.096, allocations: 15.89 kB / 0.6267 GB, free: 54.84 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02217/1.118, allocations: 14.33 MB / 0.6407 GB, free: 40.31 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.474e-05/1.118, allocations: 16.25 kB / 0.6408 GB, free: 40.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001678/1.12, allocations: 483.2 kB / 0.6412 GB, free: 39.82 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00186/1.122, allocations: 0.6974 MB / 0.6419 GB, free: 39.12 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001738/1.122, allocations: 71.97 kB / 0.642 GB, free: 39.05 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007534/1.129, allocations: 7.493 MB / 0.6493 GB, free: 31.28 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001449/1.131, allocations: 1.963 MB / 0.6512 GB, free: 29.16 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009238/1.14, allocations: 6.756 MB / 0.6578 GB, free: 22.12 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002277/1.142, allocations: 0.8046 MB / 0.6586 GB, free: 21.3 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006357/1.143, allocations: 63.94 kB / 0.6586 GB, free: 21.23 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001801/1.145, allocations: 163.9 kB / 0.6588 GB, free: 21.07 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004415/1.145, allocations: 217.5 kB / 0.659 GB, free: 20.86 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00016/1.146, allocations: 91.97 kB / 0.6591 GB, free: 20.77 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003674/1.149, allocations: 2.526 MB / 0.6616 GB, free: 18.23 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.41e-07/1.149, allocations: 0 / 0.6616 GB, free: 18.23 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006149/1.155, allocations: 1.3 MB / 0.6628 GB, free: 16.94 MB / 446.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.0007124/1.156, allocations: 240.4 kB / 0.6631 GB, free: 16.7 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01284/1.169, allocations: 7.026 MB / 0.6699 GB, free: 9.656 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.862e-05/1.169, allocations: 0 / 0.6699 GB, free: 9.656 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003248/1.172, allocations: 2.415 MB / 0.6723 GB, free: 7.195 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00495/1.177, allocations: 1.002 MB / 0.6733 GB, free: 6.227 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02717/1.204, allocations: 15.33 MB / 0.6882 GB, free: 6.715 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005874/1.21, allocations: 4.387 MB / 0.6925 GB, free: 2.285 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001612/1.212, allocations: 351.4 kB / 0.6929 GB, free: 1.941 MB / 462.1 MB Notification: Performance of SimCode: time 1.202e-06/1.212, allocations: 0 / 0.6929 GB, free: 1.941 MB / 462.1 MB Notification: Performance of Templates: time 0.6556/1.868, allocations: 201.3 MB / 0.8894 GB, free: 159.1 MB / 494.1 MB 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_OpenCircuit/SMPM_OpenCircuit.csv","/var/lib/jenkins1/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