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-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_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.006138/0.006137, allocations: 102.8 kB / 15.73 MB, free: 5.984 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.481/1.481, allocations: 222.9 MB / 239.4 MB, free: 4.527 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.001407/0.001407, allocations: 184.5 kB / 289.7 MB, free: 2.238 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0352/0.0352, allocations: 8.805 MB / 348.7 MB, free: 4.602 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001658/0.001658, allocations: 75.88 kB / 463.4 MB, free: 13.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1175/0.1191, allocations: 51.57 MB / 0.5029 GB, free: 10.07 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization1): time 0.01809/0.1373, allocations: 15.8 MB / 0.5184 GB, free: 10.19 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01191/0.1492, allocations: 5.274 MB / 0.5235 GB, free: 4.902 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004116/0.1534, allocations: 99.69 kB / 0.5236 GB, free: 4.805 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005374/0.1588, allocations: 1.208 MB / 0.5248 GB, free: 3.59 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/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.007156/0.166, allocations: 1.549 MB / 0.5263 GB, free: 2.031 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003489/0.1695, allocations: 0.9715 MB / 0.5272 GB, free: 1.062 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.3205/0.4901, allocations: 4.698 MB / 0.5318 GB, free: 5.59 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005416/0.4956, allocations: 3.515 MB / 0.5353 GB, free: 4.988 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004363/0.5, allocations: 2.115 MB / 0.5373 GB, free: 4.734 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005507/0.5055, allocations: 2.441 MB / 0.5397 GB, free: 4.305 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002075/0.5076, allocations: 0.5716 MB / 0.5403 GB, free: 4.305 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002981/0.5106, allocations: 0.7827 MB / 0.541 GB, free: 4.305 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001655/0.5123, allocations: 1.285 MB / 0.5423 GB, free: 4.156 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008862/0.5212, allocations: 2.44 MB / 0.5447 GB, free: 3.555 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01455/0.5357, allocations: 7.512 MB / 0.552 GB, free: 2.723 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.376e-05/0.5358, allocations: 0 / 0.552 GB, free: 2.723 MB / 366.1 MB Notification: Performance of FrontEnd: time 4.048e-06/0.5358, allocations: 1.188 kB / 0.552 GB, free: 2.723 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002696/0.5361, allocations: 4 kB / 0.552 GB, free: 2.719 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: 965 * Number of variables: 965 Notification: Performance of Generate backend data structure: time 0.02346/0.5596, allocations: 4.986 MB / 0.5569 GB, free: 15.77 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.249e-05/0.5597, allocations: 9.781 kB / 0.5569 GB, free: 15.77 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002929/0.5626, allocations: 0.5544 MB / 0.5574 GB, free: 15.38 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007093/0.5697, allocations: 0.9518 MB / 0.5584 GB, free: 14.93 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008592/0.5784, allocations: 2.834 MB / 0.5611 GB, free: 13.02 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002978/0.5787, allocations: 277 kB / 0.5614 GB, free: 12.9 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001214/0.5799, allocations: 368.9 kB / 0.5618 GB, free: 12.77 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0105/0.5904, allocations: 4.779 MB / 0.5664 GB, free: 9.969 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.885e-05/0.5906, allocations: 7.141 kB / 0.5664 GB, free: 9.965 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004017/0.591, allocations: 151.6 kB / 0.5666 GB, free: 9.848 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001704/0.5912, allocations: 152.1 kB / 0.5667 GB, free: 9.832 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007953/0.5991, allocations: 4.051 MB / 0.5707 GB, free: 6.82 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02788/0.627, allocations: 15.56 MB / 0.5859 GB, free: 7.074 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006756/0.6338, allocations: 6.933 MB / 0.5926 GB, free: 15.27 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002736/0.6366, allocations: 1.51 MB / 0.5941 GB, free: 13.77 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009892/0.6465, allocations: 4.145 MB / 0.5982 GB, free: 9.555 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.913e-05/0.6466, allocations: 47.88 kB / 0.5982 GB, free: 9.496 MB / 414.1 MB Notification: Performance of pre-optimization done (n=137): time 8.927e-06/0.6467, allocations: 1.125 kB / 0.5982 GB, free: 9.496 MB / 414.1 MB Notification: Performance of matching and sorting (n=159): time 0.01551/0.6622, allocations: 6.372 MB / 0.6044 GB, free: 3 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.195e-05/0.6623, allocations: 68.72 kB / 0.6045 GB, free: 2.922 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005291/0.6676, allocations: 2.18 MB / 0.6066 GB, free: 0.7109 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002731/0.6679, allocations: 49.7 kB / 0.6067 GB, free: 0.6562 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001549/0.6694, allocations: 1.74 MB / 0.6084 GB, free: 14.9 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006884/0.6701, allocations: 0.5477 MB / 0.6089 GB, free: 14.36 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007902/0.6709, allocations: 407.8 kB / 0.6093 GB, free: 13.95 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001167/0.6711, allocations: 307 kB / 0.6096 GB, free: 13.65 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001485/0.6726, allocations: 0.8242 MB / 0.6104 GB, free: 12.82 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002012/0.6746, allocations: 1.59 MB / 0.6119 GB, free: 10.89 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003551/0.6781, allocations: 2.591 MB / 0.6145 GB, free: 8.059 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.819e-05/0.6782, allocations: 4 kB / 0.6145 GB, free: 8.055 MB / 430.1 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.005496/0.6837, allocations: 3.025 MB / 0.6174 GB, free: 5.148 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.293e-05/0.6838, allocations: 23.94 kB / 0.6175 GB, free: 5.125 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.746e-05/0.6838, allocations: 24 kB / 0.6175 GB, free: 5.102 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009493/0.6848, allocations: 305 kB / 0.6178 GB, free: 4.797 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001942/0.6867, allocations: 0.4954 MB / 0.6183 GB, free: 4.336 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005321/0.6921, allocations: 4.875 MB / 0.623 GB, free: 15.21 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002485/0.6946, allocations: 103.8 kB / 0.6231 GB, free: 15.11 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002511/0.6948, allocations: 96 kB / 0.6232 GB, free: 15.02 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 111 * 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 (264): * Single equations (assignments): 261 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 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): 2 systems {(2,13,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002693/0.6975, allocations: 1.133 MB / 0.6243 GB, free: 13.91 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007844/0.6983, allocations: 237.1 kB / 0.6245 GB, free: 13.67 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004803/0.7031, allocations: 2.403 MB / 0.6269 GB, free: 11.23 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.8e-05/0.7032, allocations: 16 kB / 0.6269 GB, free: 11.21 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.808e-05/0.7032, allocations: 4 kB / 0.6269 GB, free: 11.21 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.555e-05/0.7032, allocations: 7.969 kB / 0.6269 GB, free: 11.2 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01275/0.716, allocations: 5.698 MB / 0.6325 GB, free: 5.43 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.86e-05/0.7161, allocations: 8 kB / 0.6325 GB, free: 5.422 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001298/0.7174, allocations: 273.7 kB / 0.6327 GB, free: 5.168 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001008/0.7184, allocations: 310.9 kB / 0.633 GB, free: 4.859 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001734/0.7186, allocations: 39.98 kB / 0.6331 GB, free: 4.82 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008491/0.7271, allocations: 7.019 MB / 0.6399 GB, free: 13.43 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.949e-06/0.7272, allocations: 4.031 kB / 0.6399 GB, free: 13.42 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006297/0.7335, allocations: 3.486 MB / 0.6433 GB, free: 9.863 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001464/0.735, allocations: 490.2 kB / 0.6438 GB, free: 9.363 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006895/0.7357, allocations: 32 kB / 0.6438 GB, free: 9.332 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00144/0.7371, allocations: 67.89 kB / 0.6439 GB, free: 9.266 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003063/0.7374, allocations: 121.1 kB / 0.644 GB, free: 9.148 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001177/0.7376, allocations: 39.98 kB / 0.6441 GB, free: 9.109 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002943/0.7405, allocations: 1.472 MB / 0.6455 GB, free: 7.621 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.7405, allocations: 0 / 0.6455 GB, free: 7.621 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002982/0.7435, allocations: 0.6484 MB / 0.6461 GB, free: 6.973 MB / 462.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 (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 {(2,12,100.0%), (1,5,100.0%), (1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.006085/0.7496, allocations: 4.12 MB / 0.6502 GB, free: 2.793 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004493/0.7541, allocations: 2.462 MB / 0.6526 GB, free: 376 kB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.184e-06/0.7542, allocations: 0 / 0.6526 GB, free: 376 kB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00222/0.7564, allocations: 1.415 MB / 0.6539 GB, free: 14.94 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003876/0.7603, allocations: 0.5724 MB / 0.6545 GB, free: 14.38 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04783/0.8081, allocations: 23.57 MB / 0.6775 GB, free: 5.828 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003617/0.8118, allocations: 2.515 MB / 0.68 GB, free: 3.281 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.002142/0.8139, allocations: 0.5196 MB / 0.6805 GB, free: 2.758 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002257/0.8162, allocations: 1.355 MB / 0.6818 GB, free: 1.402 MB / 494.1 MB Notification: Performance of SimCode: time 8.82e-07/0.8162, allocations: 0 / 0.6818 GB, free: 1.402 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3519/1.168, allocations: 58.23 MB / 0.7387 GB, free: 180.1 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.78/14.94, allocations: 10.64 kB / 0.7387 GB, free: 180.1 MB / 0.5294 GB (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/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)