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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001255/0.001255, allocations: 99.64 kB / 18.94 MB, free: 2.551 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.358/1.358, allocations: 230.6 MB / 252.7 MB, free: 8.066 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0016/0.0016, allocations: 211.1 kB / 309.2 MB, free: 2.934 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo): time 0.04049/0.04049, allocations: 8.91 MB / 374.6 MB, free: 1.715 MB / 302.1 MB " [Timeout remaining time 180] Using package HanserModelica with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: HanserModelica requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: HanserModelica requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002473/0.002473, allocations: 83.88 kB / 0.4892 GB, free: 7.168 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2355/0.238, allocations: 55.59 MB / 0.5435 GB, free: 26.48 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization1): time 0.01259/0.2506, allocations: 14.3 MB / 0.5574 GB, free: 17.01 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.008389/0.259, allocations: 5.276 MB / 0.5626 GB, free: 13.27 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002808/0.2618, allocations: 116.1 kB / 0.5627 GB, free: 13.22 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003384/0.2651, allocations: 1.215 MB / 0.5639 GB, free: 12.62 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00498/0.2701, allocations: 1.583 MB / 0.5654 GB, free: 11.58 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002744/0.2729, allocations: 0.998 MB / 0.5664 GB, free: 10.96 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006436/0.2793, allocations: 4.746 MB / 0.571 GB, free: 8.496 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004259/0.2836, allocations: 1.904 MB / 0.5729 GB, free: 7.496 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003962/0.2875, allocations: 2.175 MB / 0.575 GB, free: 6.426 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005073/0.2926, allocations: 2.439 MB / 0.5774 GB, free: 5.34 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001558/0.2942, allocations: 0.5685 MB / 0.5779 GB, free: 5.34 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002754/0.2969, allocations: 0.7858 MB / 0.5787 GB, free: 5.27 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001788/0.2987, allocations: 1.3 MB / 0.58 GB, free: 4.426 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004081/0.3028, allocations: 1.947 MB / 0.5819 GB, free: 3.254 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008606/0.3114, allocations: 7.589 MB / 0.5893 GB, free: 13.57 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.3114, allocations: 0 / 0.5893 GB, free: 13.57 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.797e-06/0.3114, allocations: 3.984 kB / 0.5893 GB, free: 13.57 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002258/0.3116, allocations: 0 / 0.5893 GB, free: 13.57 MB / 398.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.01408/0.3257, allocations: 5.042 MB / 0.5942 GB, free: 8.613 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.71e-05/0.3258, allocations: 12.03 kB / 0.5942 GB, free: 8.602 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009574/0.3267, allocations: 0.557 MB / 0.5948 GB, free: 8.035 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004951/0.3317, allocations: 0.9857 MB / 0.5957 GB, free: 7.047 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006347/0.338, allocations: 2.794 MB / 0.5985 GB, free: 4.211 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002462/0.3383, allocations: 275.8 kB / 0.5987 GB, free: 3.941 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000803/0.3391, allocations: 383.9 kB / 0.5991 GB, free: 3.566 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009337/0.3484, allocations: 4.923 MB / 0.6039 GB, free: 14.56 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.374e-05/0.3485, allocations: 8 kB / 0.6039 GB, free: 14.55 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003595/0.3488, allocations: 148 kB / 0.6041 GB, free: 14.41 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001665/0.349, allocations: 155.3 kB / 0.6042 GB, free: 14.26 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007825/0.3568, allocations: 4.042 MB / 0.6082 GB, free: 10.21 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.026/0.3828, allocations: 13.81 MB / 0.6216 GB, free: 11.98 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005036/0.3879, allocations: 2.749 MB / 0.6243 GB, free: 9.344 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003635/0.3915, allocations: 1.807 MB / 0.6261 GB, free: 7.539 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007912/0.3994, allocations: 3.698 MB / 0.6297 GB, free: 3.801 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.758e-05/0.3995, allocations: 47.88 kB / 0.6297 GB, free: 3.746 MB / 430.1 MB Notification: Performance of pre-optimization done (n=137): time 4.779e-06/0.3995, allocations: 0 / 0.6297 GB, free: 3.746 MB / 430.1 MB Notification: Performance of matching and sorting (n=159): time 0.01371/0.4132, allocations: 6.234 MB / 0.6358 GB, free: 13.48 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.031e-05/0.4132, allocations: 76.72 kB / 0.6359 GB, free: 13.39 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003914/0.4172, allocations: 2.255 MB / 0.6381 GB, free: 11.1 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002887/0.4174, allocations: 53.7 kB / 0.6382 GB, free: 11.04 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001488/0.4189, allocations: 1.799 MB / 0.6399 GB, free: 9.227 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006959/0.4196, allocations: 0.5733 MB / 0.6405 GB, free: 8.648 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006772/0.4203, allocations: 408.1 kB / 0.6409 GB, free: 8.242 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001218/0.4204, allocations: 301.1 kB / 0.6412 GB, free: 7.945 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001472/0.4219, allocations: 0.8398 MB / 0.642 GB, free: 7.102 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002112/0.424, allocations: 1.627 MB / 0.6436 GB, free: 5.121 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003622/0.4276, allocations: 2.604 MB / 0.6461 GB, free: 2.176 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.818e-05/0.4277, allocations: 15.98 kB / 0.6461 GB, free: 2.16 MB / 446.1 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.005413/0.4331, allocations: 3.053 MB / 0.6491 GB, free: 15.09 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.12e-05/0.4331, allocations: 16 kB / 0.6491 GB, free: 15.07 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.082e-05/0.4331, allocations: 24 kB / 0.6491 GB, free: 15.05 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009344/0.4341, allocations: 354.5 kB / 0.6495 GB, free: 14.69 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001738/0.4358, allocations: 0.4953 MB / 0.65 GB, free: 14.2 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005743/0.4415, allocations: 5.018 MB / 0.6549 GB, free: 8.953 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001947/0.4435, allocations: 107.9 kB / 0.655 GB, free: 8.848 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001944/0.4437, allocations: 108 kB / 0.6551 GB, free: 8.742 MB / 462.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 (261): * Single equations (assignments): 258 * 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,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001976/0.4457, allocations: 1.133 MB / 0.6562 GB, free: 7.598 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004267/0.4461, allocations: 246.5 kB / 0.6564 GB, free: 7.355 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004162/0.4502, allocations: 2.313 MB / 0.6587 GB, free: 5.016 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.678e-05/0.4503, allocations: 16 kB / 0.6587 GB, free: 5 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.012e-05/0.4503, allocations: 8 kB / 0.6587 GB, free: 4.992 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.461e-05/0.4503, allocations: 11.97 kB / 0.6587 GB, free: 4.98 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009151/0.4594, allocations: 5.295 MB / 0.6639 GB, free: 15.59 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.365e-06/0.4594, allocations: 4.188 kB / 0.6639 GB, free: 15.59 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001176/0.4606, allocations: 267.7 kB / 0.6641 GB, free: 15.33 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009298/0.4616, allocations: 366.8 kB / 0.6645 GB, free: 14.96 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001031/0.4617, allocations: 43.98 kB / 0.6645 GB, free: 14.92 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007574/0.4692, allocations: 7.028 MB / 0.6714 GB, free: 7.555 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.4692, allocations: 0 / 0.6714 GB, free: 7.555 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005785/0.475, allocations: 3.445 MB / 0.6748 GB, free: 4.066 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00132/0.4763, allocations: 446.3 kB / 0.6752 GB, free: 3.629 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002933/0.4766, allocations: 28 kB / 0.6752 GB, free: 3.602 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001006/0.4776, allocations: 63.95 kB / 0.6753 GB, free: 3.539 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002669/0.4779, allocations: 125 kB / 0.6754 GB, free: 3.414 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000103/0.478, allocations: 47.98 kB / 0.6754 GB, free: 3.367 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.002282/0.4803, allocations: 1.488 MB / 0.6769 GB, free: 1.863 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4803, allocations: 0 / 0.6769 GB, free: 1.863 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002292/0.4826, allocations: 0.6601 MB / 0.6775 GB, free: 1.203 MB / 478.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 (130): * Single equations (assignments): 127 * 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,8,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.005818/0.4884, allocations: 4.077 MB / 0.6815 GB, free: 13.07 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.003953/0.4924, allocations: 2.338 MB / 0.6838 GB, free: 10.71 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.4924, allocations: 448 / 0.6838 GB, free: 10.71 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002144/0.4945, allocations: 1.365 MB / 0.6851 GB, free: 9.305 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002601/0.4971, allocations: 0.5897 MB / 0.6857 GB, free: 8.719 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2166/0.7137, allocations: 23.76 MB / 0.7089 GB, free: 115.7 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001664/0.7154, allocations: 1.981 MB / 0.7108 GB, free: 115.2 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.001432/0.7168, allocations: 0.5153 MB / 0.7113 GB, free: 115.2 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001361/0.7182, allocations: 1.37 MB / 0.7127 GB, free: 114 MB / 494.1 MB Notification: Performance of SimCode: time 8.81e-07/0.7182, allocations: 2.969 kB / 0.7127 GB, free: 114 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09941/0.8176, allocations: 61.8 MB / 0.773 GB, free: 68.54 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.47/14.29, allocations: 8 kB / 0.773 GB, free: 68.53 MB / 494.1 MB " [Timeout remaining time 646] (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 --stepSize=0.000100033 --timeout=50 --tolerance=1e-08 HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization1.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 17.145585376769304] Failed to read output from testmodel.py, exit status != 0: 14.43383197626099 14.448619186 14.134651051 Calling exit ...