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.00162/0.00162, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.00191/0.00191, allocations: 191.4 kB / 18.51 MB, free: 4.641 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.506/1.506, allocations: 222.9 MB / 242.2 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001053/0.001053, allocations: 56.56 kB / 301.3 MB, free: 5.773 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1054/0.1065, allocations: 49.44 MB / 350.8 MB, free: 4.328 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.2268/0.3333, allocations: 30.34 MB / 381.1 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02073/0.3541, allocations: 8.646 MB / 389.7 MB, free: 6.422 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007783/0.3619, allocations: 187.4 kB / 389.9 MB, free: 6.387 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01255/0.3745, allocations: 4.902 MB / 394.8 MB, free: 3.52 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01073/0.3852, allocations: 2.988 MB / 397.8 MB, free: 1.617 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005104/0.3904, allocations: 1.598 MB / 399.4 MB, free: 364 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01442/0.4048, allocations: 8.653 MB / 408.1 MB, free: 11.21 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0228/0.4276, allocations: 12.89 MB / 420.9 MB, free: 15.78 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008209/0.4359, allocations: 4.211 MB / 425.2 MB, free: 11.56 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008311/0.4442, allocations: 4.753 MB / 429.9 MB, free: 6.789 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003313/0.4476, allocations: 1.164 MB / 431.1 MB, free: 5.625 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00607/0.4537, allocations: 1.531 MB / 432.6 MB, free: 4.094 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003986/0.4577, allocations: 2.416 MB / 435 MB, free: 1.672 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01104/0.4687, allocations: 4.669 MB / 439.7 MB, free: 12.98 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02332/0.4921, allocations: 15.71 MB / 455.4 MB, free: 13.23 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.582e-06/0.4921, allocations: 0 / 455.4 MB, free: 13.23 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.4922, allocations: 0 / 455.4 MB, free: 13.23 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004626/0.4926, allocations: 0 / 455.4 MB, free: 13.23 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.03151/0.5242, allocations: 9.779 MB / 465.2 MB, free: 3.352 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.389e-05/0.5242, allocations: 8.031 kB / 465.2 MB, free: 3.344 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03043/0.5546, allocations: 5.255 MB / 470.4 MB, free: 14.07 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01184/0.5665, allocations: 4.984 MB / 475.4 MB, free: 9.008 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007406/0.5673, allocations: 0.5338 MB / 476 MB, free: 8.473 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003403/0.5707, allocations: 0.7068 MB / 476.7 MB, free: 7.766 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02792/0.5987, allocations: 11.33 MB / 488 MB, free: 12.36 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003853/0.5991, allocations: 15.84 kB / 488 MB, free: 12.34 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00228/0.6014, allocations: 300 kB / 488.3 MB, free: 12.05 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005059/0.6019, allocations: 443 kB / 488.7 MB, free: 11.62 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02356/0.6255, allocations: 10.82 MB / 499.6 MB, free: 0.7852 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2704/0.8959, allocations: 37.99 MB / 0.525 GB, free: 109 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02011/0.9161, allocations: 28.1 MB / 0.5524 GB, free: 83.5 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005621/0.9217, allocations: 2.645 MB / 0.555 GB, free: 83.46 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01465/0.9364, allocations: 7.936 MB / 0.5627 GB, free: 81.59 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.314e-05/0.9366, allocations: 56.47 kB / 0.5628 GB, free: 81.54 MB / 430.1 MB Notification: Performance of pre-optimization done (n=217): time 5.24e-06/0.9366, allocations: 0 / 0.5628 GB, free: 81.54 MB / 430.1 MB Notification: Performance of matching and sorting (n=233): time 0.02202/0.9586, allocations: 10.36 MB / 0.5729 GB, free: 76.85 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001929/0.9606, allocations: 2.001 MB / 0.5748 GB, free: 75.02 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0069/0.9675, allocations: 3.824 MB / 0.5786 GB, free: 73.59 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004984/0.968, allocations: 64.83 kB / 0.5786 GB, free: 73.53 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001856/0.9699, allocations: 3.548 MB / 0.5821 GB, free: 70.83 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008603/0.9708, allocations: 0.835 MB / 0.5829 GB, free: 70.2 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001216/0.972, allocations: 0.9505 MB / 0.5839 GB, free: 69.71 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.837e-05/0.972, allocations: 309.1 kB / 0.5841 GB, free: 69.41 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00234/0.9744, allocations: 1.891 MB / 0.586 GB, free: 68.69 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003509/0.9779, allocations: 4.398 MB / 0.5903 GB, free: 64.21 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006902/0.9848, allocations: 6.782 MB / 0.5969 GB, free: 58.3 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001477/0.985, allocations: 23.12 kB / 0.5969 GB, free: 58.3 MB / 430.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.01367/0.9987, allocations: 6.987 MB / 0.6038 GB, free: 54.04 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.144e-05/0.9988, allocations: 46.19 kB / 0.6038 GB, free: 54 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001365/0.999, allocations: 84 kB / 0.6039 GB, free: 53.91 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002044/1.001, allocations: 0.7402 MB / 0.6046 GB, free: 53.16 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003707/1.005, allocations: 1.125 MB / 0.6057 GB, free: 52.04 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006482/1.011, allocations: 5.644 MB / 0.6112 GB, free: 46.26 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004899/1.016, allocations: 315 kB / 0.6115 GB, free: 45.95 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001025/1.017, allocations: 272 kB / 0.6118 GB, free: 45.68 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.00521/1.022, allocations: 2.522 MB / 0.6142 GB, free: 43.15 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001202/1.024, allocations: 387 kB / 0.6146 GB, free: 42.77 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006938/1.031, allocations: 4.275 MB / 0.6188 GB, free: 38.48 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.767e-05/1.031, allocations: 31.88 kB / 0.6188 GB, free: 38.45 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.112e-05/1.031, allocations: 8 kB / 0.6188 GB, free: 38.44 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.129e-05/1.031, allocations: 11.95 kB / 0.6188 GB, free: 38.43 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02223/1.053, allocations: 14.28 MB / 0.6328 GB, free: 23.95 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.502e-05/1.053, allocations: 12 kB / 0.6328 GB, free: 23.94 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001693/1.055, allocations: 479.3 kB / 0.6332 GB, free: 23.47 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001837/1.057, allocations: 0.6933 MB / 0.6339 GB, free: 22.77 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001834/1.057, allocations: 71.97 kB / 0.634 GB, free: 22.7 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007312/1.064, allocations: 7.505 MB / 0.6413 GB, free: 14.92 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001312/1.065, allocations: 1.954 MB / 0.6432 GB, free: 12.82 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008621/1.074, allocations: 6.733 MB / 0.6498 GB, free: 5.801 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002131/1.076, allocations: 0.7967 MB / 0.6506 GB, free: 4.98 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001011/1.077, allocations: 59.98 kB / 0.6506 GB, free: 4.922 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002326/1.08, allocations: 167.9 kB / 0.6508 GB, free: 4.758 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004414/1.08, allocations: 213.5 kB / 0.651 GB, free: 4.551 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001789/1.08, allocations: 88.92 kB / 0.6511 GB, free: 4.465 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003572/1.084, allocations: 2.513 MB / 0.6535 GB, free: 1.973 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.7e-07/1.084, allocations: 4 kB / 0.6535 GB, free: 1.969 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004635/1.088, allocations: 1.292 MB / 0.6548 GB, free: 0.6797 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.0004629/1.089, allocations: 233.3 kB / 0.655 GB, free: 456 kB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.01348/1.102, allocations: 7.007 MB / 0.6619 GB, free: 9.422 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.817e-05/1.102, allocations: 0 / 0.6619 GB, free: 9.422 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004179/1.107, allocations: 2.408 MB / 0.6642 GB, free: 6.973 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005983/1.113, allocations: 0.9879 MB / 0.6652 GB, free: 6.004 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02377/1.136, allocations: 12.37 MB / 0.6773 GB, free: 9.453 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004824/1.141, allocations: 4.378 MB / 0.6815 GB, free: 5.031 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001281/1.143, allocations: 331.4 kB / 0.6819 GB, free: 4.707 MB / 462.1 MB Notification: Performance of SimCode: time 6.82e-07/1.143, allocations: 4 kB / 0.6819 GB, free: 4.703 MB / 462.1 MB Notification: Performance of Templates: time 0.5556/1.698, allocations: 200.6 MB / 0.8777 GB, free: 152.4 MB / 478.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/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_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