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_CurrentSource.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_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|terminalBoxQS.plugSupply.pin.1..v.re|terminalBoxQS.plugSupply.pin.1..v.im|terminalBoxQS.plugSupply.pin.1..i.re|terminalBoxQS.plugSupply.pin.1..i.im|terminalBoxQS.plugSupply.pin.2..v.re|terminalBoxQS.plugSupply.pin.2..v.im|terminalBoxQS.plugSupply.pin.2..i.re|terminalBoxQS.plugSupply.pin.2..i.im|terminalBoxQS.plugSupply.pin.3..v.re|terminalBoxQS.plugSupply.pin.3..v.im|terminalBoxQS.plugSupply.pin.3..i.re|terminalBoxQS.plugSupply.pin.3..i.im",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|terminalBoxQS.plugSupply.pin.1..v.re|terminalBoxQS.plugSupply.pin.1..v.im|terminalBoxQS.plugSupply.pin.1..i.re|terminalBoxQS.plugSupply.pin.1..i.im|terminalBoxQS.plugSupply.pin.2..v.re|terminalBoxQS.plugSupply.pin.2..v.im|terminalBoxQS.plugSupply.pin.2..i.re|terminalBoxQS.plugSupply.pin.2..i.im|terminalBoxQS.plugSupply.pin.3..v.re|terminalBoxQS.plugSupply.pin.3..v.im|terminalBoxQS.plugSupply.pin.3..i.re|terminalBoxQS.plugSupply.pin.3..i.im",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001278/0.001279, allocations: 107.5 kB / 18.4 MB, free: 4.66 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.001323/0.001323, allocations: 183 kB / 19.33 MB, free: 3.738 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.235/1.235, allocations: 205.1 MB / 225.2 MB, free: 12.21 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.00117/0.00117, allocations: 55.92 kB / 329.3 MB, free: 3.242 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06934/0.07052, allocations: 46.63 MB / 375.9 MB, free: 4.504 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.1727/0.2433, allocations: 41.74 MB / 417.6 MB, free: 1.215 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02246/0.2658, allocations: 11.08 MB / 428.7 MB, free: 8.383 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007367/0.2732, allocations: 268.6 kB / 429 MB, free: 8.324 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01945/0.2927, allocations: 8.801 MB / 437.8 MB, free: 1.605 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01191/0.3046, allocations: 3.782 MB / 441.6 MB, free: 13.8 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00665/0.3112, allocations: 2.472 MB / 444 MB, free: 11.33 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01596/0.3272, allocations: 13.89 MB / 457.9 MB, free: 13.39 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0316/0.3588, allocations: 25.79 MB / 483.7 MB, free: 3.441 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008481/0.3673, allocations: 7.199 MB / 490.9 MB, free: 12.22 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01039/0.3778, allocations: 8.245 MB / 499.1 MB, free: 3.949 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002914/0.3807, allocations: 2.031 MB / 0.4894 GB, free: 1.918 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004256/0.3849, allocations: 2.418 MB / 0.4918 GB, free: 15.5 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003228/0.3882, allocations: 4.239 MB / 0.4959 GB, free: 11.25 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008526/0.3967, allocations: 8.034 MB / 0.5038 GB, free: 3.184 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02246/0.4192, allocations: 27 MB / 0.5301 GB, free: 8.105 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.4192, allocations: 0 / 0.5301 GB, free: 8.105 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.4192, allocations: 7.938 kB / 0.5301 GB, free: 8.098 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0004335/0.4197, allocations: 0 / 0.5301 GB, free: 8.098 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3597 * Number of variables: 3597 Notification: Performance of Generate backend data structure: time 0.0369/0.4566, allocations: 16.02 MB / 0.5458 GB, free: 7.957 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.694e-05/0.4566, allocations: 12.03 kB / 0.5458 GB, free: 7.945 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3306/0.7873, allocations: 9.187 MB / 0.5548 GB, free: 135.3 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01401/0.8013, allocations: 7.711 MB / 0.5623 GB, free: 132.5 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005902/0.8019, allocations: 0.9689 MB / 0.5633 GB, free: 132.1 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002715/0.8047, allocations: 1.274 MB / 0.5645 GB, free: 131.6 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03291/0.8376, allocations: 20.51 MB / 0.5845 GB, free: 123.6 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002759/0.8379, allocations: 27.23 kB / 0.5846 GB, free: 123.6 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001529/0.8394, allocations: 0.53 MB / 0.5851 GB, free: 123.2 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004896/0.8399, allocations: 0.7498 MB / 0.5858 GB, free: 123.1 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02443/0.8644, allocations: 19.25 MB / 0.6046 GB, free: 106.7 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06672/0.9311, allocations: 64.34 MB / 0.6674 GB, free: 41.05 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03108/0.9622, allocations: 57.27 MB / 0.7234 GB, free: 8.926 MB / 0.4982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005904/0.9681, allocations: 4.168 MB / 0.7274 GB, free: 4.738 MB / 0.4982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01861/0.9867, allocations: 11.63 MB / 0.7388 GB, free: 9.102 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.034e-05/0.9868, allocations: 73.41 kB / 0.7389 GB, free: 9.02 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=361): time 6.151e-06/0.9868, allocations: 0 / 0.7389 GB, free: 9.02 MB / 0.5138 GB Notification: Performance of matching and sorting (n=403): time 0.1954/1.182, allocations: 17.85 MB / 0.7563 GB, free: 166.1 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.341e-05/1.182, allocations: 96.33 kB / 0.7564 GB, free: 166.1 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007247/1.19, allocations: 5.687 MB / 0.7619 GB, free: 164 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0002392/1.19, allocations: 88.08 kB / 0.762 GB, free: 163.9 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.002622/1.192, allocations: 6.054 MB / 0.7679 GB, free: 159.4 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008644/1.193, allocations: 1.422 MB / 0.7693 GB, free: 158.3 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002045/1.195, allocations: 1.544 MB / 0.7708 GB, free: 157.5 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 3.731e-05/1.195, allocations: 304.2 kB / 0.7711 GB, free: 157.2 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00442/1.2, allocations: 3.141 MB / 0.7742 GB, free: 156.1 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005396/1.205, allocations: 6.896 MB / 0.7809 GB, free: 149.9 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009183/1.214, allocations: 10.82 MB / 0.7915 GB, free: 141.5 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.137e-05/1.215, allocations: 35.59 kB / 0.7915 GB, free: 141.5 MB / 0.5138 GB Notification: Performance of matching and sorting (n=1007) (initialization): time 0.01422/1.229, allocations: 11.02 MB / 0.8023 GB, free: 137 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 5.728e-05/1.229, allocations: 65.91 kB / 0.8023 GB, free: 137 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.612e-05/1.229, allocations: 128.7 kB / 0.8025 GB, free: 137 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002142/1.231, allocations: 0.9743 MB / 0.8034 GB, free: 136.8 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005327/1.236, allocations: 1.857 MB / 0.8052 GB, free: 136.6 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009261/1.246, allocations: 10.25 MB / 0.8152 GB, free: 128.5 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004669/1.25, allocations: 445.8 kB / 0.8157 GB, free: 128.2 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004555/1.251, allocations: 428.3 kB / 0.8161 GB, free: 127.8 MB / 0.5138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 583 * 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 (958): * Single equations (assignments): 953 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * 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): 3 systems {(1,1,100.0%), (1,1,100.0%), (8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005153/1.256, allocations: 4.514 MB / 0.8205 GB, free: 123.9 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000823/1.257, allocations: 0.5781 MB / 0.8211 GB, free: 123.3 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009087/1.266, allocations: 6.696 MB / 0.8276 GB, free: 117.6 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.419e-05/1.266, allocations: 19.92 kB / 0.8276 GB, free: 117.6 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.145e-06/1.266, allocations: 2.75 kB / 0.8276 GB, free: 117.6 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001619/1.268, allocations: 1.107 MB / 0.8287 GB, free: 116.6 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006522/1.268, allocations: 82.53 kB / 0.8288 GB, free: 116.5 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002224/1.27, allocations: 225.5 kB / 0.829 GB, free: 116.4 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004004/1.271, allocations: 284.6 kB / 0.8293 GB, free: 116.2 MB / 0.5138 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.009274/1.28, allocations: 6.218 MB / 0.8353 GB, free: 110.7 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.008983/1.289, allocations: 8.273 MB / 0.8434 GB, free: 102.4 MB / 0.5138 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.002457/1.292, allocations: 2.493 MB / 0.8458 GB, free: 99.89 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.004357/1.296, allocations: 3.75 MB / 0.8495 GB, free: 96.18 MB / 0.5138 GB Notification: Performance of Backend: time 2.71e-07/1.296, allocations: 0 / 0.8495 GB, free: 96.18 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.00865/1.305, allocations: 6.401 MB / 0.8558 GB, free: 89.77 MB / 0.5138 GB Notification: Performance of SimCode: time 0.02831/1.333, allocations: 20.67 MB / 0.8759 GB, free: 69.09 MB / 0.5138 GB Notification: Performance of Templates: time 0.2925/1.626, allocations: 90.28 MB / 0.9641 GB, free: 157.2 MB / 0.5138 GB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_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_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches