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.001311/0.001311, allocations: 113.5 kB / 19.73 MB, free: 2.242 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.001528/0.001528, allocations: 223.7 kB / 23.05 MB, free: 5.074 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.429/1.429, allocations: 230.6 MB / 256.8 MB, free: 7.988 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.01528/0.01528, allocations: 3.264 MB / 316.5 MB, free: 15.83 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternData.Examples.JSONTest,fileNamePrefix="ExternData_ExternData_Examples_JSONTest",fmuType="cs",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.001977/0.001977, allocations: 64.19 kB / 440.4 MB, free: 12.28 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09528/0.09726, allocations: 54.38 MB / 494.7 MB, free: 5.809 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.JSONTest): time 0.003318/0.1006, allocations: 1.733 MB / 496.5 MB, free: 4.062 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002555/0.1031, allocations: 1.769 MB / 498.2 MB, free: 2.285 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.708e-05/0.1032, allocations: 3.938 kB / 498.2 MB, free: 2.281 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.0003052/0.1035, allocations: 39.78 kB / 498.3 MB, free: 2.242 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003486/0.1038, allocations: 135.4 kB / 498.4 MB, free: 2.109 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002238/0.1041, allocations: 83.78 kB / 498.5 MB, free: 2.027 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001406/0.1042, allocations: 87.75 kB / 498.6 MB, free: 1.941 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.221e-05/0.1043, allocations: 8.234 kB / 498.6 MB, free: 1.93 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.449e-05/0.1044, allocations: 43.8 kB / 498.6 MB, free: 1.887 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001739/0.1045, allocations: 39.83 kB / 498.7 MB, free: 1.848 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.067e-05/0.1046, allocations: 4 kB / 498.7 MB, free: 1.844 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003217/0.1049, allocations: 207.8 kB / 498.9 MB, free: 1.641 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.402e-05/0.105, allocations: 19.92 kB / 498.9 MB, free: 1.621 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.919e-05/0.105, allocations: 47.78 kB / 498.9 MB, free: 1.574 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003872/0.1054, allocations: 239.2 kB / 499.2 MB, free: 1.34 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.75e-06/0.1054, allocations: 0 / 499.2 MB, free: 1.34 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.1054, allocations: 0 / 499.2 MB, free: 1.34 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.281e-06/0.1054, allocations: 0 / 499.2 MB, free: 1.34 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.0007088/0.1061, allocations: 415 kB / 499.6 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.25e-05/0.1062, allocations: 12.03 kB / 499.6 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.64e-05/0.1062, allocations: 192 / 499.6 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.028e-05/0.1062, allocations: 42.75 kB / 499.6 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.852e-05/0.1063, allocations: 8.891 kB / 499.6 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003034/0.1066, allocations: 158.3 kB / 499.8 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.48e-05/0.1066, allocations: 8.125 kB / 499.8 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.269e-05/0.1066, allocations: 0 / 499.8 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002199/0.1068, allocations: 95.38 kB / 499.9 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.475e-06/0.1068, allocations: 3.938 kB / 499.9 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.111e-05/0.1069, allocations: 0 / 499.9 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.282e-06/0.1069, allocations: 8 kB / 499.9 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001371/0.107, allocations: 55.91 kB / 500 MB, free: 480 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004149/0.1074, allocations: 284.7 kB / 0.4885 GB, free: 148 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002383/0.1076, allocations: 93.12 kB / 0.4886 GB, free: 36 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001211/0.1078, allocations: 53.83 kB / 0.4887 GB, free: 15.98 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.468e-05/0.1078, allocations: 0 / 0.4887 GB, free: 15.98 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002272/0.108, allocations: 138.7 kB / 0.4888 GB, free: 15.82 MB / 366.1 MB Notification: Performance of pre-optimization done (n=11): time 9.92e-07/0.108, allocations: 3.938 kB / 0.4888 GB, free: 15.81 MB / 366.1 MB Notification: Performance of matching and sorting (n=11): time 0.0005163/0.1085, allocations: 231.4 kB / 0.489 GB, free: 15.57 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.657e-05/0.1086, allocations: 110.8 kB / 0.4891 GB, free: 15.44 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001623/0.1088, allocations: 165.7 kB / 0.4893 GB, free: 15.27 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.133e-05/0.1088, allocations: 25.7 kB / 0.4893 GB, free: 15.24 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.982e-05/0.1088, allocations: 96.12 kB / 0.4894 GB, free: 15.14 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.108e-05/0.1089, allocations: 31.75 kB / 0.4894 GB, free: 15.11 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.053e-05/0.1089, allocations: 25.7 kB / 0.4894 GB, free: 15.08 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001517/0.1091, allocations: 326.8 kB / 0.4898 GB, free: 14.75 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.938e-05/0.1092, allocations: 35.98 kB / 0.4898 GB, free: 14.71 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.278e-05/0.1093, allocations: 49.69 kB / 0.4898 GB, free: 14.66 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002003/0.1095, allocations: 145.3 kB / 0.49 GB, free: 14.5 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.1095, allocations: 3.938 kB / 0.49 GB, free: 14.5 MB / 366.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003127/0.1098, allocations: 187.3 kB / 0.4902 GB, free: 14.3 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.529e-05/0.1098, allocations: 45.69 kB / 0.4902 GB, free: 14.25 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/0.1098, allocations: 0 / 0.4902 GB, free: 14.25 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.666e-05/0.1099, allocations: 8 kB / 0.4902 GB, free: 14.24 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.473e-05/0.1099, allocations: 11.98 kB / 0.4902 GB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.2e-06/0.1099, allocations: 3.938 kB / 0.4902 GB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.815e-05/0.11, allocations: 15.89 kB / 0.4902 GB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.157e-05/0.11, allocations: 4 kB / 0.4902 GB, free: 14.21 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.0001324/0.1101, allocations: 155.5 kB / 0.4904 GB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.352e-05/0.1102, allocations: 15.95 kB / 0.4904 GB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.092e-05/0.1102, allocations: 16.7 kB / 0.4904 GB, free: 14 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.694e-06/0.1102, allocations: 0 / 0.4904 GB, free: 14 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.406e-06/0.1102, allocations: 0 / 0.4904 GB, free: 14 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.538e-06/0.1102, allocations: 3.938 kB / 0.4904 GB, free: 14 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001745/0.1104, allocations: 192.5 kB / 0.4906 GB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.1104, allocations: 0 / 0.4906 GB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.45e-05/0.1105, allocations: 11.94 kB / 0.4906 GB, free: 13.76 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.734e-06/0.1105, allocations: 0 / 0.4906 GB, free: 13.76 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.594e-05/0.1105, allocations: 8 kB / 0.4906 GB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.1105, allocations: 0 / 0.4906 GB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.1105, allocations: 4 kB / 0.4906 GB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003812/0.1109, allocations: 247.5 kB / 0.4909 GB, free: 13.48 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.87e-05/0.1109, allocations: 11.94 kB / 0.4909 GB, free: 13.46 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.444e-05/0.1109, allocations: 8 kB / 0.4909 GB, free: 13.46 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.618e-05/0.111, allocations: 4 kB / 0.4909 GB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.549e-05/0.111, allocations: 15.92 kB / 0.4909 GB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.888e-05/0.111, allocations: 8 kB / 0.4909 GB, free: 13.43 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001095/0.1111, allocations: 126.1 kB / 0.491 GB, free: 13.31 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1111, allocations: 4 kB / 0.491 GB, free: 13.3 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003151/0.1115, allocations: 75.73 kB / 0.4911 GB, free: 13.23 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.001642/0.1131, allocations: 1.06 MB / 0.4921 GB, free: 12.22 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002999/0.1134, allocations: 167.3 kB / 0.4923 GB, free: 12.05 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.1134, allocations: 0 / 0.4923 GB, free: 12.05 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001416/0.1135, allocations: 103.4 kB / 0.4924 GB, free: 11.93 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002405/0.1138, allocations: 27.78 kB / 0.4924 GB, free: 11.91 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002254/0.116, allocations: 1.874 MB / 0.4943 GB, free: 9.93 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002971/0.1163, allocations: 0.6967 MB / 0.4949 GB, free: 9.207 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.477e-05/0.1164, allocations: 16.42 kB / 0.495 GB, free: 9.191 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.744e-05/0.1165, allocations: 39.34 kB / 0.495 GB, free: 9.152 MB / 366.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1165, allocations: 112 / 0.495 GB, free: 9.152 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02753/0.144, allocations: 4.502 MB / 0.4994 GB, free: 4.699 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.11/11.25, allocations: 13.89 kB / 0.4994 GB, free: 4.691 MB / 366.1 MB " [Timeout remaining time 649] (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 os._exit(0), Time elapsed: 13.914402626920491] Failed to read output from testmodel.py, exit status != 0: 11.414285559905693 11.594449704 11.485870665 Calling exit ...