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.001192/0.001192, allocations: 113 kB / 18.45 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001299/0.001299, allocations: 212.9 kB / 19.4 MB, free: 3.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.46/1.46, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001253/0.001253, allocations: 59.91 kB / 359.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2325/0.2338, allocations: 50.53 MB / 409.9 MB, free: 1.621 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01642/0.2502, allocations: 15.81 MB / 425.8 MB, free: 1.742 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009976/0.2603, allocations: 5.341 MB / 431.1 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002636/0.2629, allocations: 99.62 kB / 431.2 MB, free: 12.29 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003172/0.2661, allocations: 1.087 MB / 432.3 MB, free: 11.19 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003996/0.2702, allocations: 1.231 MB / 433.5 MB, free: 9.953 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002267/0.2725, allocations: 0.9268 MB / 434.4 MB, free: 9.027 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004324/0.2768, allocations: 3.647 MB / 438.1 MB, free: 5.371 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003669/0.2805, allocations: 3.318 MB / 441.4 MB, free: 1.98 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002363/0.2829, allocations: 1.741 MB / 443.1 MB, free: 240 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003012/0.2859, allocations: 2.117 MB / 445.3 MB, free: 14.11 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007892/0.2867, allocations: 480 kB / 445.7 MB, free: 13.64 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001476/0.2882, allocations: 0.7106 MB / 446.4 MB, free: 12.93 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001012/0.2892, allocations: 1.141 MB / 447.6 MB, free: 11.79 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002313/0.2915, allocations: 2.05 MB / 449.6 MB, free: 9.727 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006468/0.298, allocations: 6.302 MB / 455.9 MB, free: 3.406 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.696e-06/0.298, allocations: 4 kB / 455.9 MB, free: 3.402 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.2981, allocations: 0 / 455.9 MB, free: 3.402 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001344/0.2982, allocations: 0 / 455.9 MB, free: 3.402 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.009947/0.3081, allocations: 4.273 MB / 460.2 MB, free: 15.05 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.908e-05/0.3082, allocations: 8.031 kB / 460.2 MB, free: 15.04 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002861/0.3111, allocations: 0.6289 MB / 460.8 MB, free: 14.41 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003969/0.3151, allocations: 2.281 MB / 463.1 MB, free: 12.07 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001796/0.3153, allocations: 242.6 kB / 463.4 MB, free: 11.84 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005163/0.3158, allocations: 312 kB / 463.7 MB, free: 11.53 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006878/0.3227, allocations: 4.047 MB / 467.7 MB, free: 7.422 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.317e-05/0.3228, allocations: 7.844 kB / 467.7 MB, free: 7.414 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002944/0.3231, allocations: 132 kB / 467.9 MB, free: 7.285 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000144/0.3232, allocations: 146.2 kB / 468 MB, free: 7.141 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005776/0.329, allocations: 3.397 MB / 471.4 MB, free: 3.734 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01992/0.3489, allocations: 13.33 MB / 484.7 MB, free: 5.918 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004276/0.3533, allocations: 4.267 MB / 489 MB, free: 1.098 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001567/0.3549, allocations: 1.012 MB / 490 MB, free: 92 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004332/0.3592, allocations: 2.843 MB / 492.8 MB, free: 13.12 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.671e-05/0.3593, allocations: 51.44 kB / 492.9 MB, free: 13.06 MB / 414.1 MB Notification: Performance of pre-optimization done (n=108): time 2.495e-06/0.3593, allocations: 0 / 492.9 MB, free: 13.06 MB / 414.1 MB Notification: Performance of matching and sorting (n=142): time 0.0113/0.3706, allocations: 6.007 MB / 498.9 MB, free: 6.961 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.607e-05/0.3706, allocations: 72.72 kB / 499 MB, free: 6.875 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002638/0.3733, allocations: 1.902 MB / 0.4891 GB, free: 4.93 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 9.495e-05/0.3734, allocations: 45.7 kB / 0.4892 GB, free: 4.879 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001027/0.3744, allocations: 1.516 MB / 0.4907 GB, free: 3.344 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000373/0.3748, allocations: 489 kB / 0.4911 GB, free: 2.859 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004862/0.3753, allocations: 331.2 kB / 0.4914 GB, free: 2.527 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001082/0.3754, allocations: 301.1 kB / 0.4917 GB, free: 2.23 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001181/0.3766, allocations: 0.7691 MB / 0.4925 GB, free: 1.461 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001587/0.3782, allocations: 1.383 MB / 0.4938 GB, free: 15.81 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002945/0.3812, allocations: 2.312 MB / 0.4961 GB, free: 13.23 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.229e-05/0.3812, allocations: 11.94 kB / 0.4961 GB, free: 13.22 MB / 430.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004053/0.3852, allocations: 2.474 MB / 0.4985 GB, free: 10.73 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.792e-05/0.3853, allocations: 16 kB / 0.4985 GB, free: 10.71 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.641e-05/0.3853, allocations: 20 kB / 0.4986 GB, free: 10.7 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003492/0.3857, allocations: 118.5 kB / 0.4987 GB, free: 10.57 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001751/0.3874, allocations: 491.2 kB / 0.4991 GB, free: 10.09 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001142/0.3886, allocations: 1.41 MB / 0.5005 GB, free: 8.535 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001536/0.3902, allocations: 115.8 kB / 0.5006 GB, free: 8.422 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001383/0.3903, allocations: 80 kB / 0.5007 GB, free: 8.344 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.001637/0.3919, allocations: 0.9852 MB / 0.5017 GB, free: 7.348 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00041/0.3924, allocations: 209.4 kB / 0.5019 GB, free: 7.141 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003268/0.3956, allocations: 1.962 MB / 0.5038 GB, free: 5.16 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.3e-05/0.3957, allocations: 16 kB / 0.5038 GB, free: 5.145 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.3957, allocations: 0 / 0.5038 GB, free: 5.145 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.54e-05/0.3957, allocations: 11.95 kB / 0.5038 GB, free: 5.133 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0075/0.4032, allocations: 4.995 MB / 0.5087 GB, free: 28 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.562e-06/0.4032, allocations: 4.25 kB / 0.5087 GB, free: 24 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001384/0.4046, allocations: 315.5 kB / 0.509 GB, free: 15.71 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002878/0.4049, allocations: 98.45 kB / 0.5091 GB, free: 15.61 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.022e-05/0.405, allocations: 27.98 kB / 0.5091 GB, free: 15.58 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009398/0.406, allocations: 1.375 MB / 0.5104 GB, free: 14.07 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.406, allocations: 0 / 0.5104 GB, free: 14.07 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004448/0.4104, allocations: 3.082 MB / 0.5135 GB, free: 10.93 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008675/0.4113, allocations: 458.4 kB / 0.5139 GB, free: 10.46 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002777/0.4116, allocations: 24 kB / 0.5139 GB, free: 10.44 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009805/0.4126, allocations: 83.97 kB / 0.514 GB, free: 10.36 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001701/0.4128, allocations: 97.06 kB / 0.5141 GB, free: 10.26 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.835e-05/0.4129, allocations: 39.98 kB / 0.5141 GB, free: 10.22 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001911/0.4148, allocations: 1.294 MB / 0.5154 GB, free: 8.906 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4148, allocations: 0 / 0.5154 GB, free: 8.906 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001693/0.4165, allocations: 0.5352 MB / 0.5159 GB, free: 8.371 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * 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 (141): * Single equations (assignments): 138 * 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 Backend phase and start with SimCode phase: time 0.0003421/0.4169, allocations: 174.9 kB / 0.5161 GB, free: 8.188 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003368/0.4202, allocations: 2.22 MB / 0.5182 GB, free: 5.914 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.4203, allocations: 0 / 0.5182 GB, free: 5.914 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001556/0.4218, allocations: 1.175 MB / 0.5194 GB, free: 4.688 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002486/0.4243, allocations: 0.5198 MB / 0.5199 GB, free: 4.176 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009203/0.4335, allocations: 5.622 MB / 0.5254 GB, free: 14.49 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001899/0.4355, allocations: 2.221 MB / 0.5276 GB, free: 12.23 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007322/0.4362, allocations: 167.4 kB / 0.5277 GB, free: 12.07 MB / 462.1 MB Notification: Performance of SimCode: time 1.974e-06/0.4362, allocations: 0 / 0.5277 GB, free: 12.07 MB / 462.1 MB Notification: Performance of Templates: time 0.2515/0.6877, allocations: 86.62 MB / 0.6123 GB, free: 60.7 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