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.001322/0.001322, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001317/0.001317, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.424/1.424, allocations: 227.4 MB / 246.8 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001865/0.001865, allocations: 59.78 kB / 307 MB, free: 0.5742 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1235/0.1254, allocations: 50.54 MB / 357.5 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.2317/0.3571, allocations: 15.79 MB / 373.3 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01121/0.3684, allocations: 5.352 MB / 378.7 MB, free: 9.672 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003722/0.3721, allocations: 104.6 kB / 378.8 MB, free: 9.645 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003937/0.3761, allocations: 1.076 MB / 379.9 MB, free: 9.152 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007004/0.3832, allocations: 1.236 MB / 381.1 MB, free: 8.57 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003312/0.3865, allocations: 0.9148 MB / 382 MB, free: 8.109 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006552/0.3931, allocations: 3.632 MB / 385.6 MB, free: 6.301 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005432/0.3985, allocations: 3.327 MB / 389 MB, free: 4.891 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004045/0.4026, allocations: 1.734 MB / 390.7 MB, free: 4.051 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005306/0.4079, allocations: 2.109 MB / 392.8 MB, free: 3.086 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00147/0.4094, allocations: 479.4 kB / 393.3 MB, free: 3.086 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003021/0.4125, allocations: 0.7154 MB / 394 MB, free: 3.004 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001138/0.4136, allocations: 1.145 MB / 395.1 MB, free: 2.316 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003424/0.417, allocations: 2.049 MB / 397.2 MB, free: 0.9531 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008478/0.4255, allocations: 6.245 MB / 403.4 MB, free: 12.56 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.281e-06/0.4256, allocations: 0 / 403.4 MB, free: 12.56 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.4256, allocations: 0 / 403.4 MB, free: 12.56 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001776/0.4258, allocations: 0 / 403.4 MB, free: 12.56 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.01238/0.4382, allocations: 4.271 MB / 407.7 MB, free: 9.102 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.362e-05/0.4382, allocations: 8.031 kB / 407.7 MB, free: 9.094 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003112/0.4414, allocations: 0.6121 MB / 408.3 MB, free: 8.48 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004691/0.4461, allocations: 2.231 MB / 410.6 MB, free: 6.227 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002403/0.4463, allocations: 243 kB / 410.8 MB, free: 5.988 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006165/0.447, allocations: 315 kB / 411.1 MB, free: 5.684 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008783/0.4557, allocations: 4.048 MB / 415.2 MB, free: 1.578 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.032e-05/0.4559, allocations: 7.938 kB / 415.2 MB, free: 1.57 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003239/0.4562, allocations: 128 kB / 415.3 MB, free: 1.445 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001829/0.4564, allocations: 154.2 kB / 415.4 MB, free: 1.293 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006749/0.4631, allocations: 3.39 MB / 418.8 MB, free: 13.89 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02256/0.4857, allocations: 13.49 MB / 432.3 MB, free: 8 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004831/0.4906, allocations: 4.28 MB / 436.6 MB, free: 11.18 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00167/0.4923, allocations: 1.038 MB / 437.6 MB, free: 10.14 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004513/0.4968, allocations: 2.869 MB / 440.5 MB, free: 7.184 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.623e-05/0.4969, allocations: 51.44 kB / 440.6 MB, free: 7.125 MB / 350.1 MB Notification: Performance of pre-optimization done (n=108): time 2.404e-06/0.4969, allocations: 0 / 440.6 MB, free: 7.125 MB / 350.1 MB Notification: Performance of matching and sorting (n=142): time 0.01181/0.5087, allocations: 5.989 MB / 446.5 MB, free: 1.051 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.042e-05/0.5088, allocations: 68.72 kB / 446.6 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00306/0.5118, allocations: 1.905 MB / 448.5 MB, free: 15.02 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.925e-05/0.512, allocations: 49.7 kB / 448.6 MB, free: 14.97 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001238/0.5132, allocations: 1.516 MB / 450.1 MB, free: 13.44 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004399/0.5136, allocations: 491.1 kB / 450.6 MB, free: 12.96 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005228/0.5142, allocations: 331.2 kB / 450.9 MB, free: 12.64 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001329/0.5143, allocations: 309.1 kB / 451.2 MB, free: 12.33 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001231/0.5156, allocations: 0.773 MB / 452 MB, free: 11.56 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001736/0.5173, allocations: 1.375 MB / 453.3 MB, free: 9.914 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003285/0.5206, allocations: 2.316 MB / 455.7 MB, free: 7.328 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.218e-05/0.5206, allocations: 7.938 kB / 455.7 MB, free: 7.32 MB / 366.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004379/0.525, allocations: 2.474 MB / 458.1 MB, free: 4.828 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.526e-05/0.5251, allocations: 12 kB / 458.1 MB, free: 4.816 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.843e-05/0.5251, allocations: 20 kB / 458.2 MB, free: 4.797 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003994/0.5255, allocations: 126.5 kB / 458.3 MB, free: 4.664 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001799/0.5273, allocations: 483.4 kB / 458.8 MB, free: 4.191 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001205/0.5285, allocations: 1.409 MB / 460.2 MB, free: 2.641 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001647/0.5302, allocations: 123.9 kB / 460.3 MB, free: 2.52 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001387/0.5303, allocations: 79.98 kB / 460.4 MB, free: 2.441 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.002064/0.5324, allocations: 0.9882 MB / 461.4 MB, free: 1.445 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005465/0.533, allocations: 205.5 kB / 461.6 MB, free: 1.242 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003599/0.5366, allocations: 1.975 MB / 463.5 MB, free: 15.25 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.606e-05/0.5366, allocations: 12 kB / 463.5 MB, free: 15.24 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.835e-06/0.5366, allocations: 4 kB / 463.5 MB, free: 15.23 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.791e-05/0.5366, allocations: 7.969 kB / 463.6 MB, free: 15.23 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008976/0.5456, allocations: 5.003 MB / 468.6 MB, free: 10.15 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.915e-06/0.5457, allocations: 4 kB / 468.6 MB, free: 10.14 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001357/0.547, allocations: 307.6 kB / 468.9 MB, free: 9.844 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003143/0.5474, allocations: 102.5 kB / 469 MB, free: 9.734 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.456e-05/0.5475, allocations: 24 kB / 469 MB, free: 9.711 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001202/0.5487, allocations: 1.386 MB / 470.4 MB, free: 8.188 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/0.5487, allocations: 4 kB / 470.4 MB, free: 8.184 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005058/0.5538, allocations: 3.085 MB / 473.5 MB, free: 5.043 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001268/0.555, allocations: 454.5 kB / 473.9 MB, free: 4.578 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00028/0.5553, allocations: 27.94 kB / 473.9 MB, free: 4.551 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009978/0.5563, allocations: 79.91 kB / 474 MB, free: 4.473 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001978/0.5565, allocations: 93.06 kB / 474.1 MB, free: 4.383 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.671e-05/0.5566, allocations: 44.05 kB / 474.1 MB, free: 4.34 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002211/0.5589, allocations: 1.297 MB / 475.4 MB, free: 3.02 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5589, allocations: 0 / 475.4 MB, free: 3.02 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002001/0.5609, allocations: 0.5391 MB / 476 MB, free: 2.48 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.0004088/0.5613, allocations: 182.2 kB / 476.2 MB, free: 2.293 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006007/0.5673, allocations: 2.829 MB / 479 MB, free: 15.41 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.751e-06/0.5673, allocations: 3.938 kB / 479 MB, free: 15.41 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001875/0.5692, allocations: 1.171 MB / 480.2 MB, free: 14.18 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003613/0.5729, allocations: 0.5226 MB / 480.7 MB, free: 13.67 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01131/0.5842, allocations: 5.661 MB / 486.3 MB, free: 7.957 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002212/0.5864, allocations: 2.267 MB / 488.6 MB, free: 5.656 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001941/0.5884, allocations: 0.5133 MB / 489.1 MB, free: 5.141 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004545/0.5889, allocations: 155.4 kB / 489.3 MB, free: 4.988 MB / 398.1 MB Notification: Performance of SimCode: time 1.203e-06/0.5889, allocations: 0 / 489.3 MB, free: 4.988 MB / 398.1 MB Notification: Performance of Templates: time 0.05424/0.6431, allocations: 26.35 MB / 0.5035 GB, free: 10.93 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 -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.1.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