Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.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_Synchronization1,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Synchronization1,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization1",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.001076/0.001076, allocations: 99.55 kB / 15.05 MB, free: 1.105 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.382/1.382, allocations: 223.2 MB / 238.9 MB, free: 5.664 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.001414/0.001414, allocations: 185 kB / 290.2 MB, free: 2.348 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/package.mo): time 0.03242/0.03242, allocations: 8.788 MB / 350 MB, free: 4.754 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003926/0.0003926, allocations: 9.969 kB / 413.2 MB, free: 43.09 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1129/0.1133, allocations: 52.56 MB / 465.7 MB, free: 13.53 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization1): time 0.01312/0.1264, allocations: 12.72 MB / 478.4 MB, free: 0.7656 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01088/0.1373, allocations: 5.041 MB / 483.5 MB, free: 11.71 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002744/0.1401, allocations: 75.75 kB / 483.6 MB, free: 11.64 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002888/0.143, allocations: 0.929 MB / 484.5 MB, free: 10.7 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.004779/0.1478, allocations: 1.386 MB / 485.9 MB, free: 9.312 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002219/0.15, allocations: 0.6684 MB / 486.5 MB, free: 8.648 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006092/0.1562, allocations: 3.184 MB / 489.7 MB, free: 5.465 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003273/0.1595, allocations: 2.448 MB / 492.2 MB, free: 2.965 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002292/0.1618, allocations: 1.432 MB / 493.6 MB, free: 1.527 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003036/0.1648, allocations: 1.712 MB / 495.3 MB, free: 15.81 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007581/0.1656, allocations: 236 kB / 495.5 MB, free: 15.58 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001663/0.1673, allocations: 419.7 kB / 496 MB, free: 15.17 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007884/0.1681, allocations: 0.8487 MB / 496.8 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001208/0.1693, allocations: 0.8434 MB / 497.6 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006884/0.1762, allocations: 6.069 MB / 0.4919 GB, free: 7.379 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.1762, allocations: 4 kB / 0.4919 GB, free: 7.375 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.725e-06/0.1762, allocations: 0 / 0.4919 GB, free: 7.375 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002452/0.1765, allocations: 0 / 0.4919 GB, free: 7.375 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.01217/0.1887, allocations: 4.245 MB / 0.4961 GB, free: 3.059 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.723e-05/0.1887, allocations: 8.031 kB / 0.4961 GB, free: 3.051 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001718/0.1905, allocations: 0.5568 MB / 0.4966 GB, free: 2.484 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00535/0.1958, allocations: 0.9591 MB / 0.4975 GB, free: 1.52 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006265/0.2021, allocations: 2.611 MB / 0.5001 GB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002759/0.2024, allocations: 279.4 kB / 0.5004 GB, free: 14.58 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001083/0.2035, allocations: 371.9 kB / 0.5007 GB, free: 14.22 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01001/0.2135, allocations: 4.722 MB / 0.5053 GB, free: 9.453 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.596e-05/0.2136, allocations: 7.906 kB / 0.5053 GB, free: 9.445 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003203/0.214, allocations: 148 kB / 0.5055 GB, free: 9.301 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001446/0.2141, allocations: 159.4 kB / 0.5056 GB, free: 9.145 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00751/0.2216, allocations: 4.03 MB / 0.5096 GB, free: 5.109 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02544/0.2471, allocations: 15.89 MB / 0.5251 GB, free: 4.723 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2209/0.468, allocations: 6.92 MB / 0.5318 GB, free: 56.81 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006703/0.4748, allocations: 3.582 MB / 0.5353 GB, free: 56.15 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.995e-05/0.4749, allocations: 52.12 kB / 0.5354 GB, free: 56.11 MB / 366.1 MB Notification: Performance of pre-optimization done (n=149): time 4.679e-06/0.4749, allocations: 0.75 kB / 0.5354 GB, free: 56.11 MB / 366.1 MB Notification: Performance of matching and sorting (n=172): time 0.01506/0.49, allocations: 6.915 MB / 0.5421 GB, free: 54.58 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.989e-05/0.4901, allocations: 69.91 kB / 0.5422 GB, free: 54.52 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004154/0.4942, allocations: 2.175 MB / 0.5443 GB, free: 54.28 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002495/0.4945, allocations: 54.61 kB / 0.5444 GB, free: 54.25 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001404/0.4959, allocations: 1.687 MB / 0.546 GB, free: 53.46 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005174/0.4964, allocations: 0.5831 MB / 0.5466 GB, free: 53.09 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001045/0.4965, allocations: 41.09 kB / 0.5466 GB, free: 53.06 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001516/0.4967, allocations: 389.4 kB / 0.547 GB, free: 52.72 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001516/0.4982, allocations: 0.859 MB / 0.5479 GB, free: 52.38 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001679/0.4999, allocations: 1.492 MB / 0.5493 GB, free: 51.25 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001658/0.5016, allocations: 1.123 MB / 0.5504 GB, free: 50.74 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.318e-05/0.5016, allocations: 5.5 kB / 0.5504 GB, free: 50.74 MB / 366.1 MB Notification: Performance of matching and sorting (n=278) (initialization): time 0.00537/0.507, allocations: 3.021 MB / 0.5534 GB, free: 49.38 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.764e-05/0.507, allocations: 13.12 kB / 0.5534 GB, free: 49.38 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.082e-05/0.5071, allocations: 19.78 kB / 0.5534 GB, free: 49.38 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008416/0.508, allocations: 296.7 kB / 0.5537 GB, free: 49.27 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001739/0.5097, allocations: 0.4972 MB / 0.5542 GB, free: 49.22 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003635/0.5134, allocations: 4.543 MB / 0.5586 GB, free: 45.47 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001914/0.5153, allocations: 94.78 kB / 0.5587 GB, free: 45.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001558/0.5155, allocations: 95.05 kB / 0.5588 GB, free: 45.41 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 88 * 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 (258): * Single equations (assignments): 255 * 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.001992/0.5175, allocations: 1.121 MB / 0.5599 GB, free: 44.78 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004915/0.518, allocations: 239.2 kB / 0.5601 GB, free: 44.66 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003697/0.5217, allocations: 2.565 MB / 0.5626 GB, free: 43.39 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.227e-05/0.5217, allocations: 15.38 kB / 0.5626 GB, free: 43.39 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.997e-06/0.5217, allocations: 3.812 kB / 0.5626 GB, free: 43.39 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.541e-05/0.5217, allocations: 8.672 kB / 0.5626 GB, free: 43.39 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008646/0.5304, allocations: 6.069 MB / 0.5686 GB, free: 39.59 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.498e-06/0.5304, allocations: 5.469 kB / 0.5686 GB, free: 39.59 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001192/0.5316, allocations: 310.9 kB / 0.5689 GB, free: 39.52 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007339/0.5324, allocations: 321.1 kB / 0.5692 GB, free: 39.34 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.762e-05/0.5325, allocations: 39.36 kB / 0.5692 GB, free: 39.31 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004672/0.5371, allocations: 6.505 MB / 0.5756 GB, free: 33.09 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.661e-06/0.5372, allocations: 7.141 kB / 0.5756 GB, free: 33.09 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004722/0.5419, allocations: 3.884 MB / 0.5794 GB, free: 29.05 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001207/0.5431, allocations: 0.5063 MB / 0.5799 GB, free: 28.53 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002812/0.5434, allocations: 39.92 kB / 0.5799 GB, free: 28.49 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001024/0.5444, allocations: 83.91 kB / 0.58 GB, free: 28.41 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002439/0.5447, allocations: 117.1 kB / 0.5801 GB, free: 28.29 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.254e-05/0.5448, allocations: 51.98 kB / 0.5801 GB, free: 28.24 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001841/0.5466, allocations: 1.476 MB / 0.5816 GB, free: 26.75 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.5466, allocations: 0 / 0.5816 GB, free: 26.75 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002257/0.5489, allocations: 0.663 MB / 0.5822 GB, free: 26.09 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (146): * Single equations (assignments): 143 * 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.004697/0.5536, allocations: 5.068 MB / 0.5872 GB, free: 20.88 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003343/0.557, allocations: 2.517 MB / 0.5896 GB, free: 18.32 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.322e-06/0.557, allocations: 4 kB / 0.5896 GB, free: 18.32 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001726/0.5587, allocations: 1.489 MB / 0.5911 GB, free: 16.8 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002697/0.5615, allocations: 0.5368 MB / 0.5916 GB, free: 16.28 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04268/0.6042, allocations: 32.75 MB / 0.6236 GB, free: 14.01 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002274/0.6065, allocations: 2.589 MB / 0.6261 GB, free: 11.39 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.002061/0.6086, allocations: 0.5157 MB / 0.6266 GB, free: 10.87 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001689/0.6103, allocations: 1.347 MB / 0.6279 GB, free: 9.52 MB / 398.1 MB Notification: Performance of SimCode: time 8.21e-07/0.6103, allocations: 0 / 0.6279 GB, free: 9.52 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08599/0.6963, allocations: 55.92 MB / 0.6825 GB, free: 2.039 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001689/0.6965, allocations: 210.4 kB / 0.6827 GB, free: 1.797 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.734/3.431, allocations: 0 / 0.6827 GB, free: 1.797 MB / 446.1 MB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization1_fmu --startTime=0 --stopTime=0.3 --timeout=50 --tolerance=1e-08 HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization1.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe 2>&1) Environment - environmentSimulation: