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.001034/0.001034, allocations: 102.2 kB / 18.4 MB, free: 4.676 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.0009937/0.0009937, allocations: 185.5 kB / 19.34 MB, free: 3.754 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.221/1.221, allocations: 205.1 MB / 225.2 MB, free: 12.25 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.002038/0.002038, allocations: 55.91 kB / 329.3 MB, free: 3.246 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1032/0.1053, allocations: 46.62 MB / 375.9 MB, free: 4.52 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.2237/0.329, allocations: 41.75 MB / 417.6 MB, free: 1.223 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0219/0.3509, allocations: 11.08 MB / 428.7 MB, free: 8.395 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006462/0.3574, allocations: 268.7 kB / 429 MB, free: 8.336 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01916/0.3766, allocations: 8.888 MB / 437.9 MB, free: 1.52 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01107/0.3877, allocations: 3.87 MB / 441.7 MB, free: 13.63 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006033/0.3937, allocations: 2.472 MB / 444.2 MB, free: 11.16 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01504/0.4088, allocations: 13.89 MB / 458.1 MB, free: 13.22 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03225/0.4411, allocations: 25.79 MB / 483.9 MB, free: 3.266 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008554/0.4496, allocations: 7.223 MB / 491.1 MB, free: 12.02 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01082/0.4605, allocations: 8.245 MB / 499.3 MB, free: 3.75 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002792/0.4633, allocations: 2.031 MB / 0.4896 GB, free: 1.719 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004354/0.4676, allocations: 2.425 MB / 0.492 GB, free: 15.29 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003404/0.471, allocations: 4.232 MB / 0.4961 GB, free: 11.05 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008278/0.4793, allocations: 8.042 MB / 0.504 GB, free: 2.977 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0229/0.5023, allocations: 27 MB / 0.5304 GB, free: 7.895 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.5023, allocations: 0 / 0.5304 GB, free: 7.895 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.5023, allocations: 0 / 0.5304 GB, free: 7.895 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0003795/0.5027, allocations: 4 kB / 0.5304 GB, free: 7.891 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.03563/0.5383, allocations: 16.03 MB / 0.546 GB, free: 7.746 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.018e-05/0.5384, allocations: 12.03 kB / 0.546 GB, free: 7.734 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.336/0.8743, allocations: 9.183 MB / 0.555 GB, free: 135.4 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01598/0.8903, allocations: 7.709 MB / 0.5625 GB, free: 132.5 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000689/0.8911, allocations: 0.9714 MB / 0.5635 GB, free: 132.1 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003478/0.8945, allocations: 1.271 MB / 0.5647 GB, free: 131.7 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03343/0.928, allocations: 20.52 MB / 0.5847 GB, free: 123.6 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002411/0.9282, allocations: 26.66 kB / 0.5848 GB, free: 123.6 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001266/0.9295, allocations: 0.5247 MB / 0.5853 GB, free: 123.2 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005016/0.93, allocations: 0.7505 MB / 0.586 GB, free: 123.1 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02504/0.9551, allocations: 19.25 MB / 0.6048 GB, free: 106.5 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06582/1.021, allocations: 64.33 MB / 0.6676 GB, free: 40.85 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03045/1.051, allocations: 57.27 MB / 0.7236 GB, free: 8.715 MB / 0.4982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006186/1.058, allocations: 4.172 MB / 0.7276 GB, free: 4.523 MB / 0.4982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01845/1.076, allocations: 11.62 MB / 0.739 GB, free: 8.898 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.183e-05/1.076, allocations: 73.41 kB / 0.7391 GB, free: 8.816 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=361): time 4.909e-06/1.076, allocations: 3.938 kB / 0.7391 GB, free: 8.812 MB / 0.5138 GB Notification: Performance of matching and sorting (n=403): time 0.1919/1.268, allocations: 17.86 MB / 0.7565 GB, free: 166.2 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.285e-05/1.268, allocations: 92.98 kB / 0.7566 GB, free: 166.1 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007388/1.275, allocations: 5.689 MB / 0.7621 GB, free: 164 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0002555/1.276, allocations: 91.33 kB / 0.7622 GB, free: 164 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.002783/1.279, allocations: 6.05 MB / 0.7681 GB, free: 159.4 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001118/1.28, allocations: 1.419 MB / 0.7695 GB, free: 158.3 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001974/1.282, allocations: 1.548 MB / 0.771 GB, free: 157.6 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 3.302e-05/1.282, allocations: 304.1 kB / 0.7713 GB, free: 157.3 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004234/1.286, allocations: 3.143 MB / 0.7744 GB, free: 156.1 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005048/1.291, allocations: 6.897 MB / 0.7811 GB, free: 150 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008984/1.3, allocations: 10.81 MB / 0.7917 GB, free: 141.6 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.276e-05/1.3, allocations: 35.19 kB / 0.7917 GB, free: 141.6 MB / 0.5138 GB Notification: Performance of matching and sorting (n=1007) (initialization): time 0.01441/1.314, allocations: 11.03 MB / 0.8025 GB, free: 137.1 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 6.505e-05/1.315, allocations: 62.75 kB / 0.8026 GB, free: 137.1 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.28e-05/1.315, allocations: 130.2 kB / 0.8027 GB, free: 137.1 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002174/1.317, allocations: 0.9781 MB / 0.8036 GB, free: 136.8 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005433/1.322, allocations: 1.855 MB / 0.8054 GB, free: 136.6 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009384/1.332, allocations: 10.26 MB / 0.8155 GB, free: 128.4 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004876/1.337, allocations: 447.8 kB / 0.8159 GB, free: 128 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004509/1.337, allocations: 426.6 kB / 0.8163 GB, free: 127.6 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.005394/1.342, allocations: 4.513 MB / 0.8207 GB, free: 123.7 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008508/1.343, allocations: 0.5776 MB / 0.8213 GB, free: 123.1 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009233/1.353, allocations: 6.707 MB / 0.8278 GB, free: 117.5 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.446e-05/1.353, allocations: 19.92 kB / 0.8278 GB, free: 117.5 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.055e-06/1.353, allocations: 2.016 kB / 0.8278 GB, free: 117.5 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001927/1.355, allocations: 1.107 MB / 0.8289 GB, free: 116.4 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007209/1.355, allocations: 74.31 kB / 0.829 GB, free: 116.4 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00232/1.358, allocations: 230 kB / 0.8292 GB, free: 116.2 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004368/1.358, allocations: 284.5 kB / 0.8295 GB, free: 116.1 MB / 0.5138 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.009425/1.367, allocations: 6.218 MB / 0.8355 GB, free: 110.5 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.008958/1.376, allocations: 8.269 MB / 0.8436 GB, free: 102.2 MB / 0.5138 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.002504/1.379, allocations: 2.486 MB / 0.8461 GB, free: 99.7 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.004065/1.383, allocations: 3.75 MB / 0.8497 GB, free: 95.98 MB / 0.5138 GB Notification: Performance of Backend: time 2.81e-07/1.383, allocations: 0 / 0.8497 GB, free: 95.98 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.008984/1.392, allocations: 6.401 MB / 0.856 GB, free: 89.57 MB / 0.5138 GB Notification: Performance of SimCode: time 0.02601/1.418, allocations: 20.68 MB / 0.8762 GB, free: 68.88 MB / 0.5138 GB Notification: Performance of Templates: time 0.2884/1.706, allocations: 93.38 MB / 0.9674 GB, free: 155.7 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