Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.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/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/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_Synchronization2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Synchronization2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization2",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.0008979/0.000898, allocations: 92.31 kB / 15.06 MB, free: 1.098 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.404/1.404, allocations: 223.2 MB / 239 MB, free: 5.469 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.001197/0.001197, allocations: 172.5 kB / 290.3 MB, free: 2.156 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/package.mo): time 0.03236/0.03236, allocations: 8.782 MB / 350.1 MB, free: 4.68 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003947/0.0003948, allocations: 11.02 kB / 413.3 MB, free: 43.03 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09489/0.09531, allocations: 52.56 MB / 465.8 MB, free: 13.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization2): time 0.01462/0.11, allocations: 13.93 MB / 479.8 MB, free: 15.44 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009736/0.1198, allocations: 4.907 MB / 484.7 MB, free: 10.52 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002596/0.1224, allocations: 83.69 kB / 484.8 MB, free: 10.44 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003111/0.1255, allocations: 0.9284 MB / 485.7 MB, free: 9.504 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/SynchronousMachines/SMEE_Synchronization1.mo:18:3-19:30:writable] Warning: Conditional component ‘ir‘ is used in a non-connect context. Notification: Performance of NFTyping.typeBindings: time 0.004311/0.1299, allocations: 1.288 MB / 487 MB, free: 8.211 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002243/0.1321, allocations: 0.6595 MB / 487.6 MB, free: 7.555 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006653/0.1388, allocations: 4.656 MB / 492.3 MB, free: 2.887 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004976/0.1438, allocations: 2.441 MB / 494.7 MB, free: 404 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003286/0.1471, allocations: 1.467 MB / 496.2 MB, free: 14.92 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004005/0.1512, allocations: 1.895 MB / 498.1 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001585/0.1528, allocations: 236 kB / 498.3 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002462/0.1553, allocations: 431.8 kB / 498.7 MB, free: 12.37 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001737/0.157, allocations: 0.8834 MB / 499.6 MB, free: 11.48 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00209/0.1591, allocations: 0.8472 MB / 0.4887 GB, free: 10.62 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007561/0.1667, allocations: 6.104 MB / 0.4947 GB, free: 4.504 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.953e-06/0.1667, allocations: 4 kB / 0.4947 GB, free: 4.5 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.1668, allocations: 0 / 0.4947 GB, free: 4.5 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002499/0.167, allocations: 0 / 0.4947 GB, free: 4.5 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 965 * Number of variables: 965 Notification: Performance of Generate backend data structure: time 0.01171/0.1787, allocations: 4.257 MB / 0.4989 GB, free: 176 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.592e-05/0.1788, allocations: 8.031 kB / 0.4989 GB, free: 168 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001763/0.1806, allocations: 0.5569 MB / 0.4994 GB, free: 15.59 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005434/0.186, allocations: 0.9629 MB / 0.5004 GB, free: 14.63 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006296/0.1923, allocations: 2.587 MB / 0.5029 GB, free: 11.99 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003179/0.1927, allocations: 275.4 kB / 0.5031 GB, free: 11.72 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001093/0.1938, allocations: 375.9 kB / 0.5035 GB, free: 11.35 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01237/0.2062, allocations: 4.753 MB / 0.5081 GB, free: 6.555 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001942/0.2064, allocations: 3.906 kB / 0.5081 GB, free: 6.551 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001103/0.2076, allocations: 148 kB / 0.5083 GB, free: 6.406 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000209/0.2078, allocations: 167.3 kB / 0.5084 GB, free: 6.242 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008212/0.216, allocations: 4.03 MB / 0.5124 GB, free: 2.207 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02722/0.2432, allocations: 15.91 MB / 0.5279 GB, free: 1.805 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2073/0.4506, allocations: 6.923 MB / 0.5347 GB, free: 56.32 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002323/0.453, allocations: 1.538 MB / 0.5362 GB, free: 56.3 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00616/0.4591, allocations: 4.243 MB / 0.5403 GB, free: 55.53 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.868e-05/0.4592, allocations: 49.62 kB / 0.5404 GB, free: 55.49 MB / 366.1 MB Notification: Performance of pre-optimization done (n=137): time 4.409e-06/0.4592, allocations: 0 / 0.5404 GB, free: 55.49 MB / 366.1 MB Notification: Performance of matching and sorting (n=159): time 0.01226/0.4715, allocations: 6.514 MB / 0.5467 GB, free: 54.09 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.482e-05/0.4715, allocations: 71.56 kB / 0.5468 GB, free: 54.02 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00336/0.4749, allocations: 2.219 MB / 0.549 GB, free: 53.64 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.543e-05/0.475, allocations: 52.52 kB / 0.549 GB, free: 53.59 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001017/0.476, allocations: 1.709 MB / 0.5507 GB, free: 52.29 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003656/0.4764, allocations: 0.5434 MB / 0.5512 GB, free: 51.86 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.779e-05/0.4765, allocations: 41.03 kB / 0.5513 GB, free: 51.83 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001117/0.4766, allocations: 390.1 kB / 0.5516 GB, free: 51.49 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001245/0.4779, allocations: 0.8217 MB / 0.5524 GB, free: 51.17 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001511/0.4794, allocations: 1.478 MB / 0.5539 GB, free: 50.03 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001572/0.481, allocations: 1.095 MB / 0.5549 GB, free: 49.5 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.399e-05/0.481, allocations: 6.062 kB / 0.555 GB, free: 49.5 MB / 366.1 MB Notification: Performance of matching and sorting (n=270) (initialization): time 0.004396/0.4854, allocations: 2.951 MB / 0.5578 GB, free: 48.17 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.868e-05/0.4855, allocations: 11.78 kB / 0.5578 GB, free: 48.17 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.564e-05/0.4855, allocations: 24.12 kB / 0.5579 GB, free: 48.17 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007387/0.4863, allocations: 306.9 kB / 0.5582 GB, free: 48.05 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001605/0.4879, allocations: 483.4 kB / 0.5586 GB, free: 48.01 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003601/0.4915, allocations: 4.505 MB / 0.563 GB, free: 44.27 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001903/0.4934, allocations: 98 kB / 0.5631 GB, free: 44.23 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000188/0.4936, allocations: 90.55 kB / 0.5632 GB, free: 44.21 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 93 * 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 (250): * Single equations (assignments): 247 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 13,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001821/0.4954, allocations: 1.114 MB / 0.5643 GB, free: 43.58 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004128/0.4959, allocations: 236.4 kB / 0.5645 GB, free: 43.46 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003543/0.4994, allocations: 2.434 MB / 0.5669 GB, free: 42.23 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.198e-05/0.4994, allocations: 14.62 kB / 0.5669 GB, free: 42.23 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.308e-06/0.4995, allocations: 7.859 kB / 0.5669 GB, free: 42.23 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.271e-05/0.4995, allocations: 3.984 kB / 0.5669 GB, free: 42.23 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007201/0.5067, allocations: 5.797 MB / 0.5726 GB, free: 38.44 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.221e-06/0.5067, allocations: 3.938 kB / 0.5726 GB, free: 38.44 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001055/0.5078, allocations: 275.7 kB / 0.5728 GB, free: 38.17 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007056/0.5085, allocations: 333.6 kB / 0.5732 GB, free: 37.84 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.25e-05/0.5086, allocations: 35.98 kB / 0.5732 GB, free: 37.8 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004434/0.513, allocations: 6.444 MB / 0.5795 GB, free: 30.98 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.513, allocations: 4.031 kB / 0.5795 GB, free: 30.98 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004115/0.5172, allocations: 3.522 MB / 0.5829 GB, free: 27.37 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008135/0.518, allocations: 0.4943 MB / 0.5834 GB, free: 26.86 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002637/0.5183, allocations: 36 kB / 0.5834 GB, free: 26.82 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009258/0.5192, allocations: 71.91 kB / 0.5835 GB, free: 26.75 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001944/0.5194, allocations: 121.1 kB / 0.5836 GB, free: 26.63 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.808e-05/0.5195, allocations: 39.98 kB / 0.5837 GB, free: 26.59 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001767/0.5213, allocations: 1.503 MB / 0.5851 GB, free: 25.07 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5213, allocations: 0 / 0.5851 GB, free: 25.07 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002086/0.5234, allocations: 0.6591 MB / 0.5858 GB, free: 24.41 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (smee.inertiaRotor.w,smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.stator.stray.Phi.re,smee.stator.stray.Phi.im,constantTorque.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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 12,(1,100.0%) 5,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004368/0.5277, allocations: 4.146 MB / 0.5898 GB, free: 20.18 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003253/0.531, allocations: 2.439 MB / 0.5922 GB, free: 17.7 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.51e-06/0.531, allocations: 128 / 0.5922 GB, free: 17.7 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001714/0.5328, allocations: 1.416 MB / 0.5936 GB, free: 16.25 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002452/0.5352, allocations: 0.5511 MB / 0.5941 GB, free: 15.7 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03628/0.5715, allocations: 19.69 MB / 0.6134 GB, free: 10.59 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002812/0.5744, allocations: 2.523 MB / 0.6158 GB, free: 8.039 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001905/0.5763, allocations: 0.5077 MB / 0.6163 GB, free: 7.527 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001644/0.578, allocations: 1.351 MB / 0.6176 GB, free: 6.176 MB / 382.1 MB Notification: Performance of SimCode: time 6.32e-07/0.578, allocations: 4 kB / 0.6176 GB, free: 6.172 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08728/0.6652, allocations: 55.69 MB / 0.672 GB, free: 14.92 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001686/0.6655, allocations: 222.1 kB / 0.6722 GB, free: 14.68 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.785/3.45, allocations: 5.312 kB / 0.6722 GB, free: 14.68 MB / 446.1 MB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization2_fmu --startTime=0 --stopTime=0.3 --timeout=50 --tolerance=1e-08 HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization2.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe 2>&1) Environment - environmentSimulation: