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.001035/0.001035, allocations: 114.7 kB / 18.4 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.001131/0.001131, allocations: 200.6 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.334/1.334, allocations: 227.4 MB / 247.5 MB, free: 10.37 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001156/0.001156, allocations: 53.61 kB / 308.4 MB, free: 15.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.1042, allocations: 50.53 MB / 358.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.2455/0.3497, allocations: 15.8 MB / 374.7 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01349/0.3633, allocations: 5.353 MB / 380.1 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003626/0.3669, allocations: 99.81 kB / 380.2 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003368/0.3703, allocations: 1.081 MB / 381.2 MB, free: 9.598 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004651/0.375, allocations: 1.23 MB / 382.5 MB, free: 9.02 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002536/0.3776, allocations: 0.9248 MB / 383.4 MB, free: 8.559 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005339/0.3829, allocations: 3.657 MB / 387 MB, free: 6.727 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004519/0.3875, allocations: 3.322 MB / 390.4 MB, free: 5.336 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003797/0.3913, allocations: 1.724 MB / 392.1 MB, free: 4.512 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004075/0.3954, allocations: 2.126 MB / 394.2 MB, free: 3.539 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00129/0.3967, allocations: 480.5 kB / 394.7 MB, free: 3.539 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002387/0.399, allocations: 0.7027 MB / 395.4 MB, free: 3.461 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001048/0.4001, allocations: 1.144 MB / 396.5 MB, free: 2.773 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002848/0.403, allocations: 2.043 MB / 398.6 MB, free: 1.41 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007389/0.4104, allocations: 6.297 MB / 404.9 MB, free: 12.83 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.7e-06/0.4104, allocations: 0 / 404.9 MB, free: 12.83 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.415e-06/0.4104, allocations: 0 / 404.9 MB, free: 12.83 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001666/0.4106, allocations: 0 / 404.9 MB, free: 12.83 MB / 318.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.01116/0.4218, allocations: 4.277 MB / 409.1 MB, free: 9.129 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.113e-05/0.4218, allocations: 8.031 kB / 409.2 MB, free: 9.121 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002941/0.4248, allocations: 0.6242 MB / 409.8 MB, free: 8.496 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004645/0.4294, allocations: 2.289 MB / 412.1 MB, free: 6.184 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000179/0.4296, allocations: 236.6 kB / 412.3 MB, free: 5.953 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005035/0.4301, allocations: 318.8 kB / 412.6 MB, free: 5.645 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006994/0.4371, allocations: 4.042 MB / 416.7 MB, free: 1.543 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.056e-05/0.4372, allocations: 11.92 kB / 416.7 MB, free: 1.531 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002712/0.4375, allocations: 134.4 kB / 416.8 MB, free: 1.402 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001402/0.4376, allocations: 146.2 kB / 416.9 MB, free: 1.258 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005541/0.4432, allocations: 3.39 MB / 420.3 MB, free: 13.86 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0185/0.4617, allocations: 13.34 MB / 433.7 MB, free: 136 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004328/0.4661, allocations: 4.281 MB / 437.9 MB, free: 11.3 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001539/0.4676, allocations: 1.039 MB / 439 MB, free: 10.27 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004701/0.4724, allocations: 2.851 MB / 441.8 MB, free: 7.32 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.226e-05/0.4724, allocations: 51.5 kB / 441.9 MB, free: 7.262 MB / 350.1 MB Notification: Performance of pre-optimization done (n=108): time 2.845e-06/0.4724, allocations: 0 / 441.9 MB, free: 7.262 MB / 350.1 MB Notification: Performance of matching and sorting (n=142): time 0.01108/0.4835, allocations: 5.976 MB / 447.9 MB, free: 1.207 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.44e-05/0.4836, allocations: 68.7 kB / 447.9 MB, free: 1.129 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00283/0.4864, allocations: 1.917 MB / 449.8 MB, free: 15.17 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.916e-05/0.4865, allocations: 49.7 kB / 449.9 MB, free: 15.11 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001159/0.4877, allocations: 1.506 MB / 451.4 MB, free: 13.59 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004149/0.4881, allocations: 492.8 kB / 451.9 MB, free: 13.12 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005225/0.4886, allocations: 335.2 kB / 452.2 MB, free: 12.79 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.523e-05/0.4887, allocations: 301.1 kB / 452.5 MB, free: 12.49 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001113/0.4898, allocations: 0.7691 MB / 453.3 MB, free: 11.72 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001998/0.4918, allocations: 1.379 MB / 454.7 MB, free: 10.07 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002937/0.4948, allocations: 2.316 MB / 457 MB, free: 7.484 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.416e-06/0.4948, allocations: 8 kB / 457 MB, free: 7.477 MB / 366.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.003856/0.4987, allocations: 2.478 MB / 459.5 MB, free: 4.98 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.757e-05/0.4987, allocations: 12 kB / 459.5 MB, free: 4.969 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.732e-05/0.4988, allocations: 24.03 kB / 459.5 MB, free: 4.945 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003612/0.4991, allocations: 114.5 kB / 459.6 MB, free: 4.824 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001665/0.5008, allocations: 491.1 kB / 460.1 MB, free: 4.344 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001022/0.5018, allocations: 1.402 MB / 461.5 MB, free: 2.797 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001454/0.5033, allocations: 119.8 kB / 461.6 MB, free: 2.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001313/0.5034, allocations: 79.94 kB / 461.7 MB, free: 2.602 MB / 366.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.001717/0.5052, allocations: 0.9889 MB / 462.7 MB, free: 1.602 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003118/0.5055, allocations: 205.5 kB / 462.9 MB, free: 1.398 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00312/0.5086, allocations: 1.966 MB / 464.8 MB, free: 15.41 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.21e-05/0.5086, allocations: 16 kB / 464.8 MB, free: 15.39 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-06/0.5087, allocations: 0 / 464.8 MB, free: 15.39 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.378e-05/0.5087, allocations: 7.969 kB / 464.9 MB, free: 15.39 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007388/0.5161, allocations: 4.999 MB / 469.9 MB, free: 10.31 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.011e-06/0.5161, allocations: 0 / 469.9 MB, free: 10.31 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001285/0.5174, allocations: 311.8 kB / 470.2 MB, free: 10.01 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002858/0.5177, allocations: 94.52 kB / 470.2 MB, free: 9.906 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.066e-05/0.5178, allocations: 28 kB / 470.3 MB, free: 9.879 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009331/0.5187, allocations: 1.378 MB / 471.7 MB, free: 8.363 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.104e-05/0.5187, allocations: 12.03 kB / 471.7 MB, free: 8.352 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004274/0.523, allocations: 3.086 MB / 474.8 MB, free: 5.211 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001053/0.5241, allocations: 450.5 kB / 475.2 MB, free: 4.75 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000223/0.5243, allocations: 28 kB / 475.2 MB, free: 4.723 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009219/0.5252, allocations: 79.91 kB / 475.3 MB, free: 4.645 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001635/0.5254, allocations: 97.12 kB / 475.4 MB, free: 4.547 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.506e-05/0.5255, allocations: 39.94 kB / 475.4 MB, free: 4.508 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001906/0.5274, allocations: 1.297 MB / 476.7 MB, free: 3.188 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5274, allocations: 0 / 476.7 MB, free: 3.188 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001765/0.5292, allocations: 0.5351 MB / 477.3 MB, free: 2.652 MB / 382.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.0003253/0.5295, allocations: 165.3 kB / 477.4 MB, free: 2.484 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003155/0.5327, allocations: 2.225 MB / 479.7 MB, free: 212 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.5327, allocations: 0 / 479.7 MB, free: 212 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00146/0.5342, allocations: 1.182 MB / 480.8 MB, free: 14.97 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002064/0.5363, allocations: 0.52 MB / 481.4 MB, free: 14.46 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01009/0.5464, allocations: 5.593 MB / 486.9 MB, free: 8.809 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002802/0.5492, allocations: 2.264 MB / 489.2 MB, free: 6.512 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001812/0.551, allocations: 0.5133 MB / 489.7 MB, free: 5.996 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005708/0.5516, allocations: 155.4 kB / 489.9 MB, free: 5.844 MB / 398.1 MB Notification: Performance of SimCode: time 8.92e-07/0.5516, allocations: 0 / 489.9 MB, free: 5.844 MB / 398.1 MB Notification: Performance of Templates: time 0.05386/0.6055, allocations: 26.31 MB / 0.5041 GB, free: 11.82 MB / 430.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 -s cvode -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