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.001438/0.001438, allocations: 118.8 kB / 17.16 MB, free: 5.914 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.707/1.707, allocations: 230.6 MB / 250.5 MB, free: 9.211 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.00167/0.00167, allocations: 205.6 kB / 306.7 MB, free: 4.301 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.04126/0.04126, allocations: 8.904 MB / 371.7 MB, free: 3.438 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.00249/0.00249, allocations: 80.11 kB / 496.5 MB, free: 9.84 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3813/0.3838, allocations: 55.57 MB / 0.5391 GB, free: 26.41 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization1): time 0.01564/0.3994, allocations: 16.5 MB / 0.5552 GB, free: 14.57 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01268/0.4121, allocations: 5.582 MB / 0.5607 GB, free: 10.47 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005748/0.4179, allocations: 117.6 kB / 0.5608 GB, free: 10.43 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00541/0.4233, allocations: 1.272 MB / 0.562 GB, free: 9.77 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.007736/0.431, allocations: 1.583 MB / 0.5636 GB, free: 8.719 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004256/0.4353, allocations: 1.036 MB / 0.5646 GB, free: 8.066 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01005/0.4453, allocations: 4.743 MB / 0.5692 GB, free: 5.605 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00728/0.4526, allocations: 2.466 MB / 0.5716 GB, free: 4.438 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006411/0.459, allocations: 2.166 MB / 0.5737 GB, free: 3.371 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007094/0.4661, allocations: 2.597 MB / 0.5763 GB, free: 2.109 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003248/0.4693, allocations: 0.575 MB / 0.5768 GB, free: 2.105 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004979/0.4743, allocations: 0.8029 MB / 0.5776 GB, free: 2.023 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00361/0.4779, allocations: 1.297 MB / 0.5789 GB, free: 1.184 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008498/0.4864, allocations: 2.454 MB / 0.5813 GB, free: 15.54 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0199/0.5063, allocations: 7.574 MB / 0.5887 GB, free: 10.24 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.063e-05/0.5063, allocations: 0 / 0.5887 GB, free: 10.24 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.625e-06/0.5063, allocations: 1.25 kB / 0.5887 GB, free: 10.24 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0005182/0.5069, allocations: 0 / 0.5887 GB, free: 10.24 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.02697/0.5338, allocations: 5.117 MB / 0.5937 GB, free: 5.93 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.453e-05/0.5339, allocations: 16.03 kB / 0.5937 GB, free: 5.914 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001768/0.5341, allocations: 114.2 kB / 0.5938 GB, free: 5.801 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002914/0.537, allocations: 0.5609 MB / 0.5943 GB, free: 5.23 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007904/0.5449, allocations: 0.978 MB / 0.5953 GB, free: 4.25 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00991/0.5548, allocations: 2.889 MB / 0.5981 GB, free: 1.309 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004266/0.5552, allocations: 279.6 kB / 0.5984 GB, free: 1.035 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002025/0.5573, allocations: 375.9 kB / 0.5987 GB, free: 0.668 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01652/0.5738, allocations: 4.78 MB / 0.6034 GB, free: 11.84 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002112/0.574, allocations: 4 kB / 0.6034 GB, free: 11.84 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001538/0.5755, allocations: 152 kB / 0.6036 GB, free: 11.69 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002506/0.5758, allocations: 155.4 kB / 0.6037 GB, free: 11.54 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01249/0.5883, allocations: 4.058 MB / 0.6077 GB, free: 7.477 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04195/0.6302, allocations: 15.95 MB / 0.6232 GB, free: 6.957 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008805/0.639, allocations: 7.038 MB / 0.6301 GB, free: 14.99 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004369/0.6434, allocations: 1.822 MB / 0.6319 GB, free: 13.17 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01042/0.6538, allocations: 4.714 MB / 0.6365 GB, free: 8.25 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.241e-05/0.6539, allocations: 55.86 kB / 0.6366 GB, free: 8.184 MB / 446.1 MB Notification: Performance of pre-optimization done (n=137): time 4.578e-06/0.6539, allocations: 0 / 0.6366 GB, free: 8.184 MB / 446.1 MB Notification: Performance of matching and sorting (n=159): time 0.01746/0.6713, allocations: 6.69 MB / 0.6431 GB, free: 1.344 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.924e-05/0.6714, allocations: 68.72 kB / 0.6432 GB, free: 1.266 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00534/0.6767, allocations: 2.217 MB / 0.6453 GB, free: 15.01 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003075/0.677, allocations: 61.64 kB / 0.6454 GB, free: 14.95 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001942/0.679, allocations: 1.795 MB / 0.6471 GB, free: 13.14 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008867/0.6799, allocations: 0.5772 MB / 0.6477 GB, free: 12.55 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009759/0.6809, allocations: 416.1 kB / 0.6481 GB, free: 12.14 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001298/0.681, allocations: 301.1 kB / 0.6484 GB, free: 11.84 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001576/0.6826, allocations: 0.8399 MB / 0.6492 GB, free: 11 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00225/0.6848, allocations: 1.61 MB / 0.6508 GB, free: 9.035 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004167/0.689, allocations: 2.621 MB / 0.6533 GB, free: 6.07 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.275e-05/0.689, allocations: 15.88 kB / 0.6533 GB, free: 6.055 MB / 462.1 MB Notification: Performance of matching and sorting (n=285) (initialization): time 0.00648/0.6955, allocations: 3.125 MB / 0.6564 GB, free: 2.895 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.95e-05/0.6955, allocations: 23.92 kB / 0.6564 GB, free: 2.871 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.521e-05/0.6956, allocations: 24 kB / 0.6564 GB, free: 2.848 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00107/0.6966, allocations: 346.3 kB / 0.6568 GB, free: 2.5 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001875/0.6985, allocations: 0.4992 MB / 0.6573 GB, free: 2 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006234/0.7048, allocations: 5.281 MB / 0.6624 GB, free: 12.44 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002682/0.7074, allocations: 95.95 kB / 0.6625 GB, free: 12.34 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002435/0.7077, allocations: 108 kB / 0.6626 GB, free: 12.24 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.002489/0.7102, allocations: 1.134 MB / 0.6637 GB, free: 11.09 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008016/0.711, allocations: 254.3 kB / 0.664 GB, free: 10.84 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004612/0.7156, allocations: 2.468 MB / 0.6664 GB, free: 8.316 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.42e-05/0.7156, allocations: 16 kB / 0.6664 GB, free: 8.301 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.007e-06/0.7156, allocations: 4 kB / 0.6664 GB, free: 8.297 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.557e-05/0.7156, allocations: 7.969 kB / 0.6664 GB, free: 8.289 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009638/0.7253, allocations: 5.821 MB / 0.6721 GB, free: 2.336 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.322e-06/0.7253, allocations: 4 kB / 0.6721 GB, free: 2.332 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00122/0.7265, allocations: 267.6 kB / 0.6723 GB, free: 2.07 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009828/0.7275, allocations: 382.4 kB / 0.6727 GB, free: 1.688 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001042/0.7276, allocations: 31.98 kB / 0.6727 GB, free: 1.656 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008017/0.7356, allocations: 7.418 MB / 0.68 GB, free: 9.82 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.703e-06/0.7356, allocations: 8.016 kB / 0.68 GB, free: 9.812 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006098/0.7417, allocations: 3.595 MB / 0.6835 GB, free: 6.129 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001415/0.7431, allocations: 0.4994 MB / 0.684 GB, free: 5.609 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003018/0.7434, allocations: 36 kB / 0.684 GB, free: 5.574 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001077/0.7445, allocations: 63.95 kB / 0.6841 GB, free: 5.512 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002843/0.7448, allocations: 113.1 kB / 0.6842 GB, free: 5.402 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.545e-05/0.7449, allocations: 43.98 kB / 0.6842 GB, free: 5.359 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002515/0.7474, allocations: 1.504 MB / 0.6857 GB, free: 3.84 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/0.7474, allocations: 4 kB / 0.6857 GB, free: 3.836 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002827/0.7502, allocations: 0.6601 MB / 0.6863 GB, free: 3.176 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.006703/0.7569, allocations: 4.206 MB / 0.6905 GB, free: 14.87 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.004889/0.7618, allocations: 2.417 MB / 0.6928 GB, free: 12.41 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 8.326e-06/0.7618, allocations: 4 kB / 0.6928 GB, free: 12.41 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002561/0.7644, allocations: 1.362 MB / 0.6941 GB, free: 11.01 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003699/0.7681, allocations: 0.586 MB / 0.6947 GB, free: 10.43 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3226/1.091, allocations: 23.95 MB / 0.7181 GB, free: 131.7 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002213/1.093, allocations: 2.53 MB / 0.7206 GB, free: 130.6 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.002082/1.095, allocations: 0.5148 MB / 0.7211 GB, free: 130.6 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00165/1.097, allocations: 1.367 MB / 0.7224 GB, free: 129.4 MB / 0.4981 GB Notification: Performance of SimCode: time 1.894e-06/1.097, allocations: 7 kB / 0.7224 GB, free: 129.4 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1133/1.21, allocations: 59.11 MB / 0.7801 GB, free: 88.96 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.32/16.53, allocations: 17.69 kB / 0.7802 GB, free: 88.95 MB / 0.4981 GB " [Timeout remaining time 643] (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 os._exit(0), Time elapsed: 19.881561229005456] Failed to read output from testmodel.py, exit status != 0: 16.71463116601808 16.733991967 16.223269174 Calling exit ...