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.001301/0.001301, allocations: 104.8 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001122/0.001122, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.405/1.405, allocations: 227.4 MB / 246.3 MB, free: 10.88 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001141/0.001142, allocations: 62.36 kB / 306.3 MB, free: 1.078 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09128/0.09244, allocations: 50.54 MB / 356.8 MB, free: 14.54 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.1652/0.2577, allocations: 15.59 MB / 372.4 MB, free: 9.867 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008134/0.2659, allocations: 5.286 MB / 377.7 MB, free: 9.652 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002103/0.268, allocations: 97.34 kB / 377.8 MB, free: 9.629 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002507/0.2705, allocations: 0.9477 MB / 378.7 MB, free: 9.242 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003024/0.2736, allocations: 1.111 MB / 379.8 MB, free: 8.754 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001795/0.2754, allocations: 0.8575 MB / 380.7 MB, free: 8.297 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005126/0.2805, allocations: 3.791 MB / 384.5 MB, free: 6.613 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003267/0.2838, allocations: 2.789 MB / 387.3 MB, free: 5.398 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002192/0.286, allocations: 1.446 MB / 388.7 MB, free: 4.754 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002512/0.2885, allocations: 1.935 MB / 390.7 MB, free: 3.902 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006678/0.2892, allocations: 292.5 kB / 390.9 MB, free: 3.902 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001611/0.2908, allocations: 0.5266 MB / 391.5 MB, free: 3.82 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007277/0.2916, allocations: 0.9474 MB / 392.4 MB, free: 3.32 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001621/0.2932, allocations: 1.845 MB / 394.3 MB, free: 2.152 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004768/0.298, allocations: 6.105 MB / 400.4 MB, free: 13.95 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.298, allocations: 6.766 kB / 400.4 MB, free: 13.95 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.298, allocations: 0 / 400.4 MB, free: 13.95 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001401/0.2982, allocations: 0 / 400.4 MB, free: 13.95 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.009776/0.308, allocations: 4.265 MB / 404.6 MB, free: 11.05 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.266e-05/0.308, allocations: 12.59 kB / 404.7 MB, free: 11.05 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00283/0.3109, allocations: 0.6238 MB / 405.3 MB, free: 10.75 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005408/0.3163, allocations: 2.205 MB / 407.5 MB, free: 8.543 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003078/0.3166, allocations: 241.4 kB / 407.7 MB, free: 8.309 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007984/0.3174, allocations: 323.8 kB / 408 MB, free: 7.992 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01078/0.3282, allocations: 4.042 MB / 412.1 MB, free: 3.895 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.558e-05/0.3284, allocations: 11.91 kB / 412.1 MB, free: 3.883 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000447/0.3288, allocations: 124 kB / 412.2 MB, free: 3.762 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002059/0.329, allocations: 146.2 kB / 412.4 MB, free: 3.617 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01073/0.3398, allocations: 3.39 MB / 415.7 MB, free: 224 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0334/0.3732, allocations: 13.49 MB / 429.2 MB, free: 2.332 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007684/0.3809, allocations: 4.271 MB / 433.5 MB, free: 13.52 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003108/0.3841, allocations: 1.036 MB / 434.5 MB, free: 12.48 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007493/0.3916, allocations: 2.858 MB / 437.4 MB, free: 9.531 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.904e-05/0.3917, allocations: 51.5 kB / 437.4 MB, free: 9.473 MB / 350.1 MB Notification: Performance of pre-optimization done (n=108): time 4.739e-06/0.3917, allocations: 0 / 437.4 MB, free: 9.473 MB / 350.1 MB Notification: Performance of matching and sorting (n=142): time 0.01558/0.4073, allocations: 5.97 MB / 443.4 MB, free: 3.418 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.79e-05/0.4073, allocations: 68.72 kB / 443.5 MB, free: 3.34 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0026/0.41, allocations: 1.909 MB / 445.4 MB, free: 1.387 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.704e-05/0.4101, allocations: 45.7 kB / 445.4 MB, free: 1.336 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000948/0.411, allocations: 1.517 MB / 447 MB, free: 15.81 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003648/0.4114, allocations: 495.7 kB / 447.4 MB, free: 15.33 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004961/0.4119, allocations: 331.2 kB / 447.8 MB, free: 15 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.479e-05/0.412, allocations: 305.1 kB / 448.1 MB, free: 14.7 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001185/0.4132, allocations: 0.7691 MB / 448.8 MB, free: 13.93 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001553/0.4147, allocations: 1.379 MB / 450.2 MB, free: 12.28 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002843/0.4176, allocations: 2.316 MB / 452.5 MB, free: 9.695 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.32e-05/0.4176, allocations: 11.94 kB / 452.5 MB, free: 9.684 MB / 366.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.003808/0.4214, allocations: 2.477 MB / 455 MB, free: 7.188 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.364e-05/0.4215, allocations: 12 kB / 455 MB, free: 7.176 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.264e-05/0.4215, allocations: 24.66 kB / 455.1 MB, free: 7.152 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003461/0.4219, allocations: 122.5 kB / 455.2 MB, free: 7.023 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001741/0.4236, allocations: 483.2 kB / 455.6 MB, free: 6.551 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009348/0.4246, allocations: 1.308 MB / 457 MB, free: 5.105 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001452/0.426, allocations: 123.9 kB / 457.1 MB, free: 4.984 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001408/0.4262, allocations: 79.98 kB / 457.1 MB, free: 4.906 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.001505/0.4277, allocations: 0.9812 MB / 458.1 MB, free: 3.914 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003733/0.4281, allocations: 205.4 kB / 458.3 MB, free: 3.711 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003207/0.4313, allocations: 1.962 MB / 460.3 MB, free: 1.727 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.115e-05/0.4313, allocations: 20 kB / 460.3 MB, free: 1.707 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.752e-06/0.4313, allocations: 3.938 kB / 460.3 MB, free: 1.703 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.21e-05/0.4314, allocations: 7.969 kB / 460.3 MB, free: 1.695 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007523/0.4389, allocations: 5.006 MB / 465.3 MB, free: 12.62 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.912e-06/0.4389, allocations: 256 / 465.3 MB, free: 12.62 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001327/0.4402, allocations: 315.5 kB / 465.6 MB, free: 12.31 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002876/0.4405, allocations: 94.47 kB / 465.7 MB, free: 12.21 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.701e-05/0.4407, allocations: 31.98 kB / 465.8 MB, free: 12.18 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008018/0.4415, allocations: 1.275 MB / 467 MB, free: 10.78 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.965e-06/0.4415, allocations: 4 kB / 467 MB, free: 10.77 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004238/0.4457, allocations: 3.085 MB / 470.1 MB, free: 7.637 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008383/0.4466, allocations: 458.4 kB / 470.6 MB, free: 7.168 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003402/0.4469, allocations: 27.94 kB / 470.6 MB, free: 7.141 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001003/0.4479, allocations: 79.91 kB / 470.7 MB, free: 7.062 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000173/0.4481, allocations: 89.25 kB / 470.8 MB, free: 6.977 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.56e-05/0.4482, allocations: 43.98 kB / 470.8 MB, free: 6.934 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001828/0.45, allocations: 1.294 MB / 472.1 MB, free: 5.617 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4501, allocations: 0 / 472.1 MB, free: 5.617 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001694/0.4518, allocations: 0.539 MB / 472.6 MB, free: 5.078 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.0003392/0.4521, allocations: 185.5 kB / 472.8 MB, free: 4.891 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003141/0.4553, allocations: 2.203 MB / 475 MB, free: 2.633 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.702e-06/0.4553, allocations: 5.875 kB / 475 MB, free: 2.629 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001493/0.4568, allocations: 1.17 MB / 476.2 MB, free: 1.402 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002243/0.459, allocations: 0.496 MB / 476.7 MB, free: 0.9102 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0098/0.4688, allocations: 7.033 MB / 483.7 MB, free: 9.824 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001989/0.4708, allocations: 2.264 MB / 486 MB, free: 7.527 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001639/0.4725, allocations: 0.5172 MB / 486.5 MB, free: 7.008 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004689/0.473, allocations: 155.4 kB / 486.7 MB, free: 6.855 MB / 398.1 MB Notification: Performance of SimCode: time 5.21e-07/0.473, allocations: 0 / 486.7 MB, free: 6.855 MB / 398.1 MB Notification: Performance of Templates: time 0.04296/0.516, allocations: 25.49 MB / 0.5002 GB, free: 13.61 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.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