Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001142/0.001142, allocations: 99.38 kB / 15.37 MB, free: 0.707 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001495/0.001496, allocations: 181.9 kB / 16.28 MB, free: 6.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.432/1.432, allocations: 205.4 MB / 222.5 MB, free: 5.559 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0006878/0.0006882, allocations: 14.81 kB / 279.5 MB, free: 12.5 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2877/0.2884, allocations: 47.58 MB / 327 MB, free: 1.363 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.01585/0.3043, allocations: 14.22 MB / 341.3 MB, free: 5.074 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01184/0.3162, allocations: 4.99 MB / 346.3 MB, free: 72 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005286/0.3215, allocations: 79.73 kB / 346.3 MB, free: 15.99 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004002/0.3255, allocations: 0.9249 MB / 347.3 MB, free: 15.06 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005077/0.3306, allocations: 1.123 MB / 348.4 MB, free: 13.93 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002968/0.3336, allocations: 0.8186 MB / 349.2 MB, free: 13.11 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.006175/0.3398, allocations: 3.752 MB / 353 MB, free: 9.344 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004432/0.3443, allocations: 2.7 MB / 355.7 MB, free: 6.578 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002385/0.3467, allocations: 1.225 MB / 356.9 MB, free: 5.348 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002982/0.3497, allocations: 1.645 MB / 358.5 MB, free: 3.695 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001044/0.3507, allocations: 192 kB / 358.7 MB, free: 3.508 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002216/0.353, allocations: 419.7 kB / 359.1 MB, free: 3.098 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0015/0.3545, allocations: 0.8094 MB / 359.9 MB, free: 2.285 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003952/0.3585, allocations: 1.684 MB / 361.6 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008865/0.3673, allocations: 5.839 MB / 367.5 MB, free: 10.73 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.3674, allocations: 0 / 367.5 MB, free: 10.73 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.3674, allocations: 0 / 367.5 MB, free: 10.73 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002455/0.3676, allocations: 0 / 367.5 MB, free: 10.73 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.0117/0.3794, allocations: 3.579 MB / 371 MB, free: 7.074 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.437e-05/0.3794, allocations: 8.031 kB / 371 MB, free: 7.066 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004091/0.3835, allocations: 0.6251 MB / 371.7 MB, free: 6.438 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005763/0.3893, allocations: 2.097 MB / 373.8 MB, free: 4.285 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003712/0.3897, allocations: 238.9 kB / 374 MB, free: 4.051 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001073/0.3908, allocations: 315.8 kB / 374.3 MB, free: 3.742 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009898/0.4007, allocations: 4.051 MB / 378.4 MB, free: 15.63 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.691e-05/0.4009, allocations: 15.83 kB / 378.4 MB, free: 15.61 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003303/0.4012, allocations: 128 kB / 378.5 MB, free: 15.49 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002449/0.4015, allocations: 142.2 kB / 378.6 MB, free: 15.35 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006437/0.4079, allocations: 3.382 MB / 382 MB, free: 11.96 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02281/0.4307, allocations: 13.38 MB / 395.4 MB, free: 14.12 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004447/0.4352, allocations: 3.966 MB / 399.4 MB, free: 9.648 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001644/0.4369, allocations: 1.007 MB / 400.4 MB, free: 8.641 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004937/0.4419, allocations: 2.657 MB / 403 MB, free: 5.898 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.721e-05/0.4419, allocations: 43.56 kB / 403.1 MB, free: 5.848 MB / 334.1 MB Notification: Performance of pre-optimization done (n=108): time 3.256e-06/0.4419, allocations: 4 kB / 403.1 MB, free: 5.844 MB / 334.1 MB Notification: Performance of matching and sorting (n=142): time 0.01177/0.4537, allocations: 5.995 MB / 409.1 MB, free: 15.75 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.689e-05/0.4538, allocations: 68.72 kB / 409.1 MB, free: 15.67 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002915/0.4567, allocations: 1.885 MB / 411 MB, free: 13.74 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001049/0.4569, allocations: 53.7 kB / 411.1 MB, free: 13.68 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001485/0.4584, allocations: 1.505 MB / 412.6 MB, free: 12.16 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004796/0.4588, allocations: 496.9 kB / 413.1 MB, free: 11.66 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000208/0.4591, allocations: 145.6 kB / 413.2 MB, free: 11.52 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001648/0.4592, allocations: 305.1 kB / 413.5 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001199/0.4604, allocations: 0.773 MB / 414.3 MB, free: 10.44 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001658/0.4621, allocations: 1.387 MB / 415.7 MB, free: 8.785 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003109/0.4652, allocations: 2.312 MB / 418 MB, free: 6.203 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.143e-05/0.4653, allocations: 8 kB / 418 MB, free: 6.195 MB / 350.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004201/0.4695, allocations: 2.474 MB / 420.5 MB, free: 3.703 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.875e-05/0.4695, allocations: 16 kB / 420.5 MB, free: 3.688 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.553e-05/0.4696, allocations: 27.88 kB / 420.5 MB, free: 3.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003746/0.47, allocations: 118.5 kB / 420.6 MB, free: 3.535 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001813/0.4718, allocations: 495.3 kB / 421.1 MB, free: 3.051 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001194/0.473, allocations: 1.323 MB / 422.4 MB, free: 1.594 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001734/0.4748, allocations: 115.7 kB / 422.5 MB, free: 1.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000143/0.4749, allocations: 83.98 kB / 422.6 MB, free: 1.398 MB / 350.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.002021/0.4769, allocations: 0.9813 MB / 423.6 MB, free: 416 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004448/0.4774, allocations: 197.6 kB / 423.8 MB, free: 216 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003478/0.4809, allocations: 1.965 MB / 425.8 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.228e-05/0.4809, allocations: 23.92 kB / 425.8 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.271e-06/0.4809, allocations: 3.938 kB / 425.8 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.202e-05/0.4809, allocations: 3.984 kB / 425.8 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008219/0.4892, allocations: 4.989 MB / 430.8 MB, free: 9.102 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.197e-05/0.4892, allocations: 11.88 kB / 430.8 MB, free: 9.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0014/0.4906, allocations: 319.8 kB / 431.1 MB, free: 8.777 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000302/0.4909, allocations: 90.53 kB / 431.2 MB, free: 8.68 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.16e-05/0.491, allocations: 31.98 kB / 431.2 MB, free: 8.648 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000929/0.492, allocations: 1.28 MB / 432.5 MB, free: 7.234 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.324e-06/0.492, allocations: 11.94 kB / 432.5 MB, free: 7.223 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004568/0.4966, allocations: 3.077 MB / 435.6 MB, free: 4.09 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00112/0.4977, allocations: 470.4 kB / 436.1 MB, free: 3.609 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002363/0.4979, allocations: 27.94 kB / 436.1 MB, free: 3.582 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009561/0.4989, allocations: 83.97 kB / 436.2 MB, free: 3.5 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000188/0.4991, allocations: 89.12 kB / 436.2 MB, free: 3.414 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.008e-05/0.4992, allocations: 39.94 kB / 436.3 MB, free: 3.375 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002158/0.5014, allocations: 1.289 MB / 437.6 MB, free: 2.062 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5014, allocations: 0 / 437.6 MB, free: 2.062 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001931/0.5033, allocations: 0.5273 MB / 438.1 MB, free: 1.535 MB / 366.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.000355/0.5037, allocations: 162.9 kB / 438.3 MB, free: 1.363 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003567/0.5073, allocations: 2.216 MB / 440.5 MB, free: 15.09 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.579e-06/0.5073, allocations: 0 / 440.5 MB, free: 15.09 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001564/0.5088, allocations: 1.186 MB / 441.7 MB, free: 13.86 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003229/0.5121, allocations: 490.3 kB / 442.1 MB, free: 13.37 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01193/0.524, allocations: 7.078 MB / 449.2 MB, free: 6.238 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002075/0.5262, allocations: 2.259 MB / 451.5 MB, free: 3.945 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002034/0.5282, allocations: 0.5092 MB / 452 MB, free: 3.434 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004303/0.5286, allocations: 151.4 kB / 452.1 MB, free: 3.289 MB / 382.1 MB Notification: Performance of SimCode: time 1.913e-06/0.5287, allocations: 4 kB / 452.1 MB, free: 3.285 MB / 382.1 MB Notification: Performance of Templates: time 0.2191/0.7477, allocations: 24.81 MB / 476.9 MB, free: 97.88 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.sim & ./Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe 2>&1)