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.0009676/0.0009676, allocations: 95 kB / 18 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00114/0.00114, allocations: 202.6 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.313/1.313, allocations: 227.7 MB / 247.5 MB, free: 11.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002568/0.000257, allocations: 8 kB / 308.4 MB, free: 0.8008 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0932/0.09347, allocations: 51.52 MB / 359.9 MB, free: 13.28 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.1991/0.2926, allocations: 29.27 MB / 389.2 MB, free: 4.863 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01815/0.3108, allocations: 8.723 MB / 397.9 MB, free: 15.16 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006108/0.317, allocations: 177.2 kB / 398.1 MB, free: 15.12 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005746/0.3227, allocations: 1.585 MB / 399.7 MB, free: 14.39 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01047/0.3332, allocations: 2.72 MB / 402.4 MB, free: 12.7 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004925/0.3382, allocations: 1.404 MB / 403.8 MB, free: 11.66 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01361/0.3518, allocations: 9.117 MB / 412.9 MB, free: 6.438 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02155/0.3734, allocations: 12.03 MB / 425 MB, free: 10.79 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005931/0.3793, allocations: 3.078 MB / 428 MB, free: 7.703 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006803/0.3862, allocations: 3.796 MB / 431.8 MB, free: 3.891 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002236/0.3884, allocations: 479.9 kB / 432.3 MB, free: 3.422 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004233/0.3927, allocations: 0.8511 MB / 433.1 MB, free: 2.57 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002622/0.3953, allocations: 1.595 MB / 434.7 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007696/0.403, allocations: 3.796 MB / 438.5 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01466/0.4177, allocations: 13.23 MB / 451.8 MB, free: 15.88 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.4178, allocations: 0 / 451.8 MB, free: 15.88 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.4178, allocations: 0 / 451.8 MB, free: 15.88 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004416/0.4182, allocations: 0 / 451.8 MB, free: 15.88 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.0231/0.4413, allocations: 8.226 MB / 460 MB, free: 7.559 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.344e-05/0.4414, allocations: 8.031 kB / 460 MB, free: 7.551 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02895/0.4703, allocations: 5.27 MB / 465.3 MB, free: 2.266 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01086/0.4812, allocations: 4.984 MB / 470.3 MB, free: 13.2 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006417/0.4819, allocations: 0.53 MB / 470.8 MB, free: 12.66 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00279/0.4847, allocations: 0.7067 MB / 471.5 MB, free: 11.96 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02533/0.5101, allocations: 11.33 MB / 482.8 MB, free: 0.5508 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001989/0.5103, allocations: 15.89 kB / 482.8 MB, free: 0.5352 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008145/0.5111, allocations: 300 kB / 483.1 MB, free: 248 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004003/0.5116, allocations: 439 kB / 483.6 MB, free: 15.81 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01988/0.5314, allocations: 10.83 MB / 494.4 MB, free: 4.977 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06312/0.5946, allocations: 39.02 MB / 0.5209 GB, free: 12.65 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2086/0.8033, allocations: 28.26 MB / 0.5485 GB, free: 112.7 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005381/0.8087, allocations: 2.673 MB / 0.5511 GB, free: 112.6 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01513/0.8238, allocations: 8.45 MB / 0.5594 GB, free: 108.8 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.815e-05/0.8239, allocations: 62.16 kB / 0.5594 GB, free: 108.7 MB / 446.1 MB Notification: Performance of pre-optimization done (n=217): time 5.791e-06/0.8239, allocations: 0 / 0.5594 GB, free: 108.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=233): time 0.02028/0.8442, allocations: 10.38 MB / 0.5696 GB, free: 104.2 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001659/0.8459, allocations: 1.921 MB / 0.5714 GB, free: 102.4 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006792/0.8527, allocations: 3.832 MB / 0.5752 GB, free: 100.9 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000282/0.853, allocations: 65.64 kB / 0.5752 GB, free: 100.9 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002094/0.8551, allocations: 3.558 MB / 0.5787 GB, free: 98.18 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007716/0.8559, allocations: 0.8326 MB / 0.5795 GB, free: 97.55 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005954/0.8565, allocations: 386.2 kB / 0.5799 GB, free: 97.37 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.635e-05/0.8566, allocations: 308 kB / 0.5802 GB, free: 97.07 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002521/0.8591, allocations: 1.89 MB / 0.582 GB, free: 96.35 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00344/0.8626, allocations: 4.388 MB / 0.5863 GB, free: 92.25 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006186/0.8688, allocations: 6.79 MB / 0.593 GB, free: 86.79 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.285e-05/0.8688, allocations: 26.03 kB / 0.593 GB, free: 86.79 MB / 446.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.01032/0.8792, allocations: 6.99 MB / 0.5998 GB, free: 83.64 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.592e-05/0.8793, allocations: 40 kB / 0.5998 GB, free: 83.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001142/0.8794, allocations: 92.12 kB / 0.5999 GB, free: 83.51 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001907/0.8813, allocations: 0.7357 MB / 0.6007 GB, free: 82.93 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003298/0.8846, allocations: 1.122 MB / 0.6018 GB, free: 81.96 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005831/0.8904, allocations: 5.242 MB / 0.6069 GB, free: 76.84 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004105/0.8946, allocations: 315 kB / 0.6072 GB, free: 76.53 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005232/0.8951, allocations: 280 kB / 0.6074 GB, free: 76.26 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.004325/0.8994, allocations: 2.525 MB / 0.6099 GB, free: 73.72 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001097/0.9005, allocations: 387.2 kB / 0.6103 GB, free: 73.34 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006858/0.9074, allocations: 4.271 MB / 0.6144 GB, free: 69.04 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-05/0.9074, allocations: 27.94 kB / 0.6145 GB, free: 69.02 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.097e-05/0.9075, allocations: 7.938 kB / 0.6145 GB, free: 69.01 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.995e-05/0.9075, allocations: 11.95 kB / 0.6145 GB, free: 69 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01972/0.9272, allocations: 14.31 MB / 0.6285 GB, free: 54.49 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.569e-05/0.9273, allocations: 12 kB / 0.6285 GB, free: 54.48 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001642/0.9289, allocations: 483.3 kB / 0.6289 GB, free: 54.01 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001837/0.9308, allocations: 0.6819 MB / 0.6296 GB, free: 53.32 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001648/0.9309, allocations: 79.84 kB / 0.6297 GB, free: 53.24 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006825/0.9378, allocations: 6.947 MB / 0.6365 GB, free: 46.03 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001287/0.9391, allocations: 1.863 MB / 0.6383 GB, free: 44.03 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00847/0.9476, allocations: 6.753 MB / 0.6449 GB, free: 37 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001959/0.9496, allocations: 0.7967 MB / 0.6457 GB, free: 36.18 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007058/0.9503, allocations: 56 kB / 0.6457 GB, free: 36.12 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001884/0.9522, allocations: 175.9 kB / 0.6459 GB, free: 35.95 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004186/0.9526, allocations: 217.4 kB / 0.6461 GB, free: 35.74 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001642/0.9528, allocations: 95.55 kB / 0.6462 GB, free: 35.65 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003703/0.9565, allocations: 2.526 MB / 0.6486 GB, free: 33.11 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.9e-07/0.9565, allocations: 0 / 0.6486 GB, free: 33.11 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00532/0.9619, allocations: 1.296 MB / 0.6499 GB, free: 31.82 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.000643/0.9625, allocations: 242 kB / 0.6501 GB, free: 31.58 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007349/0.9699, allocations: 5.141 MB / 0.6552 GB, free: 26.39 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.133e-05/0.9699, allocations: 0 / 0.6552 GB, free: 26.39 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003464/0.9734, allocations: 2.407 MB / 0.6575 GB, free: 23.94 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01146/0.9849, allocations: 0.9393 MB / 0.6584 GB, free: 23.02 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02271/1.008, allocations: 15.43 MB / 0.6735 GB, free: 7.387 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004567/1.012, allocations: 4.393 MB / 0.6778 GB, free: 2.957 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001226/1.014, allocations: 331.4 kB / 0.6781 GB, free: 2.633 MB / 446.1 MB Notification: Performance of SimCode: time 9.62e-07/1.014, allocations: 0 / 0.6781 GB, free: 2.633 MB / 446.1 MB Notification: Performance of Templates: time 0.3946/1.408, allocations: 200.1 MB / 0.8735 GB, free: 9.637 MB / 478.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.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