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.002698/0.002698, allocations: 112.4 kB / 18.45 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002836/0.002836, allocations: 213.9 kB / 19.4 MB, free: 3.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.505/2.505, allocations: 227.4 MB / 247.6 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001125/0.001125, allocations: 59.91 kB / 359.4 MB, free: 12.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2678/0.2689, allocations: 50.54 MB / 410 MB, free: 1.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.02896/0.2979, allocations: 30.98 MB / 440.9 MB, free: 2.469 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01944/0.3174, allocations: 8.887 MB / 449.8 MB, free: 9.559 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006804/0.3242, allocations: 191.4 kB / 450 MB, free: 9.371 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0119/0.3362, allocations: 4.921 MB / 454.9 MB, free: 4.438 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0099/0.3461, allocations: 2.972 MB / 457.9 MB, free: 1.453 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005163/0.3513, allocations: 1.613 MB / 459.5 MB, free: 15.84 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01176/0.3631, allocations: 8.824 MB / 468.3 MB, free: 6.988 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01886/0.382, allocations: 12.85 MB / 481.2 MB, free: 10.04 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006729/0.3887, allocations: 4.246 MB / 485.4 MB, free: 5.781 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01145/0.4002, allocations: 4.831 MB / 490.3 MB, free: 0.9336 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004406/0.4047, allocations: 1.168 MB / 491.4 MB, free: 15.76 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006257/0.411, allocations: 1.542 MB / 493 MB, free: 14.22 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004185/0.4152, allocations: 2.408 MB / 495.4 MB, free: 11.81 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008468/0.4237, allocations: 4.673 MB / 0.4883 GB, free: 7.117 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02064/0.4443, allocations: 15.85 MB / 0.5038 GB, free: 7.219 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.4444, allocations: 4 kB / 0.5038 GB, free: 7.215 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.4444, allocations: 0 / 0.5038 GB, free: 7.215 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0004637/0.4449, allocations: 0 / 0.5038 GB, free: 7.215 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.0298/0.4747, allocations: 9.783 MB / 0.5134 GB, free: 13.34 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.753e-05/0.4747, allocations: 8.031 kB / 0.5134 GB, free: 13.33 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02844/0.5032, allocations: 5.27 MB / 0.5185 GB, free: 8.043 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01249/0.5157, allocations: 5.112 MB / 0.5235 GB, free: 2.848 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005882/0.5163, allocations: 0.5338 MB / 0.524 GB, free: 2.312 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002962/0.5193, allocations: 0.7185 MB / 0.5247 GB, free: 1.594 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02703/0.5464, allocations: 11.32 MB / 0.5358 GB, free: 6.191 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003108/0.5467, allocations: 19.83 kB / 0.5358 GB, free: 6.172 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002179/0.5489, allocations: 296 kB / 0.5361 GB, free: 5.883 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004427/0.5494, allocations: 447 kB / 0.5365 GB, free: 5.445 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2681/0.8175, allocations: 10.83 MB / 0.5471 GB, free: 112.5 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05522/0.8728, allocations: 38.47 MB / 0.5847 GB, free: 84.28 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01477/0.8876, allocations: 28.3 MB / 0.6123 GB, free: 52.16 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003968/0.8916, allocations: 2.683 MB / 0.6149 GB, free: 49.48 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01377/0.9054, allocations: 8.417 MB / 0.6231 GB, free: 40.89 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.228e-05/0.9055, allocations: 56.56 kB / 0.6232 GB, free: 40.83 MB / 462.1 MB Notification: Performance of pre-optimization done (n=217): time 3.897e-06/0.9055, allocations: 0 / 0.6232 GB, free: 40.83 MB / 462.1 MB Notification: Performance of matching and sorting (n=233): time 0.01744/0.9229, allocations: 10.36 MB / 0.6333 GB, free: 30.46 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001527/0.9245, allocations: 1.999 MB / 0.6353 GB, free: 28.29 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005508/0.93, allocations: 3.843 MB / 0.639 GB, free: 24.42 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003429/0.9304, allocations: 61.7 kB / 0.6391 GB, free: 24.35 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001572/0.932, allocations: 3.56 MB / 0.6425 GB, free: 20.77 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006845/0.9327, allocations: 0.8275 MB / 0.6434 GB, free: 19.95 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001509/0.9342, allocations: 0.949 MB / 0.6443 GB, free: 18.99 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.972e-05/0.9343, allocations: 317.1 kB / 0.6446 GB, free: 18.68 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0024/0.9367, allocations: 1.887 MB / 0.6464 GB, free: 16.78 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003214/0.9399, allocations: 4.395 MB / 0.6507 GB, free: 11.16 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005823/0.9457, allocations: 6.79 MB / 0.6574 GB, free: 3.16 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.461e-05/0.9458, allocations: 24 kB / 0.6574 GB, free: 3.137 MB / 462.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.01353/0.9594, allocations: 6.983 MB / 0.6642 GB, free: 12.13 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001117/0.9595, allocations: 44.94 kB / 0.6642 GB, free: 12.09 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001987/0.9597, allocations: 91.94 kB / 0.6643 GB, free: 12 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002641/0.9624, allocations: 0.7446 MB / 0.6651 GB, free: 11.25 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005099/0.9675, allocations: 1.119 MB / 0.6661 GB, free: 10.12 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009698/0.9772, allocations: 5.628 MB / 0.6716 GB, free: 4.352 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0056/0.9828, allocations: 315.3 kB / 0.6719 GB, free: 4.043 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0011/0.984, allocations: 275.9 kB / 0.6722 GB, free: 3.773 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.006699/0.9907, allocations: 2.533 MB / 0.6747 GB, free: 1.23 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001476/0.9922, allocations: 383.3 kB / 0.675 GB, free: 0.8516 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008223/1, allocations: 4.274 MB / 0.6792 GB, free: 12.55 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.087e-05/1, allocations: 24 kB / 0.6792 GB, free: 12.52 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.946e-05/1.001, allocations: 11.94 kB / 0.6793 GB, free: 12.51 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.673e-05/1.001, allocations: 11.95 kB / 0.6793 GB, free: 12.5 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02602/1.027, allocations: 14.29 MB / 0.6932 GB, free: 14.02 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.843e-05/1.027, allocations: 12 kB / 0.6932 GB, free: 14 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001907/1.029, allocations: 483.2 kB / 0.6937 GB, free: 13.53 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002039/1.031, allocations: 0.6939 MB / 0.6944 GB, free: 12.83 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002991/1.031, allocations: 67.98 kB / 0.6944 GB, free: 12.76 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008936/1.04, allocations: 7.494 MB / 0.7018 GB, free: 4.984 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001689/1.042, allocations: 1.957 MB / 0.7037 GB, free: 2.879 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01051/1.052, allocations: 6.744 MB / 0.7102 GB, free: 11.85 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002237/1.054, allocations: 0.7928 MB / 0.711 GB, free: 11.04 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001127/1.055, allocations: 67.92 kB / 0.7111 GB, free: 10.97 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002333/1.058, allocations: 159.8 kB / 0.7112 GB, free: 10.81 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000453/1.058, allocations: 221.5 kB / 0.7115 GB, free: 10.59 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001876/1.059, allocations: 91.97 kB / 0.7115 GB, free: 10.5 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.003624/1.062, allocations: 2.518 MB / 0.714 GB, free: 7.973 MB / 0.5138 GB Notification: Performance of sort global known variables: time 1.31e-07/1.062, allocations: 0 / 0.714 GB, free: 7.973 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.004857/1.067, allocations: 1.296 MB / 0.7153 GB, free: 6.68 MB / 0.5138 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.0005499/1.068, allocations: 241.1 kB / 0.7155 GB, free: 6.438 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.008655/1.076, allocations: 5.169 MB / 0.7205 GB, free: 1.227 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.443e-05/1.076, allocations: 0 / 0.7205 GB, free: 1.227 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.003925/1.08, allocations: 2.405 MB / 0.7229 GB, free: 14.79 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005708/1.086, allocations: 1.012 MB / 0.7239 GB, free: 13.8 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02198/1.108, allocations: 12.26 MB / 0.7358 GB, free: 1.355 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004058/1.112, allocations: 4.383 MB / 0.7401 GB, free: 12.93 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001251/1.113, allocations: 331.4 kB / 0.7404 GB, free: 12.61 MB / 0.545 GB Notification: Performance of SimCode: time 1.372e-06/1.113, allocations: 4 kB / 0.7404 GB, free: 12.61 MB / 0.545 GB Notification: Performance of Templates: time 0.6765/1.79, allocations: 202.7 MB / 0.9384 GB, free: 19.43 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/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_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches