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.000814/0.0008141, allocations: 91.86 kB / 16.65 MB, free: 6.59 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.0008858/0.0008859, allocations: 182.8 kB / 17.56 MB, free: 6.203 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.301/1.301, allocations: 223.3 MB / 241.6 MB, free: 196 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002542/0.0002543, allocations: 4 kB / 301.4 MB, free: 6.133 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08371/0.08398, allocations: 50.41 MB / 351.9 MB, free: 3.715 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.177/0.261, allocations: 28.65 MB / 380.5 MB, free: 10.67 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01534/0.2764, allocations: 8.493 MB / 389 MB, free: 8.324 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006301/0.2827, allocations: 172.2 kB / 389.2 MB, free: 8.293 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005245/0.288, allocations: 1.577 MB / 390.7 MB, free: 7.562 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008554/0.2966, allocations: 2.699 MB / 393.4 MB, free: 5.875 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003926/0.3005, allocations: 1.389 MB / 394.8 MB, free: 4.949 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01062/0.3112, allocations: 8.979 MB / 403.8 MB, free: 136 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01798/0.3292, allocations: 12.03 MB / 415.8 MB, free: 6.055 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005548/0.3347, allocations: 3.058 MB / 418.9 MB, free: 2.984 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006101/0.3409, allocations: 3.796 MB / 422.7 MB, free: 15.17 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001758/0.3426, allocations: 476 kB / 423.2 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00395/0.3466, allocations: 0.8199 MB / 424 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001848/0.3485, allocations: 1.588 MB / 425.6 MB, free: 12.29 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005051/0.3535, allocations: 3.792 MB / 429.4 MB, free: 8.473 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01839/0.3719, allocations: 14.86 MB / 444.2 MB, free: 9.559 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.112e-06/0.372, allocations: 0 / 444.2 MB, free: 9.559 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.665e-06/0.372, allocations: 0 / 444.2 MB, free: 9.559 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.00035/0.3724, allocations: 0 / 444.2 MB, free: 9.559 MB / 350.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.03063/0.403, allocations: 8.18 MB / 452.4 MB, free: 1.285 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.859e-05/0.4031, allocations: 12.03 kB / 452.4 MB, free: 1.273 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03095/0.4341, allocations: 5.286 MB / 457.7 MB, free: 11.97 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01101/0.4451, allocations: 4.957 MB / 462.7 MB, free: 6.934 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006759/0.4458, allocations: 0.5339 MB / 463.2 MB, free: 6.398 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002947/0.4488, allocations: 0.7185 MB / 463.9 MB, free: 5.68 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02691/0.4757, allocations: 11.32 MB / 475.2 MB, free: 10.28 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003133/0.4761, allocations: 11.84 kB / 475.2 MB, free: 10.27 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001721/0.4778, allocations: 307.9 kB / 475.6 MB, free: 9.965 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004879/0.4783, allocations: 443 kB / 476 MB, free: 9.531 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02261/0.5009, allocations: 10.82 MB / 486.8 MB, free: 14.7 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06521/0.5662, allocations: 38.12 MB / 0.5126 GB, free: 7.453 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.192/0.7582, allocations: 28.08 MB / 0.54 GB, free: 97.14 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004715/0.7629, allocations: 2.647 MB / 0.5426 GB, free: 97.1 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0125/0.7755, allocations: 7.94 MB / 0.5504 GB, free: 93.74 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.27e-05/0.7755, allocations: 59.69 kB / 0.5504 GB, free: 93.68 MB / 430.1 MB Notification: Performance of pre-optimization done (n=217): time 3.787e-06/0.7755, allocations: 5.5 kB / 0.5504 GB, free: 93.68 MB / 430.1 MB Notification: Performance of matching and sorting (n=233): time 0.01852/0.7941, allocations: 10.37 MB / 0.5606 GB, free: 89.15 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001688/0.7958, allocations: 1.912 MB / 0.5624 GB, free: 87.43 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005325/0.8011, allocations: 3.824 MB / 0.5662 GB, free: 86 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002901/0.8014, allocations: 65.61 kB / 0.5662 GB, free: 85.93 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001869/0.8033, allocations: 3.549 MB / 0.5697 GB, free: 83.23 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006381/0.804, allocations: 0.8264 MB / 0.5705 GB, free: 82.61 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004325/0.8044, allocations: 386.2 kB / 0.5709 GB, free: 82.43 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.351e-05/0.8045, allocations: 301.1 kB / 0.5712 GB, free: 82.13 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002296/0.8068, allocations: 1.893 MB / 0.573 GB, free: 81.41 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003143/0.8099, allocations: 4.392 MB / 0.5773 GB, free: 77.31 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006222/0.8162, allocations: 6.798 MB / 0.5839 GB, free: 71.84 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.767e-05/0.8162, allocations: 23.41 kB / 0.584 GB, free: 71.84 MB / 430.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.009969/0.8262, allocations: 6.974 MB / 0.5908 GB, free: 68.97 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.427e-05/0.8263, allocations: 49.36 kB / 0.5908 GB, free: 68.96 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001008/0.8264, allocations: 92 kB / 0.5909 GB, free: 68.87 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001808/0.8282, allocations: 0.7386 MB / 0.5916 GB, free: 68.29 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003278/0.8315, allocations: 1.119 MB / 0.5927 GB, free: 67.31 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005784/0.8373, allocations: 5.234 MB / 0.5978 GB, free: 61.99 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003742/0.8411, allocations: 315.8 kB / 0.5981 GB, free: 61.68 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004387/0.8415, allocations: 272 kB / 0.5984 GB, free: 61.41 MB / 430.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.003608/0.8452, allocations: 2.523 MB / 0.6009 GB, free: 58.88 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006996/0.8459, allocations: 383.3 kB / 0.6012 GB, free: 58.5 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006431/0.8523, allocations: 4.281 MB / 0.6054 GB, free: 54.21 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-05/0.8523, allocations: 27.98 kB / 0.6054 GB, free: 54.18 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.637e-06/0.8524, allocations: 4 kB / 0.6054 GB, free: 54.18 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.156e-05/0.8524, allocations: 15.89 kB / 0.6054 GB, free: 54.16 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01835/0.8707, allocations: 14.28 MB / 0.6194 GB, free: 39.69 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.43e-05/0.8708, allocations: 12 kB / 0.6194 GB, free: 39.68 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001713/0.8725, allocations: 487.3 kB / 0.6199 GB, free: 39.2 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001869/0.8744, allocations: 0.6854 MB / 0.6205 GB, free: 38.5 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001966/0.8746, allocations: 67.98 kB / 0.6206 GB, free: 38.44 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007037/0.8816, allocations: 6.948 MB / 0.6274 GB, free: 31.22 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001391/0.8831, allocations: 1.884 MB / 0.6292 GB, free: 29.19 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008603/0.8917, allocations: 6.74 MB / 0.6358 GB, free: 22.17 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001583/0.8933, allocations: 0.7967 MB / 0.6366 GB, free: 21.35 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004764/0.8938, allocations: 59.98 kB / 0.6366 GB, free: 21.29 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001709/0.8955, allocations: 172.5 kB / 0.6368 GB, free: 21.12 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000394/0.8959, allocations: 213.5 kB / 0.637 GB, free: 20.91 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001509/0.8961, allocations: 91.97 kB / 0.6371 GB, free: 20.82 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003376/0.8994, allocations: 2.509 MB / 0.6396 GB, free: 18.34 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.8994, allocations: 0 / 0.6396 GB, free: 18.34 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004539/0.904, allocations: 1.296 MB / 0.6408 GB, free: 17.04 MB / 430.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.0004251/0.9044, allocations: 235.1 kB / 0.641 GB, free: 16.81 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.006637/0.9111, allocations: 5.139 MB / 0.6461 GB, free: 11.62 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 9.508e-06/0.9111, allocations: 4 kB / 0.6461 GB, free: 11.62 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003096/0.9142, allocations: 2.403 MB / 0.6484 GB, free: 9.184 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01023/0.9245, allocations: 0.9292 MB / 0.6493 GB, free: 8.273 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02101/0.9455, allocations: 15.48 MB / 0.6644 GB, free: 8.59 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005238/0.9508, allocations: 4.493 MB / 0.6688 GB, free: 4.055 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004532/0.9553, allocations: 1.367 MB / 0.6702 GB, free: 2.684 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008188/0.9562, allocations: 295.4 kB / 0.6704 GB, free: 2.398 MB / 446.1 MB Notification: Performance of SimCode: time 7.22e-07/0.9562, allocations: 0 / 0.6704 GB, free: 2.398 MB / 446.1 MB Notification: Performance of Templates: time 0.2852/1.241, allocations: 54.01 MB / 0.7232 GB, free: 128.9 MB / 462.1 MB 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/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_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