Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.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.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001146/0.001146, allocations: 114.3 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00123/0.00123, allocations: 210.7 kB / 19.41 MB, free: 3.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.333/1.333, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001316/0.001316, allocations: 67.88 kB / 359.4 MB, free: 12.9 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2127/0.214, allocations: 50.54 MB / 410 MB, free: 1.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01163/0.2257, allocations: 10.94 MB / 420.9 MB, free: 6.754 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005855/0.2316, allocations: 3.674 MB / 424.6 MB, free: 3.066 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008505/0.2325, allocations: 71.69 kB / 424.6 MB, free: 2.996 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001631/0.2341, allocations: 0.8774 MB / 425.5 MB, free: 2.113 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001945/0.2361, allocations: 0.9048 MB / 426.4 MB, free: 1.203 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008151/0.2369, allocations: 463.3 kB / 426.9 MB, free: 0.75 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002648/0.2396, allocations: 2.946 MB / 429.8 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002786/0.2424, allocations: 2.735 MB / 432.6 MB, free: 10.99 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001466/0.2438, allocations: 1.39 MB / 433.9 MB, free: 9.594 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001879/0.2457, allocations: 1.752 MB / 435.7 MB, free: 7.836 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004238/0.2462, allocations: 372 kB / 436.1 MB, free: 7.473 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007018/0.2469, allocations: 483.8 kB / 436.5 MB, free: 7 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008991/0.2478, allocations: 1.075 MB / 437.6 MB, free: 5.922 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001396/0.2492, allocations: 1.672 MB / 439.3 MB, free: 4.242 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00406/0.2533, allocations: 4.891 MB / 444.2 MB, free: 15.34 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.2533, allocations: 4 kB / 444.2 MB, free: 15.33 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.2533, allocations: 0 / 444.2 MB, free: 15.33 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.512e-05/0.2533, allocations: 0 / 444.2 MB, free: 15.33 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: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.005693/0.259, allocations: 3.402 MB / 447.6 MB, free: 11.86 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.156e-05/0.2591, allocations: 8.031 kB / 447.6 MB, free: 11.86 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008579/0.2599, allocations: 349.1 kB / 447.9 MB, free: 11.51 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002746/0.2627, allocations: 1.819 MB / 449.7 MB, free: 9.637 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001327/0.2629, allocations: 189.4 kB / 449.9 MB, free: 9.449 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003521/0.2632, allocations: 259.8 kB / 450.2 MB, free: 9.195 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005018/0.2682, allocations: 3.287 MB / 453.5 MB, free: 5.828 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.751e-05/0.2683, allocations: 7.906 kB / 453.5 MB, free: 5.82 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002275/0.2685, allocations: 100 kB / 453.6 MB, free: 5.723 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000115/0.2687, allocations: 124.9 kB / 453.7 MB, free: 5.598 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004336/0.273, allocations: 2.748 MB / 456.4 MB, free: 2.836 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01339/0.2864, allocations: 10.38 MB / 466.8 MB, free: 8.098 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001774/0.2882, allocations: 1.369 MB / 468.2 MB, free: 6.66 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001168/0.2894, allocations: 0.7578 MB / 468.9 MB, free: 5.898 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002775/0.2897, allocations: 212.2 kB / 469.2 MB, free: 5.656 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.818e-05/0.2897, allocations: 43.55 kB / 469.2 MB, free: 5.605 MB / 382.1 MB Notification: Performance of pre-optimization done (n=98): time 2.856e-06/0.2897, allocations: 4 kB / 469.2 MB, free: 5.602 MB / 382.1 MB Notification: Performance of matching and sorting (n=123): time 0.01427/0.304, allocations: 6.898 MB / 476.1 MB, free: 14.59 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.435e-05/0.304, allocations: 72.28 kB / 476.2 MB, free: 14.51 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002334/0.3064, allocations: 1.794 MB / 478 MB, free: 12.71 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.381e-05/0.3065, allocations: 45.7 kB / 478 MB, free: 12.66 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008283/0.3073, allocations: 1.271 MB / 479.3 MB, free: 11.38 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003063/0.3076, allocations: 429.8 kB / 479.7 MB, free: 10.95 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000444/0.3081, allocations: 291.3 kB / 480 MB, free: 10.66 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 8.877e-05/0.3082, allocations: 313.1 kB / 480.3 MB, free: 10.35 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001169/0.3094, allocations: 0.773 MB / 481.1 MB, free: 9.574 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001483/0.3109, allocations: 1.292 MB / 482.4 MB, free: 8.059 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002772/0.3136, allocations: 2.21 MB / 484.6 MB, free: 5.617 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.404e-06/0.3137, allocations: 7.938 kB / 484.6 MB, free: 5.609 MB / 398.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.003773/0.3174, allocations: 2.47 MB / 487 MB, free: 3.117 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.221e-05/0.3175, allocations: 12 kB / 487.1 MB, free: 3.105 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.894e-05/0.3175, allocations: 16 kB / 487.1 MB, free: 3.09 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006108/0.3181, allocations: 247.6 kB / 487.3 MB, free: 2.836 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001471/0.3196, allocations: 423.3 kB / 487.7 MB, free: 2.422 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002589/0.3222, allocations: 3.23 MB / 491 MB, free: 14.9 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001153/0.3234, allocations: 131.7 kB / 491.1 MB, free: 14.77 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000116/0.3235, allocations: 71.98 kB / 491.2 MB, free: 14.7 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * 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 (198): * Single equations (assignments): 194 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * 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): 2 systems {(2,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001139/0.3246, allocations: 0.8211 MB / 492 MB, free: 13.87 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002698/0.3249, allocations: 189.7 kB / 492.2 MB, free: 13.68 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003336/0.3283, allocations: 2.043 MB / 494.2 MB, free: 11.62 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.196e-05/0.3283, allocations: 3.984 kB / 494.2 MB, free: 11.61 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.3283, allocations: 0 / 494.2 MB, free: 11.61 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006476/0.3289, allocations: 430.7 kB / 494.6 MB, free: 11.17 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002352/0.3292, allocations: 27.94 kB / 494.7 MB, free: 11.14 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008943/0.3301, allocations: 95.86 kB / 494.7 MB, free: 11.05 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001698/0.3303, allocations: 72.89 kB / 494.8 MB, free: 10.98 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003756/0.334, allocations: 2.074 MB / 496.9 MB, free: 8.887 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004036/0.3381, allocations: 3.024 MB / 499.9 MB, free: 5.84 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001061/0.3392, allocations: 0.8198 MB / 0.489 GB, free: 5.02 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001648/0.3408, allocations: 1.228 MB / 0.4902 GB, free: 3.801 MB / 414.1 MB Notification: Performance of Backend: time 4.21e-07/0.3408, allocations: 0 / 0.4902 GB, free: 3.801 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003096/0.3439, allocations: 1.811 MB / 0.492 GB, free: 1.918 MB / 414.1 MB Notification: Performance of SimCode: time 0.007269/0.3512, allocations: 5.042 MB / 0.4969 GB, free: 12.83 MB / 430.1 MB Notification: Performance of Templates: time 0.04533/0.3965, allocations: 29.5 MB / 0.5257 GB, free: 15.57 MB / 462.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1)