Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001363/0.001363, allocations: 107.9 kB / 18.4 MB, free: 4.656 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.001652/0.001652, allocations: 190.5 kB / 19.33 MB, free: 3.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.592/1.592, allocations: 205.1 MB / 225.2 MB, free: 12.2 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002009/0.002009, allocations: 47.92 kB / 329.2 MB, free: 3.281 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1434/0.1454, allocations: 46.62 MB / 375.8 MB, free: 4.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.2933/0.4387, allocations: 30.23 MB / 406.1 MB, free: 9.684 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02261/0.4614, allocations: 8.64 MB / 414.7 MB, free: 3.426 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008803/0.4702, allocations: 177.5 kB / 414.9 MB, free: 3.383 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01521/0.4855, allocations: 4.897 MB / 419.8 MB, free: 24 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01255/0.4981, allocations: 2.953 MB / 422.7 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006012/0.5041, allocations: 1.608 MB / 424.3 MB, free: 12.35 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0157/0.5198, allocations: 8.717 MB / 433.1 MB, free: 6.422 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02794/0.5478, allocations: 12.83 MB / 445.9 MB, free: 9.492 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01146/0.5593, allocations: 4.238 MB / 450.1 MB, free: 5.242 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01216/0.5716, allocations: 4.737 MB / 454.9 MB, free: 500 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004875/0.5765, allocations: 1.164 MB / 456 MB, free: 15.32 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007875/0.5844, allocations: 1.515 MB / 457.5 MB, free: 13.81 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005564/0.59, allocations: 2.412 MB / 460 MB, free: 11.39 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0135/0.6035, allocations: 4.665 MB / 464.6 MB, free: 6.707 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02345/0.6271, allocations: 15.73 MB / 480.4 MB, free: 6.93 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.554e-06/0.6271, allocations: 0 / 480.4 MB, free: 6.93 MB / 398.1 MB Notification: Performance of FrontEnd: time 4.629e-06/0.6271, allocations: 0 / 480.4 MB, free: 6.93 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0004763/0.6276, allocations: 3.938 kB / 480.4 MB, free: 6.926 MB / 398.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.03306/0.6607, allocations: 9.747 MB / 490.1 MB, free: 13.08 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.035e-05/0.6607, allocations: 8.031 kB / 490.1 MB, free: 13.07 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03055/0.6913, allocations: 5.282 MB / 495.4 MB, free: 7.777 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.012/0.7033, allocations: 4.695 MB / 0.4884 GB, free: 3 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006535/0.704, allocations: 0.5299 MB / 0.4889 GB, free: 2.469 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003396/0.7075, allocations: 0.7068 MB / 0.4896 GB, free: 1.762 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03384/0.7413, allocations: 11.31 MB / 0.5006 GB, free: 6.367 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004832/0.7419, allocations: 15.91 kB / 0.5006 GB, free: 6.352 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003357/0.7452, allocations: 300 kB / 0.5009 GB, free: 6.059 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000643/0.7459, allocations: 446.9 kB / 0.5014 GB, free: 5.621 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02614/0.7721, allocations: 10.82 MB / 0.5119 GB, free: 10.79 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07259/0.8447, allocations: 37.58 MB / 0.5486 GB, free: 4.082 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2318/1.077, allocations: 28.09 MB / 0.576 GB, free: 115.3 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005021/1.082, allocations: 2.666 MB / 0.5787 GB, free: 115.3 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01432/1.096, allocations: 7.903 MB / 0.5864 GB, free: 111.7 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.39e-05/1.096, allocations: 59.33 kB / 0.5864 GB, free: 111.7 MB / 478.1 MB Notification: Performance of pre-optimization done (n=217): time 4.909e-06/1.096, allocations: 0 / 0.5864 GB, free: 111.7 MB / 478.1 MB Notification: Performance of matching and sorting (n=233): time 0.02199/1.118, allocations: 10.36 MB / 0.5965 GB, free: 107.2 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001803/1.12, allocations: 2.011 MB / 0.5985 GB, free: 105.4 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005806/1.126, allocations: 3.823 MB / 0.6022 GB, free: 103.9 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003953/1.126, allocations: 66.61 kB / 0.6023 GB, free: 103.9 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00196/1.128, allocations: 3.548 MB / 0.6058 GB, free: 101.2 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000762/1.129, allocations: 0.8281 MB / 0.6066 GB, free: 100.5 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001237/1.13, allocations: 0.9537 MB / 0.6075 GB, free: 100.1 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 6.143e-05/1.13, allocations: 305.1 kB / 0.6078 GB, free: 99.77 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00232/1.132, allocations: 1.893 MB / 0.6096 GB, free: 99.04 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003323/1.136, allocations: 4.391 MB / 0.6139 GB, free: 94.96 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005738/1.142, allocations: 6.791 MB / 0.6206 GB, free: 89.5 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.959e-05/1.142, allocations: 27.22 kB / 0.6206 GB, free: 89.5 MB / 478.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.00994/1.152, allocations: 6.978 MB / 0.6274 GB, free: 86.32 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.194e-05/1.152, allocations: 44 kB / 0.6275 GB, free: 86.28 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001156/1.152, allocations: 84 kB / 0.6275 GB, free: 86.2 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001696/1.154, allocations: 0.7407 MB / 0.6283 GB, free: 85.62 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003046/1.157, allocations: 1.115 MB / 0.6293 GB, free: 84.65 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005795/1.162, allocations: 5.637 MB / 0.6348 GB, free: 78.95 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004034/1.166, allocations: 307.1 kB / 0.6351 GB, free: 78.65 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005364/1.167, allocations: 279.3 kB / 0.6354 GB, free: 78.38 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.004258/1.171, allocations: 2.522 MB / 0.6379 GB, free: 75.84 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001009/1.172, allocations: 387.2 kB / 0.6382 GB, free: 75.46 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006153/1.178, allocations: 4.272 MB / 0.6424 GB, free: 71.16 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.424e-05/1.178, allocations: 28 kB / 0.6424 GB, free: 71.14 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.628e-06/1.178, allocations: 8 kB / 0.6424 GB, free: 71.13 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.031e-05/1.178, allocations: 11.95 kB / 0.6425 GB, free: 71.12 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0189/1.197, allocations: 14.28 MB / 0.6564 GB, free: 56.65 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.545e-05/1.197, allocations: 12 kB / 0.6564 GB, free: 56.64 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001663/1.199, allocations: 476.1 kB / 0.6569 GB, free: 56.18 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001736/1.201, allocations: 0.6892 MB / 0.6575 GB, free: 55.48 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001512/1.201, allocations: 67.98 kB / 0.6576 GB, free: 55.41 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007134/1.208, allocations: 7.507 MB / 0.6649 GB, free: 47.62 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001293/1.21, allocations: 1.942 MB / 0.6668 GB, free: 45.53 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008451/1.218, allocations: 6.744 MB / 0.6734 GB, free: 38.51 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002092/1.22, allocations: 0.8006 MB / 0.6742 GB, free: 37.69 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005681/1.221, allocations: 56 kB / 0.6743 GB, free: 37.63 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001697/1.222, allocations: 171.6 kB / 0.6744 GB, free: 37.47 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004122/1.223, allocations: 225.4 kB / 0.6746 GB, free: 37.25 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001469/1.223, allocations: 87.98 kB / 0.6747 GB, free: 37.16 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003218/1.226, allocations: 2.509 MB / 0.6772 GB, free: 34.67 MB / 478.1 MB Notification: Performance of sort global known variables: time 5.01e-07/1.226, allocations: 0 / 0.6772 GB, free: 34.67 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004782/1.231, allocations: 1.292 MB / 0.6784 GB, free: 33.38 MB / 478.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.0004773/1.231, allocations: 236.8 kB / 0.6787 GB, free: 33.15 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006891/1.238, allocations: 5.165 MB / 0.6837 GB, free: 27.93 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.178e-05/1.238, allocations: 4 kB / 0.6837 GB, free: 27.93 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003095/1.241, allocations: 2.412 MB / 0.6861 GB, free: 25.48 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004522/1.246, allocations: 0.9892 MB / 0.687 GB, free: 24.5 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01835/1.264, allocations: 12.21 MB / 0.6989 GB, free: 12.1 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003551/1.268, allocations: 4.382 MB / 0.7032 GB, free: 7.68 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001349/1.269, allocations: 335.4 kB / 0.7035 GB, free: 7.352 MB / 478.1 MB Notification: Performance of SimCode: time 1.613e-06/1.269, allocations: 0 / 0.7035 GB, free: 7.352 MB / 478.1 MB Notification: Performance of Templates: time 0.3843/1.654, allocations: 201.3 MB / 0.9001 GB, free: 22.69 MB / 0.4981 GB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.sim & ./Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_OpenCircuit/SMPM_OpenCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches