Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00164/0.001646, allocations: 112.1 kB / 18.45 MB, free: 4.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001992/0.001992, allocations: 214.8 kB / 19.42 MB, free: 3.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.353/1.353, allocations: 227.4 MB / 247.6 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001182/0.001182, allocations: 67.89 kB / 359.4 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2109/0.2121, allocations: 50.55 MB / 410 MB, free: 1.621 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01697/0.2291, allocations: 15.79 MB / 425.8 MB, free: 1.758 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008945/0.238, allocations: 5.345 MB / 431.1 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001507/0.2396, allocations: 103.6 kB / 431.2 MB, free: 12.29 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002288/0.2419, allocations: 1.142 MB / 432.3 MB, free: 11.14 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002523/0.2444, allocations: 1.274 MB / 433.6 MB, free: 9.863 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001644/0.2461, allocations: 0.9266 MB / 434.5 MB, free: 8.938 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003078/0.2492, allocations: 3.646 MB / 438.2 MB, free: 5.277 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003332/0.2525, allocations: 3.31 MB / 441.5 MB, free: 1.895 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001761/0.2543, allocations: 1.745 MB / 443.2 MB, free: 148 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002366/0.2566, allocations: 2.125 MB / 445.4 MB, free: 14.01 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005662/0.2572, allocations: 480 kB / 445.8 MB, free: 13.54 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001239/0.2585, allocations: 0.6949 MB / 446.5 MB, free: 12.85 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009972/0.2595, allocations: 1.153 MB / 447.7 MB, free: 11.69 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001786/0.2613, allocations: 2.046 MB / 449.7 MB, free: 9.637 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005713/0.267, allocations: 6.322 MB / 456.1 MB, free: 3.293 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.267, allocations: 0 / 456.1 MB, free: 3.293 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.267, allocations: 0 / 456.1 MB, free: 3.293 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.359e-05/0.2671, allocations: 0 / 456.1 MB, free: 3.293 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: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.008408/0.2755, allocations: 4.372 MB / 460.4 MB, free: 14.84 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.708e-05/0.2756, allocations: 8.031 kB / 460.4 MB, free: 14.84 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002781/0.2783, allocations: 0.6467 MB / 461.1 MB, free: 14.19 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003531/0.2819, allocations: 2.305 MB / 463.4 MB, free: 11.83 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001626/0.2821, allocations: 238.7 kB / 463.6 MB, free: 11.59 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004315/0.2825, allocations: 320.1 kB / 463.9 MB, free: 11.28 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006053/0.2886, allocations: 4.047 MB / 468 MB, free: 7.172 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.366e-05/0.2887, allocations: 11.89 kB / 468 MB, free: 7.16 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002718/0.2889, allocations: 124 kB / 468.1 MB, free: 7.039 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001307/0.2891, allocations: 146.2 kB / 468.3 MB, free: 6.895 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005292/0.2944, allocations: 3.386 MB / 471.6 MB, free: 3.5 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01693/0.3113, allocations: 13.39 MB / 485 MB, free: 5.629 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004115/0.3154, allocations: 4.252 MB / 489.3 MB, free: 0.8242 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001567/0.317, allocations: 1.02 MB / 490.3 MB, free: 15.81 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004205/0.3212, allocations: 2.851 MB / 493.2 MB, free: 12.83 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.069e-05/0.3213, allocations: 51.5 kB / 493.2 MB, free: 12.77 MB / 414.1 MB Notification: Performance of pre-optimization done (n=108): time 2.354e-06/0.3213, allocations: 0 / 493.2 MB, free: 12.77 MB / 414.1 MB Notification: Performance of matching and sorting (n=142): time 0.01113/0.3324, allocations: 6.04 MB / 499.2 MB, free: 6.645 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.465e-05/0.3325, allocations: 68.72 kB / 499.3 MB, free: 6.562 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002517/0.335, allocations: 1.909 MB / 0.4895 GB, free: 4.609 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 8.713e-05/0.3351, allocations: 53.7 kB / 0.4895 GB, free: 4.551 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001039/0.3361, allocations: 1.552 MB / 0.491 GB, free: 2.984 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003772/0.3365, allocations: 0.5036 MB / 0.4915 GB, free: 2.477 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005024/0.337, allocations: 331.4 kB / 0.4918 GB, free: 2.145 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.673e-05/0.3371, allocations: 309.1 kB / 0.4921 GB, free: 1.84 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001209/0.3384, allocations: 0.7652 MB / 0.4929 GB, free: 1.074 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001636/0.34, allocations: 1.375 MB / 0.4942 GB, free: 15.43 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002993/0.343, allocations: 2.316 MB / 0.4965 GB, free: 12.85 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.167e-06/0.343, allocations: 12 kB / 0.4965 GB, free: 12.84 MB / 430.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.00386/0.3469, allocations: 2.482 MB / 0.4989 GB, free: 10.34 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.478e-05/0.3469, allocations: 16.69 kB / 0.4989 GB, free: 10.32 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.397e-05/0.347, allocations: 16 kB / 0.499 GB, free: 10.31 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003396/0.3473, allocations: 130.5 kB / 0.4991 GB, free: 10.17 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00178/0.3491, allocations: 483.1 kB / 0.4995 GB, free: 9.699 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001018/0.3501, allocations: 1.41 MB / 0.5009 GB, free: 8.145 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001244/0.3514, allocations: 127.9 kB / 0.501 GB, free: 8.02 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000131/0.3515, allocations: 76 kB / 0.5011 GB, free: 7.945 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * 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 (232): * Single equations (assignments): 229 * 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 {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001377/0.3529, allocations: 0.9851 MB / 0.5021 GB, free: 6.949 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002886/0.3532, allocations: 214.6 kB / 0.5023 GB, free: 6.738 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003244/0.3565, allocations: 1.962 MB / 0.5042 GB, free: 4.758 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.392e-05/0.3565, allocations: 11.97 kB / 0.5042 GB, free: 4.746 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.499e-06/0.3565, allocations: 4 kB / 0.5042 GB, free: 4.742 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006884/0.3572, allocations: 467.6 kB / 0.5047 GB, free: 4.266 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002445/0.3575, allocations: 20 kB / 0.5047 GB, free: 4.246 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009273/0.3584, allocations: 87.83 kB / 0.5048 GB, free: 4.16 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001703/0.3586, allocations: 81.19 kB / 0.5048 GB, free: 4.082 MB / 430.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003749/0.3623, allocations: 1.956 MB / 0.5068 GB, free: 2.109 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004133/0.3665, allocations: 3.031 MB / 0.5097 GB, free: 15.05 MB / 446.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.00108/0.3676, allocations: 0.8067 MB / 0.5105 GB, free: 14.25 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001793/0.3694, allocations: 1.294 MB / 0.5118 GB, free: 12.93 MB / 446.1 MB Notification: Performance of Backend: time 3.41e-07/0.3694, allocations: 4 kB / 0.5118 GB, free: 12.93 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003044/0.3724, allocations: 1.742 MB / 0.5135 GB, free: 11.13 MB / 446.1 MB Notification: Performance of SimCode: time 0.008631/0.3811, allocations: 5.793 MB / 0.5191 GB, free: 5.285 MB / 446.1 MB Notification: Performance of Templates: time 0.2149/0.5961, allocations: 32.83 MB / 0.5512 GB, free: 117.9 MB / 462.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches