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.001722/0.001722, allocations: 107.5 kB / 17.16 MB, free: 6.082 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.001983/0.001983, allocations: 194.9 kB / 18.08 MB, free: 5.285 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.469/1.469, allocations: 222.9 MB / 241.7 MB, free: 15.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001282/0.001282, allocations: 46.39 kB / 300.6 MB, free: 6.207 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1283/0.1296, allocations: 49.45 MB / 350.1 MB, free: 4.746 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.2661/0.3958, allocations: 29.83 MB / 379.9 MB, free: 9.961 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01929/0.4151, allocations: 8.575 MB / 388.5 MB, free: 7.141 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008995/0.4242, allocations: 180.2 kB / 388.7 MB, free: 7.105 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01398/0.4383, allocations: 4.573 MB / 393.2 MB, free: 4.488 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01284/0.4511, allocations: 2.733 MB / 396 MB, free: 2.785 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005892/0.457, allocations: 1.486 MB / 397.5 MB, free: 1.793 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0162/0.4732, allocations: 8.985 MB / 406.4 MB, free: 12.72 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0229/0.4962, allocations: 10.31 MB / 416.7 MB, free: 3.781 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008998/0.5053, allocations: 3.593 MB / 420.3 MB, free: 180 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00951/0.5148, allocations: 4.487 MB / 424.8 MB, free: 11.66 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003873/0.5187, allocations: 0.7305 MB / 425.6 MB, free: 10.93 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006644/0.5254, allocations: 1.089 MB / 426.6 MB, free: 9.848 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004764/0.5302, allocations: 1.97 MB / 428.6 MB, free: 7.871 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01143/0.5417, allocations: 4.208 MB / 432.8 MB, free: 3.645 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0197/0.5614, allocations: 13.59 MB / 446.4 MB, free: 6.027 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.737e-06/0.5615, allocations: 0 / 446.4 MB, free: 6.027 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.776e-06/0.5615, allocations: 0 / 446.4 MB, free: 6.027 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0007111/0.5622, allocations: 0 / 446.4 MB, free: 6.027 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.04183/0.6041, allocations: 9.771 MB / 456.2 MB, free: 12.16 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.687e-05/0.6041, allocations: 8.031 kB / 456.2 MB, free: 12.15 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03113/0.6353, allocations: 5.251 MB / 461.4 MB, free: 6.887 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01359/0.6489, allocations: 4.957 MB / 466.4 MB, free: 1.848 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007466/0.6497, allocations: 0.5339 MB / 466.9 MB, free: 1.312 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003734/0.6535, allocations: 0.7146 MB / 467.6 MB, free: 0.5977 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03769/0.6912, allocations: 11.31 MB / 479 MB, free: 5.203 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004834/0.6917, allocations: 19.84 kB / 479 MB, free: 5.184 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003454/0.6952, allocations: 300 kB / 479.3 MB, free: 4.891 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006142/0.6958, allocations: 447 kB / 479.7 MB, free: 4.453 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02841/0.7242, allocations: 10.82 MB / 490.5 MB, free: 9.617 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07848/0.8028, allocations: 38 MB / 0.5161 GB, free: 2.496 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2372/1.04, allocations: 28.1 MB / 0.5436 GB, free: 124.8 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005243/1.045, allocations: 2.648 MB / 0.5462 GB, free: 124.8 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0141/1.059, allocations: 7.911 MB / 0.5539 GB, free: 121.4 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.994e-05/1.06, allocations: 61.09 kB / 0.554 GB, free: 121.4 MB / 446.1 MB Notification: Performance of pre-optimization done (n=217): time 5.33e-06/1.06, allocations: 0 / 0.554 GB, free: 121.4 MB / 446.1 MB Notification: Performance of matching and sorting (n=233): time 0.02025/1.08, allocations: 10.36 MB / 0.5641 GB, free: 116.9 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001692/1.082, allocations: 1.921 MB / 0.5659 GB, free: 115.2 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005404/1.087, allocations: 3.825 MB / 0.5697 GB, free: 113.7 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004115/1.087, allocations: 61.64 kB / 0.5697 GB, free: 113.7 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001774/1.089, allocations: 3.552 MB / 0.5732 GB, free: 111 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008107/1.09, allocations: 0.8279 MB / 0.574 GB, free: 110.3 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001122/1.091, allocations: 0.9554 MB / 0.5749 GB, free: 109.9 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.265e-05/1.091, allocations: 306.9 kB / 0.5752 GB, free: 109.6 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002334/1.093, allocations: 1.885 MB / 0.5771 GB, free: 108.8 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003175/1.097, allocations: 4.406 MB / 0.5814 GB, free: 104.7 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006378/1.103, allocations: 6.786 MB / 0.588 GB, free: 99.28 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.203e-05/1.103, allocations: 27.25 kB / 0.588 GB, free: 99.28 MB / 446.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.01045/1.114, allocations: 6.981 MB / 0.5949 GB, free: 96.15 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.28e-05/1.114, allocations: 40 kB / 0.5949 GB, free: 96.11 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001294/1.114, allocations: 88 kB / 0.595 GB, free: 96.03 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002013/1.116, allocations: 0.7422 MB / 0.5957 GB, free: 95.44 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003529/1.119, allocations: 1.118 MB / 0.5968 GB, free: 94.48 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006084/1.126, allocations: 5.239 MB / 0.6019 GB, free: 89.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004359/1.13, allocations: 303.1 kB / 0.6022 GB, free: 88.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008759/1.131, allocations: 272 kB / 0.6025 GB, free: 88.63 MB / 446.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.005822/1.137, allocations: 2.529 MB / 0.6049 GB, free: 86.09 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001627/1.138, allocations: 383.3 kB / 0.6053 GB, free: 85.71 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00796/1.146, allocations: 4.271 MB / 0.6095 GB, free: 81.43 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.678e-05/1.146, allocations: 28 kB / 0.6095 GB, free: 81.4 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.131e-05/1.146, allocations: 8 kB / 0.6095 GB, free: 81.39 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.883e-05/1.146, allocations: 15.89 kB / 0.6095 GB, free: 81.38 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02519/1.172, allocations: 14.29 MB / 0.6235 GB, free: 66.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.141e-05/1.172, allocations: 12 kB / 0.6235 GB, free: 66.89 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001881/1.174, allocations: 487.3 kB / 0.6239 GB, free: 66.41 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002045/1.176, allocations: 0.6893 MB / 0.6246 GB, free: 65.71 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003487/1.176, allocations: 71.55 kB / 0.6247 GB, free: 65.65 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007492/1.183, allocations: 6.953 MB / 0.6315 GB, free: 58.43 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001422/1.185, allocations: 1.87 MB / 0.6333 GB, free: 56.41 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01014/1.195, allocations: 6.748 MB / 0.6399 GB, free: 49.39 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002318/1.197, allocations: 0.7851 MB / 0.6407 GB, free: 48.58 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001241/1.199, allocations: 63.98 kB / 0.6407 GB, free: 48.52 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002666/1.201, allocations: 159.8 kB / 0.6409 GB, free: 48.36 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005788/1.202, allocations: 225.5 kB / 0.6411 GB, free: 48.14 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003032/1.202, allocations: 91.98 kB / 0.6412 GB, free: 48.05 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005153/1.207, allocations: 2.509 MB / 0.6436 GB, free: 45.56 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.51e-07/1.207, allocations: 4 kB / 0.6436 GB, free: 45.56 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006673/1.214, allocations: 1.292 MB / 0.6449 GB, free: 44.27 MB / 446.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.0008038/1.215, allocations: 237.2 kB / 0.6451 GB, free: 44.04 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008015/1.223, allocations: 5.125 MB / 0.6501 GB, free: 38.86 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.52e-05/1.223, allocations: 4 kB / 0.6501 GB, free: 38.86 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003771/1.227, allocations: 2.408 MB / 0.6525 GB, free: 36.42 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006845/1.234, allocations: 0.9365 MB / 0.6534 GB, free: 35.5 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02616/1.26, allocations: 15.33 MB / 0.6684 GB, free: 19.98 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00688/1.267, allocations: 4.378 MB / 0.6726 GB, free: 15.57 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001713/1.269, allocations: 331.4 kB / 0.6729 GB, free: 15.25 MB / 446.1 MB Notification: Performance of SimCode: time 1.132e-06/1.269, allocations: 0 / 0.6729 GB, free: 15.25 MB / 446.1 MB Notification: Performance of Templates: time 0.3732/1.642, allocations: 200.6 MB / 0.8688 GB, free: 13.78 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