Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.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.0007386/0.0007386, allocations: 80.44 kB / 19.17 MB, free: 0.7461 MB / 13.93 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 0.916/0.916, allocations: 177.2 MB / 199.4 MB, free: 5.938 MB / 186.7 MB " [Timeout remaining time 179] 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.001159/0.001159, allocations: 160 kB / 256 MB, free: 13.35 MB / 250.7 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.02214/0.02214, allocations: 6.665 MB / 319 MB, free: 26.78 MB / 266.7 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_Synchronization3,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Synchronization3,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization3",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.793e-06/1.793e-06, allocations: 0 / 445.4 MB, free: 37.61 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.376e-05/2.555e-05, allocations: 12.61 kB / 445.4 MB, free: 37.6 MB / 330.7 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization3): time 0.009747/0.009773, allocations: 14.33 MB / 459.8 MB, free: 23.2 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.006158/0.01593, allocations: 5.29 MB / 465.1 MB, free: 17.89 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001294/0.01723, allocations: 119.3 kB / 465.2 MB, free: 17.77 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001726/0.01895, allocations: 1.219 MB / 466.4 MB, free: 16.55 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002045/0.021, allocations: 1.622 MB / 468 MB, free: 14.92 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001131/0.02213, allocations: 1.016 MB / 469 MB, free: 13.9 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.002635/0.02476, allocations: 4.973 MB / 474 MB, free: 8.906 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002312/0.02707, allocations: 1.917 MB / 475.9 MB, free: 6.926 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003386/0.03046, allocations: 3.185 MB / 479.1 MB, free: 3.734 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001834/0.03229, allocations: 2.061 MB / 481.2 MB, free: 1.668 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000545/0.03284, allocations: 0.5703 MB / 481.7 MB, free: 1.098 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007252/0.03357, allocations: 0.7925 MB / 482.5 MB, free: 312 kB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006369/0.0342, allocations: 1.324 MB / 483.9 MB, free: 14.97 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001472/0.03567, allocations: 1.672 MB / 485.5 MB, free: 13.3 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004923/0.0406, allocations: 7.604 MB / 493.1 MB, free: 5.672 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.213e-06/0.0406, allocations: 4 kB / 493.1 MB, free: 5.668 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.04061, allocations: 4 kB / 493.1 MB, free: 5.664 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002405/0.04085, allocations: 3.984 kB / 493.2 MB, free: 5.66 MB / 346.7 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.008349/0.0492, allocations: 4.999 MB / 498.2 MB, free: 0.6016 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.518e-05/0.04924, allocations: 12.03 kB / 498.2 MB, free: 0.5898 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006469/0.04989, allocations: 0.5531 MB / 498.7 MB, free: 28 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002505/0.05239, allocations: 0.9793 MB / 499.7 MB, free: 15.05 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003442/0.05583, allocations: 2.793 MB / 0.4907 GB, free: 12.2 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001283/0.05596, allocations: 275.8 kB / 0.491 GB, free: 11.93 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003373/0.0563, allocations: 364.4 kB / 0.4913 GB, free: 11.58 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005124/0.06142, allocations: 4.934 MB / 0.4961 GB, free: 6.566 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.307e-05/0.06148, allocations: 3.953 kB / 0.4961 GB, free: 6.562 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002404/0.06172, allocations: 156 kB / 0.4963 GB, free: 6.41 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001002/0.06182, allocations: 159.3 kB / 0.4964 GB, free: 6.254 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00436/0.06618, allocations: 4.046 MB / 0.5004 GB, free: 2.203 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01355/0.07973, allocations: 13.81 MB / 0.5139 GB, free: 3.973 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002892/0.08262, allocations: 2.739 MB / 0.5166 GB, free: 1.355 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00208/0.0847, allocations: 1.819 MB / 0.5183 GB, free: 15.54 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004433/0.08914, allocations: 3.69 MB / 0.5219 GB, free: 11.8 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.136e-05/0.08917, allocations: 51.86 kB / 0.522 GB, free: 11.74 MB / 394.7 MB Notification: Performance of pre-optimization done (n=137): time 2.544e-06/0.08917, allocations: 0 / 0.522 GB, free: 11.74 MB / 394.7 MB Notification: Performance of matching and sorting (n=159): time 0.008516/0.09769, allocations: 6.225 MB / 0.5281 GB, free: 5.477 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.105e-05/0.09773, allocations: 68.72 kB / 0.5281 GB, free: 5.398 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002335/0.1001, allocations: 2.259 MB / 0.5303 GB, free: 3.109 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.965e-05/0.1001, allocations: 49.7 kB / 0.5304 GB, free: 3.055 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008199/0.101, allocations: 1.795 MB / 0.5321 GB, free: 1.242 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004237/0.1014, allocations: 0.5733 MB / 0.5327 GB, free: 0.6641 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004223/0.1018, allocations: 408 kB / 0.5331 GB, free: 264 kB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.294e-05/0.1019, allocations: 301.1 kB / 0.5334 GB, free: 15.96 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008917/0.1028, allocations: 0.8359 MB / 0.5342 GB, free: 15.12 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001216/0.104, allocations: 1.626 MB / 0.5358 GB, free: 13.14 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002219/0.1062, allocations: 2.616 MB / 0.5383 GB, free: 10.18 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.34e-05/0.1062, allocations: 8 kB / 0.5383 GB, free: 10.17 MB / 410.7 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.003505/0.1097, allocations: 3.05 MB / 0.5413 GB, free: 7.105 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.819e-05/0.1098, allocations: 16 kB / 0.5413 GB, free: 7.09 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.195e-05/0.1098, allocations: 28 kB / 0.5414 GB, free: 7.062 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005425/0.1103, allocations: 348.9 kB / 0.5417 GB, free: 6.715 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009239/0.1113, allocations: 0.4953 MB / 0.5422 GB, free: 6.219 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003797/0.115, allocations: 5.015 MB / 0.5471 GB, free: 0.9766 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001005/0.1161, allocations: 99.95 kB / 0.5472 GB, free: 0.8789 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001009/0.1162, allocations: 108 kB / 0.5473 GB, free: 0.7734 MB / 410.7 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.001491/0.1176, allocations: 1.129 MB / 0.5484 GB, free: 15.63 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002196/0.1179, allocations: 250.4 kB / 0.5486 GB, free: 15.39 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0025/0.1204, allocations: 2.313 MB / 0.5509 GB, free: 13.05 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.071e-05/0.1204, allocations: 16 kB / 0.5509 GB, free: 13.04 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/0.1204, allocations: 4 kB / 0.5509 GB, free: 13.03 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.739e-06/0.1204, allocations: 7.969 kB / 0.5509 GB, free: 13.02 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00587/0.1263, allocations: 5.307 MB / 0.5561 GB, free: 7.629 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.689e-06/0.1263, allocations: 0 / 0.5561 GB, free: 7.629 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006146/0.1269, allocations: 271.8 kB / 0.5563 GB, free: 7.363 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000523/0.1274, allocations: 362.2 kB / 0.5567 GB, free: 7 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.713e-05/0.1275, allocations: 44.11 kB / 0.5567 GB, free: 6.957 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1659/0.2933, allocations: 7.029 MB / 0.5636 GB, free: 115.3 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/0.2934, allocations: 2.25 kB / 0.5636 GB, free: 115.3 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004245/0.2976, allocations: 3.441 MB / 0.567 GB, free: 114.9 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007087/0.2983, allocations: 438.5 kB / 0.5674 GB, free: 114.8 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001934/0.2985, allocations: 35.39 kB / 0.5674 GB, free: 114.7 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000596/0.2991, allocations: 63.55 kB / 0.5675 GB, free: 114.7 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002213/0.2993, allocations: 125.2 kB / 0.5676 GB, free: 114.7 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.116e-05/0.2994, allocations: 46.83 kB / 0.5676 GB, free: 114.7 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.00149/0.3009, allocations: 1.493 MB / 0.5691 GB, free: 114.1 MB / 426.7 MB Notification: Performance of sort global known variables: time 8e-08/0.3009, allocations: 0 / 0.5691 GB, free: 114.1 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001505/0.3024, allocations: 0.66 MB / 0.5697 GB, free: 114 MB / 426.7 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.003255/0.3056, allocations: 4.051 MB / 0.5737 GB, free: 112.1 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002247/0.3079, allocations: 2.34 MB / 0.576 GB, free: 111.1 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.3079, allocations: 7.406 kB / 0.576 GB, free: 111.1 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001102/0.309, allocations: 1.366 MB / 0.5773 GB, free: 110 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001367/0.3104, allocations: 0.5792 MB / 0.5779 GB, free: 109.5 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02434/0.3347, allocations: 23.76 MB / 0.6011 GB, free: 86.36 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001163/0.3359, allocations: 1.987 MB / 0.603 GB, free: 84.34 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001031/0.3369, allocations: 0.5122 MB / 0.6035 GB, free: 83.82 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008841/0.3378, allocations: 1.371 MB / 0.6049 GB, free: 82.45 MB / 426.7 MB Notification: Performance of SimCode: time 1.052e-06/0.3378, allocations: 0 / 0.6049 GB, free: 82.45 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0713/0.4091, allocations: 61.7 MB / 0.6651 GB, free: 21.32 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.805/9.215, allocations: 7.875 kB / 0.6651 GB, free: 21.31 MB / 426.7 MB " [Timeout remaining time 651] (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization3_fmu --startTime=0 --stopTime=0.3 --stepSize=0.000100033 --timeout=50 --tolerance=1e-08 HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization3.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.365410977043211] Failed to read output from testmodel.py, exit status != 0: 9.332411299459636 9.338536234 9.296391684 Calling exit ...