Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.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/Modelica 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/HanserModelica 2.0.0-master/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/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 Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 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: "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_DOL,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_DOL,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_DOL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001162/0.001162, allocations: 111.3 kB / 15.23 MB, free: 0.6406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.254/1.254, allocations: 222.9 MB / 238.9 MB, free: 4.746 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001225/0.001225, allocations: 184.5 kB / 289.1 MB, free: 2.492 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03358/0.03358, allocations: 8.791 MB / 348.1 MB, free: 4.867 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002535/0.002536, allocations: 82.84 kB / 410.5 MB, free: 42.34 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09503/0.09759, allocations: 51.56 MB / 462.1 MB, free: 14.75 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_DOL): time 0.01596/0.1136, allocations: 16.5 MB / 478.6 MB, free: 14.16 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009302/0.1229, allocations: 5.391 MB / 484 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0027/0.1257, allocations: 99.62 kB / 484.1 MB, free: 8.652 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003728/0.1294, allocations: 1.112 MB / 485.2 MB, free: 7.539 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/SynchronousMachines/SMEE_DOL.mo:12:3-13:30:writable] Warning: Conditional component ‘ir‘ is used in a non-connect context. Notification: Performance of NFTyping.typeBindings: time 0.004888/0.1344, allocations: 1.461 MB / 486.6 MB, free: 6.07 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002939/0.1373, allocations: 0.954 MB / 487.6 MB, free: 5.117 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006057/0.1434, allocations: 5.31 MB / 492.9 MB, free: 15.79 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005179/0.1486, allocations: 3.645 MB / 496.5 MB, free: 12.06 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003181/0.1518, allocations: 1.848 MB / 498.4 MB, free: 10.2 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004446/0.1563, allocations: 2.451 MB / 0.4891 GB, free: 7.742 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001538/0.1579, allocations: 368 kB / 0.4895 GB, free: 7.383 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002463/0.1604, allocations: 0.5935 MB / 0.49 GB, free: 6.789 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001704/0.1621, allocations: 1.156 MB / 0.4912 GB, free: 5.629 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003868/0.166, allocations: 2.371 MB / 0.4935 GB, free: 3.246 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007095/0.1731, allocations: 7.847 MB / 0.5011 GB, free: 11.38 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.334e-06/0.1731, allocations: 4 kB / 0.5012 GB, free: 11.37 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1731, allocations: 0 / 0.5012 GB, free: 11.37 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001714/0.1733, allocations: 0 / 0.5012 GB, free: 11.37 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1052 * Number of variables: 1052 Notification: Performance of Generate backend data structure: time 0.01287/0.1862, allocations: 5.374 MB / 0.5064 GB, free: 5.918 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.136e-05/0.1862, allocations: 12.02 kB / 0.5064 GB, free: 5.906 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000979/0.1872, allocations: 0.5519 MB / 0.507 GB, free: 5.344 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005165/0.1924, allocations: 0.9986 MB / 0.5079 GB, free: 4.34 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00554/0.198, allocations: 2.855 MB / 0.5107 GB, free: 1.43 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002746/0.1983, allocations: 312.4 kB / 0.511 GB, free: 1.121 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000995/0.1993, allocations: 388 kB / 0.5114 GB, free: 0.7422 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009563/0.2088, allocations: 5.229 MB / 0.5165 GB, free: 11.43 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.078e-05/0.209, allocations: 11.91 kB / 0.5165 GB, free: 11.41 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003839/0.2094, allocations: 164 kB / 0.5167 GB, free: 11.25 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001531/0.2095, allocations: 176 kB / 0.5168 GB, free: 11.08 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007869/0.2174, allocations: 4.466 MB / 0.5212 GB, free: 6.594 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1718/0.3892, allocations: 16.85 MB / 0.5376 GB, free: 56.98 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005821/0.3951, allocations: 8.436 MB / 0.5459 GB, free: 50.64 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002462/0.3976, allocations: 1.705 MB / 0.5475 GB, free: 50.62 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007069/0.4047, allocations: 5.03 MB / 0.5525 GB, free: 48.32 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.871e-05/0.4047, allocations: 54.72 kB / 0.5525 GB, free: 48.26 MB / 366.1 MB Notification: Performance of pre-optimization done (n=158): time 3.146e-06/0.4047, allocations: 0 / 0.5525 GB, free: 48.26 MB / 366.1 MB Notification: Performance of matching and sorting (n=161): time 0.01035/0.4151, allocations: 6.173 MB / 0.5585 GB, free: 44.47 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.824e-05/0.4151, allocations: 72.38 kB / 0.5586 GB, free: 44.41 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002627/0.4178, allocations: 2.314 MB / 0.5609 GB, free: 43.16 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000103/0.4179, allocations: 49.61 kB / 0.5609 GB, free: 43.11 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007191/0.4186, allocations: 1.856 MB / 0.5627 GB, free: 41.48 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000274/0.4189, allocations: 0.5527 MB / 0.5633 GB, free: 41 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004782/0.4194, allocations: 395 kB / 0.5636 GB, free: 40.77 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 3.248e-05/0.4194, allocations: 306.2 kB / 0.5639 GB, free: 40.47 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001149/0.4206, allocations: 0.8595 MB / 0.5648 GB, free: 40.02 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001346/0.4219, allocations: 1.558 MB / 0.5663 GB, free: 38.64 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002564/0.4245, allocations: 2.573 MB / 0.5688 GB, free: 36.71 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.995e-06/0.4245, allocations: 7.938 kB / 0.5688 GB, free: 36.7 MB / 366.1 MB Notification: Performance of matching and sorting (n=276) (initialization): time 0.00372/0.4282, allocations: 2.897 MB / 0.5716 GB, free: 35.14 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.679e-05/0.4283, allocations: 17.22 kB / 0.5717 GB, free: 35.14 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.14e-05/0.4283, allocations: 29.66 kB / 0.5717 GB, free: 35.14 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002822/0.4286, allocations: 127.1 kB / 0.5718 GB, free: 35.08 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001724/0.4303, allocations: 0.5378 MB / 0.5723 GB, free: 34.95 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001201/0.4315, allocations: 1.841 MB / 0.5741 GB, free: 33.22 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001844/0.4334, allocations: 110 kB / 0.5742 GB, free: 33.17 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001264/0.4335, allocations: 98.61 kB / 0.5743 GB, free: 33.14 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 103 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (270): * Single equations (assignments): 268 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 1 system {(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,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001559/0.4351, allocations: 1.189 MB / 0.5755 GB, free: 31.99 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003616/0.4355, allocations: 245 kB / 0.5757 GB, free: 31.75 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003396/0.4389, allocations: 2.476 MB / 0.5781 GB, free: 29.21 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.297e-06/0.4389, allocations: 16 kB / 0.5782 GB, free: 29.2 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.764e-06/0.4389, allocations: 4 kB / 0.5782 GB, free: 29.2 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.266e-05/0.4389, allocations: 7.969 kB / 0.5782 GB, free: 29.19 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00811/0.4471, allocations: 5.827 MB / 0.5839 GB, free: 23.26 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.424e-06/0.4471, allocations: 3.719 kB / 0.5839 GB, free: 23.26 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001174/0.4483, allocations: 295.9 kB / 0.5841 GB, free: 22.97 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007991/0.4491, allocations: 314.2 kB / 0.5844 GB, free: 22.66 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001091/0.4492, allocations: 39.98 kB / 0.5845 GB, free: 22.62 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004832/0.4541, allocations: 6.413 MB / 0.5907 GB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.4541, allocations: 3.938 kB / 0.5907 GB, free: 15.81 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004962/0.4591, allocations: 3.587 MB / 0.5942 GB, free: 12.14 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001077/0.4602, allocations: 0.494 MB / 0.5947 GB, free: 11.63 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006047/0.4608, allocations: 35.98 kB / 0.5948 GB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001351/0.4621, allocations: 83.92 kB / 0.5948 GB, free: 11.51 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002586/0.4624, allocations: 117.1 kB / 0.595 GB, free: 11.4 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.506e-05/0.4625, allocations: 47.98 kB / 0.595 GB, free: 11.35 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002191/0.4647, allocations: 1.572 MB / 0.5965 GB, free: 9.766 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4647, allocations: 0 / 0.5965 GB, free: 9.766 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002283/0.467, allocations: 0.6758 MB / 0.5972 GB, free: 9.094 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (smee.inertiaRotor.w,smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smee.excitation.electroMagneticConverter.Phi.re,mechanicalSensor.flange_a.phi) * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (133): * Single equations (assignments): 130 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,5,100.0%), (1,8,100.0%), (2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004742/0.4718, allocations: 4.206 MB / 0.6013 GB, free: 4.793 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003034/0.4748, allocations: 2.283 MB / 0.6035 GB, free: 2.484 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.898e-06/0.4748, allocations: 0 / 0.6035 GB, free: 2.484 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001836/0.4767, allocations: 1.454 MB / 0.605 GB, free: 0.9961 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003206/0.4799, allocations: 0.5644 MB / 0.6055 GB, free: 444 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05154/0.5315, allocations: 29.62 MB / 0.6344 GB, free: 232 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002199/0.5337, allocations: 2.669 MB / 0.637 GB, free: 13.54 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001919/0.5356, allocations: 0.5599 MB / 0.6376 GB, free: 12.97 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001756/0.5374, allocations: 1.472 MB / 0.639 GB, free: 11.5 MB / 414.1 MB Notification: Performance of SimCode: time 5.91e-07/0.5374, allocations: 0 / 0.639 GB, free: 11.5 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08717/0.6246, allocations: 58.86 MB / 0.6965 GB, free: 1.016 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002578/0.6249, allocations: 212.3 kB / 0.6967 GB, free: 0.7617 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.86/3.485, allocations: 4 kB / 0.6967 GB, free: 0.7578 MB / 462.1 MB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_DOL_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMEE_DOL.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.pipe 2>&1)