Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.Rotational.Drive.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.001302/0.001302, allocations: 97.88 kB / 19.73 MB, free: 2.117 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.467/1.467, allocations: 230.6 MB / 253.5 MB, free: 14.27 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.001478/0.001478, allocations: 218.9 kB / 310 MB, free: 3.078 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.04073/0.04073, allocations: 8.924 MB / 375.4 MB, free: 6.582 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.Rotational.Drive,fileNamePrefix="HanserModelica_HanserModelica_Rotational_Drive",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Rotational.Drive,fileNamePrefix="HanserModelica_HanserModelica_Rotational_Drive",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.00244/0.00244, allocations: 87.88 kB / 0.4899 GB, free: 44.78 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09109/0.09353, allocations: 55.61 MB / 0.5442 GB, free: 5.074 MB / 366.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Rotational.Drive): time 0.003903/0.09743, allocations: 1.991 MB / 0.5461 GB, free: 3.066 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001961/0.0994, allocations: 1.068 MB / 0.5472 GB, free: 1.992 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001059/0.0995, allocations: 4 kB / 0.5472 GB, free: 1.988 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003971/0.0999, allocations: 119.5 kB / 0.5473 GB, free: 1.871 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004166/0.1003, allocations: 155.3 kB / 0.5474 GB, free: 1.719 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002541/0.1006, allocations: 107.6 kB / 0.5475 GB, free: 1.613 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003195/0.1009, allocations: 227.2 kB / 0.5478 GB, free: 1.391 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001415/0.101, allocations: 34.02 kB / 0.5478 GB, free: 1.359 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001377/0.1012, allocations: 99.56 kB / 0.5479 GB, free: 1.262 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001894/0.1014, allocations: 131.5 kB / 0.548 GB, free: 1.133 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.995e-05/0.1014, allocations: 12 kB / 0.548 GB, free: 1.121 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001282/0.1015, allocations: 51.98 kB / 0.5481 GB, free: 1.07 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.654e-05/0.1016, allocations: 51.83 kB / 0.5481 GB, free: 1.02 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 8.724e-05/0.1017, allocations: 63.61 kB / 0.5482 GB, free: 0.957 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000363/0.1021, allocations: 239 kB / 0.5484 GB, free: 0.7227 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.1021, allocations: 0 / 0.5484 GB, free: 0.7227 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.1021, allocations: 0 / 0.5484 GB, free: 0.7227 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.891e-06/0.1021, allocations: 3.938 kB / 0.5484 GB, free: 0.7188 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0007828/0.1028, allocations: 453.2 kB / 0.5489 GB, free: 252 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.531e-05/0.1029, allocations: 11.98 kB / 0.5489 GB, free: 240 kB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.585e-05/0.1029, allocations: 4.422 kB / 0.5489 GB, free: 236 kB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.982e-05/0.103, allocations: 50.72 kB / 0.5489 GB, free: 176 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.446e-05/0.1031, allocations: 28.73 kB / 0.5489 GB, free: 148 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003684/0.1034, allocations: 187.2 kB / 0.5491 GB, free: 15.93 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.339e-05/0.1034, allocations: 12.36 kB / 0.5491 GB, free: 15.92 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.693e-05/0.1035, allocations: 12 kB / 0.5491 GB, free: 15.91 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003164/0.1038, allocations: 141.4 kB / 0.5493 GB, free: 15.76 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.063e-05/0.1038, allocations: 15.94 kB / 0.5493 GB, free: 15.75 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.871e-05/0.1038, allocations: 4 kB / 0.5493 GB, free: 15.74 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.398e-06/0.1038, allocations: 0 / 0.5493 GB, free: 15.74 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002169/0.1041, allocations: 80.34 kB / 0.5494 GB, free: 15.66 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008529/0.1049, allocations: 0.5377 MB / 0.5499 GB, free: 15.07 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002528/0.1052, allocations: 90.58 kB / 0.55 GB, free: 14.98 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.79e-05/0.1053, allocations: 36.88 kB / 0.55 GB, free: 14.94 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.927e-05/0.1053, allocations: 4 kB / 0.55 GB, free: 14.93 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001979/0.1055, allocations: 91.31 kB / 0.5501 GB, free: 14.83 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.723e-06/0.1055, allocations: 0 / 0.5501 GB, free: 14.83 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0004103/0.1059, allocations: 157.7 kB / 0.5503 GB, free: 14.67 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.282e-05/0.1059, allocations: 55.41 kB / 0.5503 GB, free: 14.61 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002926/0.1062, allocations: 284.9 kB / 0.5506 GB, free: 14.32 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.444e-05/0.1062, allocations: 25.7 kB / 0.5506 GB, free: 14.29 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001298/0.1064, allocations: 148.2 kB / 0.5508 GB, free: 14.13 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.994e-05/0.1064, allocations: 35.69 kB / 0.5508 GB, free: 14.1 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.118e-05/0.1065, allocations: 25.72 kB / 0.5508 GB, free: 14.07 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001657/0.1066, allocations: 342.8 kB / 0.5511 GB, free: 13.72 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.835e-05/0.1067, allocations: 35.92 kB / 0.5512 GB, free: 13.69 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001092/0.1068, allocations: 66.67 kB / 0.5512 GB, free: 13.61 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001986/0.107, allocations: 108.1 kB / 0.5513 GB, free: 13.49 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.107, allocations: 0 / 0.5513 GB, free: 13.49 MB / 382.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002889/0.1073, allocations: 153.4 kB / 0.5515 GB, free: 13.33 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.367e-05/0.1073, allocations: 4 kB / 0.5515 GB, free: 13.33 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.987e-06/0.1074, allocations: 7.984 kB / 0.5515 GB, free: 13.32 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.479e-05/0.1074, allocations: 0 / 0.5515 GB, free: 13.32 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001575/0.1075, allocations: 35.92 kB / 0.5515 GB, free: 13.29 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.271e-06/0.1075, allocations: 0 / 0.5515 GB, free: 13.29 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.889e-05/0.1076, allocations: 11.95 kB / 0.5515 GB, free: 13.27 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.205e-05/0.1076, allocations: 4 kB / 0.5515 GB, free: 13.27 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.combiTimeTable.nextTimeEvent,$whenCondition1,combiTimeTable.nextTimeEventScaled,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001516/0.1078, allocations: 151.4 kB / 0.5517 GB, free: 13.11 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.215e-05/0.1078, allocations: 19.95 kB / 0.5517 GB, free: 13.09 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003343/0.1081, allocations: 147.2 kB / 0.5519 GB, free: 12.94 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.999e-06/0.1081, allocations: 4 kB / 0.5519 GB, free: 12.94 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.1082, allocations: 0 / 0.5519 GB, free: 12.94 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.1082, allocations: 3.984 kB / 0.5519 GB, free: 12.93 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002234/0.1084, allocations: 208.6 kB / 0.5521 GB, free: 12.69 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.479e-06/0.1084, allocations: 3.984 kB / 0.5521 GB, free: 12.68 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001148/0.1085, allocations: 12 kB / 0.5521 GB, free: 12.67 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.1085, allocations: 4 kB / 0.5521 GB, free: 12.67 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.251e-05/0.1085, allocations: 0 / 0.5521 GB, free: 12.67 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.1085, allocations: 0 / 0.5521 GB, free: 12.67 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.979e-06/0.1085, allocations: 11.97 kB / 0.5521 GB, free: 12.66 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004114/0.1089, allocations: 212.8 kB / 0.5523 GB, free: 12.43 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.949e-05/0.109, allocations: 15.94 kB / 0.5523 GB, free: 12.41 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.214e-05/0.109, allocations: 4 kB / 0.5523 GB, free: 12.41 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.18e-05/0.1091, allocations: 0 / 0.5523 GB, free: 12.41 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.449e-05/0.1091, allocations: 11.98 kB / 0.5523 GB, free: 12.4 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.172e-05/0.1091, allocations: 7.984 kB / 0.5523 GB, free: 12.39 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002158/0.1093, allocations: 208.5 kB / 0.5525 GB, free: 12.19 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1093, allocations: 0 / 0.5525 GB, free: 12.19 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002616/0.1096, allocations: 47.88 kB / 0.5526 GB, free: 12.14 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (inertia.w,load.phi) * Number of discrete variables: 3 ($whenCondition1,combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 2 (combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002276/0.1119, allocations: 1.084 MB / 0.5536 GB, free: 11.22 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002498/0.1121, allocations: 87.83 kB / 0.5537 GB, free: 11.14 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.1121, allocations: 0 / 0.5537 GB, free: 11.14 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001002/0.1122, allocations: 39.92 kB / 0.5538 GB, free: 11.1 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003296/0.1126, allocations: 37.16 kB / 0.5538 GB, free: 11.06 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002785/0.1153, allocations: 2.142 MB / 0.5559 GB, free: 8.812 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001451/0.1155, allocations: 128.1 kB / 0.556 GB, free: 8.668 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 9.571e-05/0.1156, allocations: 17.42 kB / 0.556 GB, free: 8.648 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001177/0.1157, allocations: 71.41 kB / 0.5561 GB, free: 8.582 MB / 382.1 MB Notification: Performance of SimCode: time 8.92e-07/0.1157, allocations: 0 / 0.5561 GB, free: 8.582 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03958/0.1553, allocations: 4.852 MB / 0.5608 GB, free: 3.789 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.29/11.44, allocations: 10.5 kB / 0.5608 GB, free: 3.781 MB / 382.1 MB " [Timeout remaining time 648] (rm -f HanserModelica_HanserModelica.Rotational.Drive.pipe ; mkfifo HanserModelica_HanserModelica.Rotational.Drive.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Rotational.Drive.pipe >> ../files/HanserModelica_HanserModelica.Rotational.Drive.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Rotational_Drive_fmu --startTime=0 --stopTime=10 --stepSize=0.001 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Rotational_Drive.fmu > HanserModelica_HanserModelica.Rotational.Drive.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.595260870992206] Failed to read output from testmodel.py, exit status != 0: 11.660673998994753 11.880365948 11.775472008 Calling exit ...