Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.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.001493/0.001493, allocations: 110.4 kB / 18.94 MB, free: 2.949 MB / 14.72 MB " [Timeout remaining time 180] 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.002564/0.002564, allocations: 215.3 kB / 22.25 MB, free: 5.125 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.767/1.767, allocations: 207.6 MB / 233 MB, free: 9.973 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.06893/0.06893, allocations: 8.19 MB / 293.5 MB, free: 13.64 MB / 238.1 MB " [Timeout remaining time 180] Using package ModelicaByExample with version 0.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/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 ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem,fileNamePrefix="ModelicaByExample_ModelicaByExample_Architectures_SensorComparison_Examples_FlatSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem,fileNamePrefix="ModelicaByExample_ModelicaByExample_Architectures_SensorComparison_Examples_FlatSystem",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ModelicaByExample requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003197/0.003197, allocations: 80.91 kB / 410.4 MB, free: 46.94 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1009/0.1041, allocations: 50.93 MB / 461.4 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem): time 0.005035/0.1091, allocations: 2.424 MB / 463.8 MB, free: 11.05 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00132/0.1104, allocations: 0.6358 MB / 464.4 MB, free: 10.41 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001246/0.1106, allocations: 7.938 kB / 464.4 MB, free: 10.4 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000146/0.1107, allocations: 31.66 kB / 464.5 MB, free: 10.37 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001545/0.1109, allocations: 75.34 kB / 464.5 MB, free: 10.3 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002806/0.1112, allocations: 75.84 kB / 464.6 MB, free: 10.22 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004035/0.1116, allocations: 294.7 kB / 464.9 MB, free: 9.934 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002129/0.1118, allocations: 74.23 kB / 465 MB, free: 9.859 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001844/0.112, allocations: 111.6 kB / 465.1 MB, free: 9.75 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001982/0.1122, allocations: 127.5 kB / 465.2 MB, free: 9.625 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.402e-05/0.1122, allocations: 20 kB / 465.2 MB, free: 9.605 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.236e-05/0.1122, allocations: 24 kB / 465.2 MB, free: 9.582 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.696e-05/0.1123, allocations: 59.77 kB / 465.3 MB, free: 9.523 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001464/0.1125, allocations: 135.3 kB / 465.4 MB, free: 9.391 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003703/0.1128, allocations: 274.8 kB / 465.7 MB, free: 9.121 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.631e-06/0.1128, allocations: 4 kB / 465.7 MB, free: 9.117 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.1128, allocations: 0 / 465.7 MB, free: 9.117 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.361e-05/0.1128, allocations: 0 / 465.7 MB, free: 9.117 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.001125/0.114, allocations: 0.4954 MB / 466.2 MB, free: 8.586 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.741e-05/0.114, allocations: 15.98 kB / 466.2 MB, free: 8.57 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.111e-05/0.1141, allocations: 58.67 kB / 466.3 MB, free: 8.504 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.08e-05/0.1142, allocations: 28.75 kB / 466.3 MB, free: 8.477 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003785/0.1145, allocations: 186.8 kB / 466.5 MB, free: 8.27 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.525e-05/0.1146, allocations: 20.75 kB / 466.5 MB, free: 8.25 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.234e-05/0.1146, allocations: 24.38 kB / 466.5 MB, free: 8.227 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005099/0.1151, allocations: 227.3 kB / 466.7 MB, free: 7.996 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.806e-05/0.1151, allocations: 4 kB / 466.8 MB, free: 7.992 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.299e-05/0.1152, allocations: 8 kB / 466.8 MB, free: 7.984 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.085e-05/0.1152, allocations: 11.98 kB / 466.8 MB, free: 7.973 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005462/0.1157, allocations: 201.5 kB / 467 MB, free: 7.777 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001053/0.1168, allocations: 0.6566 MB / 467.6 MB, free: 7.07 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007119/0.1175, allocations: 226.5 kB / 467.8 MB, free: 6.84 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003215/0.1178, allocations: 112.8 kB / 468 MB, free: 6.727 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.891e-05/0.1178, allocations: 4 kB / 468 MB, free: 6.723 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000397/0.1182, allocations: 163.2 kB / 468.1 MB, free: 6.551 MB / 334.1 MB Notification: Performance of pre-optimization done (n=25): time 1.633e-06/0.1182, allocations: 0 / 468.1 MB, free: 6.551 MB / 334.1 MB Notification: Performance of matching and sorting (n=29): time 0.002408/0.1206, allocations: 0.98 MB / 469.1 MB, free: 5.52 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.108e-05/0.1207, allocations: 55.41 kB / 469.2 MB, free: 5.453 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002032/0.1209, allocations: 183.5 kB / 469.3 MB, free: 5.262 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.027e-05/0.1209, allocations: 29.7 kB / 469.4 MB, free: 5.227 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001339/0.1211, allocations: 144.8 kB / 469.5 MB, free: 5.078 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.757e-05/0.1211, allocations: 107.1 kB / 469.6 MB, free: 4.973 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.893e-05/0.1212, allocations: 49.7 kB / 469.7 MB, free: 4.918 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001549/0.1214, allocations: 330.8 kB / 470 MB, free: 4.586 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002944/0.1217, allocations: 91.94 kB / 470.1 MB, free: 4.496 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003078/0.122, allocations: 121.5 kB / 470.2 MB, free: 4.371 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001366/0.1234, allocations: 0.5231 MB / 470.7 MB, free: 3.824 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.283e-06/0.1234, allocations: 0 / 470.7 MB, free: 3.824 MB / 334.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0007561/0.1241, allocations: 336.5 kB / 471 MB, free: 3.484 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.985e-05/0.1242, allocations: 39.2 kB / 471.1 MB, free: 3.441 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.306e-06/0.1242, allocations: 4.031 kB / 471.1 MB, free: 3.438 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.774e-05/0.1242, allocations: 0 / 471.1 MB, free: 3.438 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003062/0.1245, allocations: 75.94 kB / 471.2 MB, free: 3.363 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.777e-06/0.1245, allocations: 3.938 kB / 471.2 MB, free: 3.359 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002078/0.1247, allocations: 19.98 kB / 471.2 MB, free: 3.34 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.634e-05/0.1247, allocations: 15.98 kB / 471.2 MB, free: 3.324 MB / 334.1 MB Warning: Assuming fixed start value for the following 4 variables: springDamper.phi_rel:VARIABLE(start = 0.0 unit = \"rad\" fixed = true nominal = if springDamper.phi_nominal >= 2.220446049250313e-16 then springDamper.phi_nominal else 1.0 stateSelect=StateSelect.prefer ) \"Relative rotation angle (= flange_b.phi - flange_a.phi)\" type: Real springDamper.w_rel:VARIABLE(start = 0.0 unit = \"rad/s\" fixed = true stateSelect=StateSelect.prefer ) \"Relative angular velocity (= der(phi_rel))\" type: Real damper.phi_rel:VARIABLE(start = 0.0 unit = \"rad\" fixed = true nominal = if damper.phi_nominal >= 2.220446049250313e-16 then damper.phi_nominal else 1.0 stateSelect=StateSelect.prefer ) \"Relative rotation angle (= flange_b.phi - flange_a.phi)\" type: Real damper.w_rel:VARIABLE(start = 0.0 unit = \"rad/s\" fixed = true stateSelect=StateSelect.prefer ) \"Relative angular velocity (= der(phi_rel))\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.trapezoid.count,$PRE.trapezoid.T_start,trapezoid.count,trapezoid.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 1 * 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.0002565/0.125, allocations: 159.5 kB / 471.4 MB, free: 3.164 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.14e-05/0.125, allocations: 27.8 kB / 471.4 MB, free: 3.137 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.637e-05/0.1251, allocations: 30.64 kB / 471.4 MB, free: 3.109 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.1251, allocations: 3.938 kB / 471.4 MB, free: 3.105 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/0.1251, allocations: 4 kB / 471.4 MB, free: 3.102 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.143e-06/0.1251, allocations: 7.984 kB / 471.4 MB, free: 3.094 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00127/0.1264, allocations: 0.6713 MB / 472.1 MB, free: 2.363 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.27e-06/0.1264, allocations: 3.984 kB / 472.1 MB, free: 2.359 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000316/0.1267, allocations: 68.02 kB / 472.2 MB, free: 2.293 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.992e-06/0.1267, allocations: 4 kB / 472.2 MB, free: 2.289 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.88e-05/0.1267, allocations: 4 kB / 472.2 MB, free: 2.285 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.502e-06/0.1267, allocations: 8 kB / 472.2 MB, free: 2.277 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.1268, allocations: 3.938 kB / 472.2 MB, free: 2.273 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001101/0.1279, allocations: 0.4979 MB / 472.7 MB, free: 1.754 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.819e-05/0.1279, allocations: 23.89 kB / 472.7 MB, free: 1.73 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.995e-05/0.1279, allocations: 8 kB / 472.7 MB, free: 1.723 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002186/0.1281, allocations: 23.98 kB / 472.7 MB, free: 1.699 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.582e-05/0.1282, allocations: 31.83 kB / 472.8 MB, free: 1.668 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.953e-05/0.1283, allocations: 11.98 kB / 472.8 MB, free: 1.656 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001297/0.1284, allocations: 132.6 kB / 472.9 MB, free: 1.527 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1284, allocations: 0 / 472.9 MB, free: 1.527 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003275/0.1287, allocations: 60 kB / 473 MB, free: 1.469 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (springDamper.phi_rel,springDamper.w_rel,damper.phi_rel,damper.w_rel) * Number of discrete variables: 3 ($whenCondition1,trapezoid.T_start,trapezoid.count) * Number of discrete states: 1 (trapezoid.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 27 * 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.001434/0.1302, allocations: 1.045 MB / 474 MB, free: 404 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007425/0.1309, allocations: 291.2 kB / 474.3 MB, free: 100 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.1309, allocations: 0 / 474.3 MB, free: 100 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003621/0.1313, allocations: 135.8 kB / 474.4 MB, free: 15.96 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004435/0.1317, allocations: 59.77 kB / 474.5 MB, free: 15.91 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006007/0.1377, allocations: 2.917 MB / 477.4 MB, free: 12.88 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005612/0.1383, allocations: 0.744 MB / 478.1 MB, free: 12.11 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001599/0.1384, allocations: 26.28 kB / 478.2 MB, free: 12.09 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000162/0.1386, allocations: 79.41 kB / 478.3 MB, free: 12.01 MB / 350.1 MB Notification: Performance of SimCode: time 2.084e-06/0.1386, allocations: 0 / 478.3 MB, free: 12.01 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03529/0.1739, allocations: 5.492 MB / 483.7 MB, free: 6.57 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.24/11.41, allocations: 7.234 kB / 483.8 MB, free: 6.566 MB / 350.1 MB " [Timeout remaining time 648] (rm -f ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.pipe ; mkfifo ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.pipe ; head -c 1048576 < ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.pipe >> ../files/ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ModelicaByExample_ModelicaByExample_Architectures_SensorComparison_Examples_FlatSystem_fmu --startTime=0 --stopTime=4 --stepSize=0.0016 --timeout=50 --tolerance=1e-06 ModelicaByExample_ModelicaByExample_Architectures_SensorComparison_Examples_FlatSystem.fmu > ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.468997702002525] Failed to read output from testmodel.py, exit status != 0: 11.520419342909008 11.542844554 11.426726839 Calling exit ...