Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternData_ExternData.Examples.JSONTest.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.001314/0.001314, allocations: 114.5 kB / 18.94 MB, free: 2.781 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.001489/0.001489, allocations: 217.5 kB / 22.25 MB, free: 5.168 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.508/1.508, allocations: 230.6 MB / 256 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.2.0/package.mo): time 0.01575/0.01575, allocations: 3.267 MB / 315.7 MB, free: 15.85 MB / 254.1 MB " [Timeout remaining time 180] Using package ExternData with version 3.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.2.0/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 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(ExternData.Examples.JSONTest,fileNamePrefix="ExternData_ExternData_Examples_JSONTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternData.Examples.JSONTest,fileNamePrefix="ExternData_ExternData_Examples_JSONTest",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ExternData 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.002159/0.002159, allocations: 67.89 kB / 439.6 MB, free: 12.33 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.1047, allocations: 54.37 MB / 493.9 MB, free: 5.855 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.JSONTest): time 0.003652/0.1084, allocations: 1.732 MB / 495.7 MB, free: 4.113 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003039/0.1114, allocations: 1.769 MB / 497.4 MB, free: 2.336 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.897e-05/0.1115, allocations: 3.938 kB / 497.4 MB, free: 2.332 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.2.0/package.mo:86:3-121:15:writable] Warning: Pure function 'ExternData.JSONFile' contains a call to impure function 'ExternData.Types.ExternJSONFile.constructor'. Notification: Performance of NFTyping.typeComponents: time 0.0003873/0.1119, allocations: 39.72 kB / 497.5 MB, free: 2.293 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004569/0.1123, allocations: 127.5 kB / 497.6 MB, free: 2.168 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003125/0.1126, allocations: 90.34 kB / 497.7 MB, free: 2.082 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000183/0.1128, allocations: 87.77 kB / 497.8 MB, free: 1.996 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.742e-05/0.1129, allocations: 8.219 kB / 497.8 MB, free: 1.984 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001044/0.113, allocations: 39.86 kB / 497.8 MB, free: 1.945 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000216/0.1132, allocations: 43.77 kB / 497.9 MB, free: 1.902 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.288e-05/0.1133, allocations: 8 kB / 497.9 MB, free: 1.895 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003748/0.1136, allocations: 199.8 kB / 498.1 MB, free: 1.699 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.886e-05/0.1137, allocations: 31.91 kB / 498.1 MB, free: 1.668 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.872e-05/0.1138, allocations: 39.8 kB / 498.1 MB, free: 1.629 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005025/0.1143, allocations: 247.1 kB / 498.4 MB, free: 1.387 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.1143, allocations: 0 / 498.4 MB, free: 1.387 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.492e-06/0.1143, allocations: 0 / 498.4 MB, free: 1.387 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.863e-06/0.1143, allocations: 0 / 498.4 MB, free: 1.387 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0007386/0.115, allocations: 411 kB / 498.8 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.957e-05/0.1151, allocations: 8.031 kB / 498.8 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.195e-05/0.1152, allocations: 38.73 kB / 498.8 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.547e-05/0.1152, allocations: 12.89 kB / 498.8 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003454/0.1156, allocations: 158.3 kB / 499 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.38e-05/0.1156, allocations: 4.375 kB / 499 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.623e-05/0.1156, allocations: 7.938 kB / 499 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002208/0.1158, allocations: 91.38 kB / 499.1 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.103e-05/0.1158, allocations: 3.984 kB / 499.1 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.349e-05/0.1159, allocations: 4 kB / 499.1 MB, free: 0.582 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.997e-06/0.1159, allocations: 4 kB / 499.1 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001481/0.116, allocations: 55.91 kB / 499.2 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004613/0.1165, allocations: 292.8 kB / 499.5 MB, free: 196 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002491/0.1167, allocations: 89.22 kB / 499.5 MB, free: 88 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001096/0.1168, allocations: 49.75 kB / 499.6 MB, free: 32 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.682e-05/0.1168, allocations: 0 / 499.6 MB, free: 32 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002535/0.1171, allocations: 134.8 kB / 499.7 MB, free: 15.88 MB / 366.1 MB Notification: Performance of pre-optimization done (n=11): time 1.132e-06/0.1171, allocations: 0 / 499.7 MB, free: 15.88 MB / 366.1 MB Notification: Performance of matching and sorting (n=11): time 0.000516/0.1176, allocations: 231.2 kB / 499.9 MB, free: 15.64 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.506e-05/0.1177, allocations: 110.8 kB / 0.4883 GB, free: 15.5 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001776/0.1179, allocations: 160 kB / 0.4885 GB, free: 15.34 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.835e-05/0.1179, allocations: 37.64 kB / 0.4885 GB, free: 15.3 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.777e-05/0.118, allocations: 92.14 kB / 0.4886 GB, free: 15.2 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.274e-05/0.118, allocations: 35.67 kB / 0.4886 GB, free: 15.17 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.073e-05/0.1181, allocations: 21.72 kB / 0.4887 GB, free: 15.14 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001741/0.1182, allocations: 330.8 kB / 0.489 GB, free: 14.81 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.939e-05/0.1183, allocations: 35.92 kB / 0.489 GB, free: 14.77 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000101/0.1184, allocations: 57.75 kB / 0.4891 GB, free: 14.71 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002231/0.1187, allocations: 145.1 kB / 0.4892 GB, free: 14.55 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.32e-06/0.1187, allocations: 4 kB / 0.4892 GB, free: 14.55 MB / 366.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003673/0.119, allocations: 187.2 kB / 0.4894 GB, free: 14.35 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.801e-05/0.1191, allocations: 41.69 kB / 0.4894 GB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.314e-06/0.1191, allocations: 4 kB / 0.4894 GB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.595e-05/0.1191, allocations: 0 / 0.4894 GB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.339e-05/0.1192, allocations: 15.94 kB / 0.4895 GB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.616e-06/0.1192, allocations: 4 kB / 0.4895 GB, free: 14.28 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.554e-05/0.1193, allocations: 15.88 kB / 0.4895 GB, free: 14.27 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.278e-05/0.1193, allocations: 4 kB / 0.4895 GB, free: 14.26 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 (timeTable.nextEventScaled,timeTable.nextEvent,$PRE.timeTable.nextEvent,timeTable.last,timeTable.b,timeTable.a,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 6 * 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.0001622/0.1194, allocations: 155.5 kB / 0.4896 GB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.664e-05/0.1195, allocations: 15.95 kB / 0.4896 GB, free: 14.08 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.975e-05/0.1195, allocations: 13.05 kB / 0.4897 GB, free: 14.06 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.1195, allocations: 0 / 0.4897 GB, free: 14.06 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.57e-06/0.1195, allocations: 0 / 0.4897 GB, free: 14.06 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.103e-05/0.1195, allocations: 15.91 kB / 0.4897 GB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002094/0.1198, allocations: 176.6 kB / 0.4898 GB, free: 13.83 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.1198, allocations: 0 / 0.4898 GB, free: 13.83 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.89e-05/0.1198, allocations: 11.98 kB / 0.4898 GB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.1198, allocations: 0 / 0.4898 GB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.202e-05/0.1198, allocations: 4 kB / 0.4899 GB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.868e-06/0.1198, allocations: 4 kB / 0.4899 GB, free: 13.81 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.919e-06/0.1198, allocations: 11.88 kB / 0.4899 GB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003934/0.1202, allocations: 243.6 kB / 0.4901 GB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.244e-05/0.1203, allocations: 19.94 kB / 0.4901 GB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.213e-05/0.1203, allocations: 7.938 kB / 0.4901 GB, free: 13.51 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.107e-05/0.1204, allocations: 11.98 kB / 0.4901 GB, free: 13.5 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.663e-05/0.1204, allocations: 7.938 kB / 0.4901 GB, free: 13.49 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.582e-05/0.1204, allocations: 7.984 kB / 0.4902 GB, free: 13.48 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001126/0.1206, allocations: 127.2 kB / 0.4903 GB, free: 13.36 MB / 366.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.1206, allocations: 0 / 0.4903 GB, free: 13.36 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003346/0.1209, allocations: 75.8 kB / 0.4903 GB, free: 13.28 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 6 (timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,timeTable.b,timeTable.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * 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 Backend phase and start with SimCode phase: time 0.001796/0.1227, allocations: 1.048 MB / 0.4914 GB, free: 12.29 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003527/0.123, allocations: 167.2 kB / 0.4915 GB, free: 12.11 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.069e-06/0.123, allocations: 4 kB / 0.4915 GB, free: 12.11 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000171/0.1232, allocations: 111.4 kB / 0.4916 GB, free: 11.98 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002727/0.1235, allocations: 23.73 kB / 0.4917 GB, free: 11.96 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002712/0.1262, allocations: 1.875 MB / 0.4935 GB, free: 9.984 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004414/0.1266, allocations: 0.7007 MB / 0.4942 GB, free: 9.258 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.446e-05/0.1267, allocations: 20.41 kB / 0.4942 GB, free: 9.238 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.312e-05/0.1268, allocations: 31.42 kB / 0.4942 GB, free: 9.207 MB / 366.1 MB Notification: Performance of SimCode: time 6.42e-07/0.1268, allocations: 0 / 0.4942 GB, free: 9.207 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03796/0.1648, allocations: 4.474 MB / 0.4986 GB, free: 4.77 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.42/11.59, allocations: 2.812 kB / 0.4986 GB, free: 4.77 MB / 366.1 MB " [Timeout remaining time 648] (rm -f ExternData_ExternData.Examples.JSONTest.pipe ; mkfifo ExternData_ExternData.Examples.JSONTest.pipe ; head -c 1048576 < ExternData_ExternData.Examples.JSONTest.pipe >> ../files/ExternData_ExternData.Examples.JSONTest.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ExternData_ExternData_Examples_JSONTest_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 ExternData_ExternData_Examples_JSONTest.fmu > ExternData_ExternData.Examples.JSONTest.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.31870599114336] Failed to read output from testmodel.py, exit status != 0: 11.699756383895874 11.8852741 11.768287715 Calling exit ...