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.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.00144/0.00144, allocations: 116.7 kB / 17.17 MB, free: 5.977 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.51/1.51, allocations: 230.6 MB / 250.5 MB, free: 9.207 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.001628/0.001628, allocations: 213 kB / 306.7 MB, free: 4.289 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.04166/0.04166, allocations: 8.903 MB / 371.7 MB, free: 3.422 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_Synchronization2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization2",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Synchronization2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization2",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.002712/0.002712, allocations: 83.88 kB / 496.5 MB, free: 9.801 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3212/0.3239, allocations: 55.57 MB / 0.5391 GB, free: 26.61 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization2): time 0.01405/0.3379, allocations: 16.52 MB / 0.5552 GB, free: 14.76 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01121/0.3492, allocations: 5.578 MB / 0.5607 GB, free: 10.67 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004161/0.3533, allocations: 114.3 kB / 0.5608 GB, free: 10.63 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004222/0.3575, allocations: 1.277 MB / 0.562 GB, free: 9.965 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.006584/0.3641, allocations: 1.583 MB / 0.5636 GB, free: 8.914 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003533/0.3677, allocations: 1.03 MB / 0.5646 GB, free: 8.262 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.007971/0.3756, allocations: 4.743 MB / 0.5692 GB, free: 5.801 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004617/0.3802, allocations: 2.462 MB / 0.5716 GB, free: 4.637 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005276/0.3855, allocations: 2.175 MB / 0.5738 GB, free: 3.562 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006148/0.3917, allocations: 2.592 MB / 0.5763 GB, free: 2.305 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002554/0.3942, allocations: 0.5788 MB / 0.5769 GB, free: 2.297 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004097/0.3983, allocations: 0.8049 MB / 0.5776 GB, free: 2.215 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00242/0.4007, allocations: 1.295 MB / 0.5789 GB, free: 1.379 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007354/0.4081, allocations: 2.457 MB / 0.5813 GB, free: 15.73 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01592/0.424, allocations: 7.565 MB / 0.5887 GB, free: 10.38 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.063e-06/0.424, allocations: 0 / 0.5887 GB, free: 10.38 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.786e-06/0.424, allocations: 1.156 kB / 0.5887 GB, free: 10.38 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002941/0.4243, allocations: 0 / 0.5887 GB, free: 10.38 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.02026/0.4446, allocations: 5.136 MB / 0.5937 GB, free: 5.996 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.642e-05/0.4446, allocations: 12.03 kB / 0.5937 GB, free: 5.984 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0002017/0.4448, allocations: 106.2 kB / 0.5938 GB, free: 5.879 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001986/0.4468, allocations: 0.5609 MB / 0.5944 GB, free: 5.309 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006689/0.4535, allocations: 0.978 MB / 0.5953 GB, free: 4.328 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008608/0.4621, allocations: 2.885 MB / 0.5981 GB, free: 1.391 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003838/0.4625, allocations: 275.6 kB / 0.5984 GB, free: 1.121 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001525/0.464, allocations: 371.9 kB / 0.5988 GB, free: 0.7578 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01812/0.4822, allocations: 4.784 MB / 0.6034 GB, free: 11.93 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001593/0.4823, allocations: 8 kB / 0.6034 GB, free: 11.92 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001094/0.4834, allocations: 156 kB / 0.6036 GB, free: 11.77 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002113/0.4836, allocations: 159.3 kB / 0.6037 GB, free: 11.61 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01269/0.4963, allocations: 4.058 MB / 0.6077 GB, free: 7.551 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0356/0.5319, allocations: 15.95 MB / 0.6233 GB, free: 7.031 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009087/0.541, allocations: 7.033 MB / 0.6301 GB, free: 15.07 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004688/0.5457, allocations: 1.826 MB / 0.6319 GB, free: 13.24 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01289/0.5586, allocations: 4.714 MB / 0.6365 GB, free: 8.324 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.967e-05/0.5587, allocations: 55.88 kB / 0.6366 GB, free: 8.258 MB / 446.1 MB Notification: Performance of pre-optimization done (n=137): time 8.445e-06/0.5587, allocations: 0 / 0.6366 GB, free: 8.258 MB / 446.1 MB Notification: Performance of matching and sorting (n=159): time 0.02044/0.5791, allocations: 6.687 MB / 0.6431 GB, free: 1.422 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.91e-05/0.5792, allocations: 72.7 kB / 0.6432 GB, free: 1.34 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007116/0.5863, allocations: 2.217 MB / 0.6454 GB, free: 15.09 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000371/0.5867, allocations: 57.7 kB / 0.6454 GB, free: 15.02 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001968/0.5887, allocations: 1.806 MB / 0.6472 GB, free: 13.2 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009389/0.5896, allocations: 0.5733 MB / 0.6477 GB, free: 12.62 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001124/0.5907, allocations: 412.1 kB / 0.6481 GB, free: 12.21 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001413/0.5909, allocations: 301.1 kB / 0.6484 GB, free: 11.92 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001779/0.5926, allocations: 0.8438 MB / 0.6492 GB, free: 11.07 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002484/0.5951, allocations: 1.61 MB / 0.6508 GB, free: 9.105 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004458/0.5996, allocations: 2.621 MB / 0.6534 GB, free: 6.141 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.078e-05/0.5996, allocations: 8 kB / 0.6534 GB, free: 6.133 MB / 462.1 MB Notification: Performance of matching and sorting (n=285) (initialization): time 0.006938/0.6066, allocations: 3.136 MB / 0.6564 GB, free: 2.961 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.465e-05/0.6066, allocations: 18.34 kB / 0.6565 GB, free: 2.945 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.127e-05/0.6067, allocations: 24 kB / 0.6565 GB, free: 2.922 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001096/0.6078, allocations: 346.4 kB / 0.6568 GB, free: 2.574 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002147/0.6099, allocations: 0.4992 MB / 0.6573 GB, free: 2.074 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006629/0.6165, allocations: 5.281 MB / 0.6625 GB, free: 12.52 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002705/0.6192, allocations: 99.95 kB / 0.6625 GB, free: 12.42 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003419/0.6196, allocations: 104 kB / 0.6626 GB, free: 12.32 MB / 478.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.002594/0.6222, allocations: 1.142 MB / 0.6638 GB, free: 11.16 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006798/0.6229, allocations: 250.4 kB / 0.664 GB, free: 10.92 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004833/0.6277, allocations: 2.468 MB / 0.6664 GB, free: 8.391 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.75e-05/0.6277, allocations: 16 kB / 0.6664 GB, free: 8.375 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.132e-05/0.6277, allocations: 4 kB / 0.6664 GB, free: 8.371 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.781e-05/0.6277, allocations: 7.969 kB / 0.6664 GB, free: 8.363 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01241/0.6401, allocations: 5.821 MB / 0.6721 GB, free: 2.41 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.14e-05/0.6402, allocations: 4 kB / 0.6721 GB, free: 2.406 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001351/0.6415, allocations: 275.5 kB / 0.6724 GB, free: 2.137 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001132/0.6426, allocations: 374 kB / 0.6727 GB, free: 1.766 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002052/0.6428, allocations: 35.98 kB / 0.6728 GB, free: 1.73 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009075/0.6519, allocations: 7.416 MB / 0.68 GB, free: 9.895 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.99e-06/0.6519, allocations: 4.031 kB / 0.68 GB, free: 9.891 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007023/0.6589, allocations: 3.591 MB / 0.6835 GB, free: 6.211 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001731/0.6607, allocations: 0.5034 MB / 0.684 GB, free: 5.688 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004913/0.6612, allocations: 35.92 kB / 0.6841 GB, free: 5.652 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001204/0.6624, allocations: 63.91 kB / 0.6841 GB, free: 5.59 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003484/0.6627, allocations: 113.1 kB / 0.6842 GB, free: 5.48 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001068/0.6628, allocations: 51.98 kB / 0.6843 GB, free: 5.43 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002715/0.6655, allocations: 1.492 MB / 0.6857 GB, free: 3.922 MB / 494.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.6655, allocations: 4 kB / 0.6857 GB, free: 3.918 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003198/0.6687, allocations: 0.66 MB / 0.6864 GB, free: 3.258 MB / 494.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.006926/0.6757, allocations: 4.214 MB / 0.6905 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.00471/0.6804, allocations: 2.413 MB / 0.6929 GB, free: 12.49 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 7.314e-06/0.6804, allocations: 0 / 0.6929 GB, free: 12.49 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002471/0.6829, allocations: 1.37 MB / 0.6942 GB, free: 11.08 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003517/0.6864, allocations: 0.5841 MB / 0.6948 GB, free: 10.5 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2942/0.9806, allocations: 23.95 MB / 0.7182 GB, free: 131.8 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002651/0.9833, allocations: 2.526 MB / 0.7206 GB, free: 130.8 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.002138/0.9854, allocations: 0.5165 MB / 0.7211 GB, free: 130.7 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001979/0.9874, allocations: 1.37 MB / 0.7225 GB, free: 129.6 MB / 0.4981 GB Notification: Performance of SimCode: time 1.603e-06/0.9874, allocations: 0 / 0.7225 GB, free: 129.6 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1088/1.096, allocations: 59.11 MB / 0.7802 GB, free: 89.16 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.85/15.95, allocations: 11.09 kB / 0.7802 GB, free: 89.15 MB / 0.4981 GB " [Timeout remaining time 644] (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/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization2_fmu --startTime=0 --stopTime=0.3 --stepSize=0.000100033 --timeout=50 --tolerance=1e-08 HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization2.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 18.893857945979107] Failed to read output from testmodel.py, exit status != 0: 16.125842038018163 16.141657639 15.713984366 Calling exit ...