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.001065/0.001065, allocations: 99.02 kB / 17 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001466/0.001466, allocations: 192.7 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.368/1.368, allocations: 227.7 MB / 246.4 MB, free: 9.777 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001957/0.0001957, allocations: 4 kB / 307.1 MB, free: 0.9258 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08918/0.08939, allocations: 51.52 MB / 358.6 MB, free: 13.4 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.1829/0.2724, allocations: 13.87 MB / 372.5 MB, free: 9.531 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008452/0.2809, allocations: 4.93 MB / 377.5 MB, free: 9.383 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001584/0.2825, allocations: 93.12 kB / 377.5 MB, free: 9.359 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002085/0.2846, allocations: 0.8253 MB / 378.4 MB, free: 9.102 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002523/0.2871, allocations: 1.015 MB / 379.4 MB, free: 8.801 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001623/0.2887, allocations: 0.6388 MB / 380 MB, free: 8.738 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00396/0.2927, allocations: 3.552 MB / 383.6 MB, free: 7.887 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002852/0.2956, allocations: 2.321 MB / 385.9 MB, free: 7.441 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001939/0.2975, allocations: 1.211 MB / 387.1 MB, free: 7.164 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002242/0.2998, allocations: 1.58 MB / 388.7 MB, free: 6.684 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003891/0.3002, allocations: 190.8 kB / 388.9 MB, free: 6.684 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001159/0.3013, allocations: 413.1 kB / 389.3 MB, free: 6.617 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006814/0.302, allocations: 0.7895 MB / 390.1 MB, free: 6.25 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006923/0.3027, allocations: 0.698 MB / 390.8 MB, free: 5.812 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003805/0.3066, allocations: 5.109 MB / 395.9 MB, free: 2.492 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.89e-06/0.3066, allocations: 4 kB / 395.9 MB, free: 2.488 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.3066, allocations: 0 / 395.9 MB, free: 2.488 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.292e-05/0.3067, allocations: 0 / 395.9 MB, free: 2.488 MB / 302.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.00704/0.3137, allocations: 3.64 MB / 399.5 MB, free: 120 kB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.276e-05/0.3138, allocations: 10.41 kB / 399.5 MB, free: 120 kB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002701/0.3165, allocations: 0.6355 MB / 400.2 MB, free: 15.8 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003403/0.3199, allocations: 2.143 MB / 402.3 MB, free: 14.3 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001878/0.3201, allocations: 251.2 kB / 402.5 MB, free: 14.18 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003922/0.3205, allocations: 307.9 kB / 402.9 MB, free: 14.08 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006659/0.3272, allocations: 4.027 MB / 406.9 MB, free: 10.82 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.119e-05/0.3272, allocations: 3.938 kB / 406.9 MB, free: 10.82 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002796/0.3275, allocations: 133.9 kB / 407 MB, free: 10.69 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001444/0.3277, allocations: 142.2 kB / 407.2 MB, free: 10.55 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005537/0.3332, allocations: 3.378 MB / 410.5 MB, free: 7.16 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.018/0.3512, allocations: 13.54 MB / 424.1 MB, free: 9.234 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004071/0.3553, allocations: 4.264 MB / 428.3 MB, free: 4.418 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001635/0.357, allocations: 1.046 MB / 429.4 MB, free: 3.375 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004172/0.3612, allocations: 2.864 MB / 432.2 MB, free: 432 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.026e-05/0.3612, allocations: 51.56 kB / 432.3 MB, free: 372 kB / 334.1 MB Notification: Performance of pre-optimization done (n=108): time 2.555e-06/0.3612, allocations: 0 / 432.3 MB, free: 372 kB / 334.1 MB Notification: Performance of matching and sorting (n=142): time 0.01133/0.3726, allocations: 5.972 MB / 438.3 MB, free: 10.31 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.342e-05/0.3727, allocations: 72.72 kB / 438.3 MB, free: 10.23 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002826/0.3755, allocations: 1.89 MB / 440.2 MB, free: 8.293 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001028/0.3756, allocations: 53.7 kB / 440.3 MB, free: 8.234 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001059/0.3767, allocations: 1.512 MB / 441.8 MB, free: 6.711 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003719/0.3771, allocations: 490.6 kB / 442.3 MB, free: 6.234 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001025/0.3772, allocations: 36 kB / 442.3 MB, free: 6.199 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001899/0.3774, allocations: 385.8 kB / 442.7 MB, free: 5.816 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001196/0.3786, allocations: 0.7613 MB / 443.4 MB, free: 5.055 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001572/0.3802, allocations: 1.379 MB / 444.8 MB, free: 3.406 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001458/0.3816, allocations: 1.002 MB / 445.8 MB, free: 2.402 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.006e-05/0.3817, allocations: 8 kB / 445.8 MB, free: 2.395 MB / 350.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.003773/0.3854, allocations: 2.462 MB / 448.3 MB, free: 15.91 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.518e-05/0.3855, allocations: 13.86 kB / 448.3 MB, free: 15.9 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.334e-05/0.3855, allocations: 23.98 kB / 448.3 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003379/0.3858, allocations: 126.8 kB / 448.5 MB, free: 15.75 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001757/0.3876, allocations: 487.2 kB / 448.9 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00093/0.3886, allocations: 1.303 MB / 450.2 MB, free: 13.83 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001328/0.3899, allocations: 116 kB / 450.3 MB, free: 13.72 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001272/0.39, allocations: 87.98 kB / 450.4 MB, free: 13.63 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 (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001645/0.3917, allocations: 0.9837 MB / 451.4 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002827/0.392, allocations: 201.5 kB / 451.6 MB, free: 12.44 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003193/0.3952, allocations: 1.962 MB / 453.6 MB, free: 10.46 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-05/0.3952, allocations: 20 kB / 453.6 MB, free: 10.44 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.3952, allocations: 3.984 kB / 453.6 MB, free: 10.44 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.197e-05/0.3952, allocations: 3.984 kB / 453.6 MB, free: 10.43 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007214/0.4025, allocations: 4.999 MB / 458.6 MB, free: 5.367 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.34e-06/0.4025, allocations: 0 / 458.6 MB, free: 5.367 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001318/0.4038, allocations: 315.5 kB / 458.9 MB, free: 5.059 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002644/0.4041, allocations: 90.53 kB / 459 MB, free: 4.961 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.066e-05/0.4042, allocations: 32.02 kB / 459 MB, free: 4.93 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000825/0.405, allocations: 1.28 MB / 460.3 MB, free: 3.52 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.405, allocations: 12 kB / 460.3 MB, free: 3.508 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004258/0.4093, allocations: 3.073 MB / 463.4 MB, free: 388 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008937/0.4102, allocations: 464.5 kB / 463.8 MB, free: 15.91 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002732/0.4105, allocations: 27.98 kB / 463.9 MB, free: 15.88 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008872/0.4114, allocations: 87.97 kB / 464 MB, free: 15.79 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001557/0.4116, allocations: 81.19 kB / 464 MB, free: 15.71 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.858e-05/0.4116, allocations: 40 kB / 464.1 MB, free: 15.67 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001977/0.4136, allocations: 1.286 MB / 465.4 MB, free: 14.36 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.4136, allocations: 0 / 465.4 MB, free: 14.36 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001742/0.4154, allocations: 0.5391 MB / 465.9 MB, free: 13.82 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 (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003385/0.4157, allocations: 186.2 kB / 466.1 MB, free: 13.64 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003168/0.4189, allocations: 2.201 MB / 468.3 MB, free: 11.39 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.4189, allocations: 3.938 kB / 468.3 MB, free: 11.38 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001574/0.4205, allocations: 1.176 MB / 469.5 MB, free: 10.16 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00232/0.4229, allocations: 0.504 MB / 470 MB, free: 9.656 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0105/0.4334, allocations: 6.737 MB / 476.7 MB, free: 2.859 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00234/0.4357, allocations: 2.268 MB / 479 MB, free: 0.5547 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002256/0.438, allocations: 0.5133 MB / 479.5 MB, free: 40 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005001/0.4386, allocations: 159.4 kB / 479.6 MB, free: 15.88 MB / 398.1 MB Notification: Performance of SimCode: time 2.224e-06/0.4386, allocations: 2.188 kB / 479.6 MB, free: 15.88 MB / 398.1 MB Notification: Performance of Templates: time 0.04553/0.4841, allocations: 24.57 MB / 0.4924 GB, free: 7.57 MB / 414.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/jenkins/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/jenkins/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