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.001392/0.001392, allocations: 101.5 kB / 19.73 MB, free: 2.23 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.529/1.529, allocations: 230.6 MB / 253.4 MB, free: 14.43 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.001842/0.001842, allocations: 213.8 kB / 310 MB, free: 3.16 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.04044/0.04044, allocations: 8.925 MB / 375.4 MB, free: 6.746 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Synchronization1,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization1",fmuType="cs",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.003162/0.003162, allocations: 86.08 kB / 0.49 GB, free: 44.87 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1404/0.1436, allocations: 55.61 MB / 0.5443 GB, free: 5.168 MB / 366.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization1): time 0.02127/0.1649, allocations: 16.56 MB / 0.5605 GB, free: 4.527 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.3215/0.4863, allocations: 5.596 MB / 0.5659 GB, free: 9.438 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003849/0.4902, allocations: 115.4 kB / 0.566 GB, free: 9.438 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004851/0.495, allocations: 1.264 MB / 0.5673 GB, free: 9.43 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/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.006148/0.5012, allocations: 1.602 MB / 0.5688 GB, free: 9.398 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003413/0.5046, allocations: 1.039 MB / 0.5699 GB, free: 9.379 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.007997/0.5126, allocations: 4.758 MB / 0.5745 GB, free: 8.785 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005405/0.518, allocations: 1.995 MB / 0.5765 GB, free: 8.535 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005515/0.5235, allocations: 2.17 MB / 0.5786 GB, free: 8.02 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006499/0.53, allocations: 2.598 MB / 0.5811 GB, free: 6.852 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002792/0.5328, allocations: 0.5715 MB / 0.5817 GB, free: 6.852 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004213/0.537, allocations: 0.8102 MB / 0.5825 GB, free: 6.773 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003105/0.5401, allocations: 1.31 MB / 0.5837 GB, free: 5.938 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007412/0.5475, allocations: 2.45 MB / 0.5861 GB, free: 4.316 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01741/0.5649, allocations: 7.566 MB / 0.5935 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.075e-06/0.565, allocations: 1.094 kB / 0.5935 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.746e-06/0.565, allocations: 0 / 0.5935 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000361/0.5653, allocations: 0 / 0.5935 GB, free: 0.5391 MB / 382.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.02364/0.589, allocations: 5.05 MB / 0.5985 GB, free: 13.18 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.633e-05/0.589, allocations: 13.45 kB / 0.5985 GB, free: 13.18 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0002973/0.5893, allocations: 113 kB / 0.5986 GB, free: 13.15 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003166/0.5925, allocations: 0.5647 MB / 0.5991 GB, free: 12.75 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007913/0.6004, allocations: 0.9705 MB / 0.6001 GB, free: 12.29 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01025/0.6107, allocations: 2.815 MB / 0.6028 GB, free: 10.37 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000386/0.611, allocations: 278.3 kB / 0.6031 GB, free: 10.24 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00176/0.6128, allocations: 371.7 kB / 0.6034 GB, free: 10.12 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01625/0.6291, allocations: 4.784 MB / 0.6081 GB, free: 7.305 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000186/0.6292, allocations: 6.922 kB / 0.6081 GB, free: 7.301 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001473/0.6307, allocations: 151.6 kB / 0.6083 GB, free: 7.184 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001925/0.6309, allocations: 157.9 kB / 0.6084 GB, free: 7.164 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01137/0.6423, allocations: 4.057 MB / 0.6124 GB, free: 4.133 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03788/0.6802, allocations: 15.15 MB / 0.6272 GB, free: 4.719 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005961/0.6861, allocations: 2.737 MB / 0.6298 GB, free: 2.137 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004175/0.6903, allocations: 1.814 MB / 0.6316 GB, free: 344 kB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009958/0.7003, allocations: 4.079 MB / 0.6356 GB, free: 12.27 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.435e-05/0.7003, allocations: 47.88 kB / 0.6356 GB, free: 12.21 MB / 430.1 MB Notification: Performance of pre-optimization done (n=137): time 3.817e-06/0.7003, allocations: 4 kB / 0.6356 GB, free: 12.21 MB / 430.1 MB Notification: Performance of matching and sorting (n=159): time 0.01708/0.7174, allocations: 6.234 MB / 0.6417 GB, free: 5.949 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.217e-05/0.7175, allocations: 68.72 kB / 0.6418 GB, free: 5.867 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005034/0.7225, allocations: 2.221 MB / 0.644 GB, free: 3.617 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005827/0.7231, allocations: 57.7 kB / 0.644 GB, free: 3.555 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001775/0.7248, allocations: 1.799 MB / 0.6458 GB, free: 1.75 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009461/0.7258, allocations: 0.5742 MB / 0.6463 GB, free: 1.184 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007563/0.7266, allocations: 412.1 kB / 0.6467 GB, free: 0.7734 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001427/0.7267, allocations: 301.1 kB / 0.647 GB, free: 488 kB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001588/0.7283, allocations: 0.8438 MB / 0.6478 GB, free: 15.63 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002551/0.7308, allocations: 1.612 MB / 0.6494 GB, free: 13.66 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004475/0.7353, allocations: 2.622 MB / 0.652 GB, free: 10.7 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.66e-05/0.7353, allocations: 8 kB / 0.652 GB, free: 10.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=285) (initialization): time 0.006992/0.7423, allocations: 3.053 MB / 0.655 GB, free: 7.625 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.223e-05/0.7424, allocations: 20.12 kB / 0.655 GB, free: 7.605 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.606e-05/0.7424, allocations: 24 kB / 0.655 GB, free: 7.582 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001023/0.7434, allocations: 343.1 kB / 0.6553 GB, free: 7.238 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002121/0.7456, allocations: 0.507 MB / 0.6558 GB, free: 6.73 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006543/0.7521, allocations: 5.061 MB / 0.6608 GB, free: 1.457 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002607/0.7547, allocations: 99.94 kB / 0.6609 GB, free: 1.359 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004207/0.7551, allocations: 108 kB / 0.661 GB, free: 1.254 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 112 * 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 (262): * Single equations (assignments): 259 * 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.002975/0.7581, allocations: 1.134 MB / 0.6621 GB, free: 112 kB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008704/0.759, allocations: 254.5 kB / 0.6623 GB, free: 15.86 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004948/0.7639, allocations: 2.319 MB / 0.6646 GB, free: 13.52 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.925e-05/0.7639, allocations: 16 kB / 0.6646 GB, free: 13.5 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.384e-05/0.764, allocations: 8 kB / 0.6646 GB, free: 13.49 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.944e-05/0.764, allocations: 7.969 kB / 0.6646 GB, free: 13.48 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01302/0.777, allocations: 5.656 MB / 0.6701 GB, free: 7.777 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-05/0.777, allocations: 192 / 0.6701 GB, free: 7.777 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001463/0.7785, allocations: 267.7 kB / 0.6704 GB, free: 7.516 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001178/0.7796, allocations: 373.3 kB / 0.6708 GB, free: 7.145 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002205/0.7799, allocations: 39.98 kB / 0.6708 GB, free: 7.105 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009293/0.7892, allocations: 7.092 MB / 0.6777 GB, free: 15.68 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.412e-06/0.7892, allocations: 8.438 kB / 0.6777 GB, free: 15.67 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007255/0.7964, allocations: 3.443 MB / 0.6811 GB, free: 12.18 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002063/0.7985, allocations: 446.2 kB / 0.6815 GB, free: 11.74 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00072/0.7992, allocations: 28 kB / 0.6815 GB, free: 11.71 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001337/0.8005, allocations: 67.89 kB / 0.6816 GB, free: 11.65 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003985/0.8009, allocations: 125 kB / 0.6817 GB, free: 11.52 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001105/0.8011, allocations: 47.98 kB / 0.6818 GB, free: 11.48 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.002999/0.8041, allocations: 1.492 MB / 0.6832 GB, free: 9.969 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.8041, allocations: 8 kB / 0.6832 GB, free: 9.961 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003815/0.8079, allocations: 0.6523 MB / 0.6839 GB, free: 9.309 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.007151/0.815, allocations: 4.065 MB / 0.6878 GB, free: 5.195 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.005029/0.82, allocations: 2.34 MB / 0.6901 GB, free: 2.828 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.397e-05/0.8201, allocations: 6 kB / 0.6901 GB, free: 2.824 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002654/0.8227, allocations: 1.366 MB / 0.6915 GB, free: 1.418 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003853/0.8266, allocations: 0.5788 MB / 0.692 GB, free: 0.8438 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05449/0.8811, allocations: 23.84 MB / 0.7153 GB, free: 7.926 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003051/0.8841, allocations: 2.527 MB / 0.7178 GB, free: 5.371 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.002148/0.8863, allocations: 0.52 MB / 0.7183 GB, free: 4.848 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002599/0.8889, allocations: 1.366 MB / 0.7196 GB, free: 3.48 MB / 0.4981 GB Notification: Performance of SimCode: time 1.633e-06/0.8889, allocations: 0 / 0.7196 GB, free: 3.48 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.434/1.323, allocations: 60.8 MB / 0.779 GB, free: 179.1 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.64/17.96, allocations: 8.969 kB / 0.779 GB, free: 179.1 MB / 0.545 GB " [Timeout remaining time 642] (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: 21.67646170593798] Failed to read output from testmodel.py, exit status != 0: 18.164914908935316 18.177475533 17.609334417 Calling exit ...