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.001401/0.001401, allocations: 97.31 kB / 19.73 MB, free: 2.117 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.001443/0.001443, allocations: 220.1 kB / 23.03 MB, free: 4.922 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.407/1.407, allocations: 230.6 MB / 256.8 MB, free: 7.805 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.01433/0.01433, allocations: 3.279 MB / 316.5 MB, free: 15.63 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.002027/0.002027, allocations: 59.91 kB / 440.3 MB, free: 11.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0934/0.09542, allocations: 54.38 MB / 494.7 MB, free: 5.5 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.JSONTest): time 0.003202/0.09863, allocations: 1.694 MB / 496.4 MB, free: 3.797 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002523/0.1011, allocations: 1.71 MB / 498.1 MB, free: 2.078 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.565e-05/0.1012, allocations: 0 / 498.1 MB, free: 2.078 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.0002876/0.1015, allocations: 39.73 kB / 498.1 MB, free: 2.039 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003565/0.1018, allocations: 131.4 kB / 498.2 MB, free: 1.91 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002192/0.1021, allocations: 79.8 kB / 498.3 MB, free: 1.832 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001455/0.1022, allocations: 91.7 kB / 498.4 MB, free: 1.742 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.908e-05/0.1023, allocations: 16.2 kB / 498.4 MB, free: 1.723 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.042e-05/0.1024, allocations: 35.86 kB / 498.5 MB, free: 1.688 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000136/0.1025, allocations: 31.86 kB / 498.5 MB, free: 1.656 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.934e-05/0.1025, allocations: 4 kB / 498.5 MB, free: 1.652 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002921/0.1028, allocations: 207.7 kB / 498.7 MB, free: 1.449 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.341e-05/0.1029, allocations: 19.92 kB / 498.7 MB, free: 1.43 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.836e-05/0.1029, allocations: 35.8 kB / 498.7 MB, free: 1.395 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003542/0.1033, allocations: 231.3 kB / 499 MB, free: 1.168 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.1033, allocations: 0 / 499 MB, free: 1.168 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.1033, allocations: 3.938 kB / 499 MB, free: 1.164 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.285e-05/0.1033, allocations: 3.984 kB / 499 MB, free: 1.16 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.0006795/0.104, allocations: 415 kB / 499.4 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.263e-05/0.104, allocations: 8.031 kB / 499.4 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.982e-05/0.1041, allocations: 4.188 kB / 499.4 MB, free: 0.707 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.368e-05/0.1041, allocations: 42.75 kB / 499.4 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.636e-05/0.1041, allocations: 8.891 kB / 499.4 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003125/0.1045, allocations: 150.3 kB / 499.6 MB, free: 488 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.449e-05/0.1045, allocations: 8.125 kB / 499.6 MB, free: 480 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.934e-05/0.1045, allocations: 4 kB / 499.6 MB, free: 476 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000264/0.1048, allocations: 133 kB / 499.7 MB, free: 324 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.326e-06/0.1048, allocations: 0 / 499.7 MB, free: 324 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.25e-05/0.1048, allocations: 3.938 kB / 499.7 MB, free: 320 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.973e-06/0.1048, allocations: 4 kB / 499.7 MB, free: 316 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001622/0.1049, allocations: 85.66 kB / 499.8 MB, free: 224 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004908/0.1054, allocations: 284.7 kB / 0.4884 GB, free: 15.89 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002811/0.1057, allocations: 115 kB / 0.4885 GB, free: 15.76 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000143/0.1059, allocations: 83.44 kB / 0.4886 GB, free: 15.66 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.73e-05/0.1059, allocations: 0 / 0.4886 GB, free: 15.66 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002762/0.1062, allocations: 172.4 kB / 0.4887 GB, free: 15.46 MB / 366.1 MB Notification: Performance of pre-optimization done (n=11): time 1.222e-06/0.1062, allocations: 0 / 0.4887 GB, free: 15.46 MB / 366.1 MB Notification: Performance of matching and sorting (n=11): time 0.0005686/0.1067, allocations: 298.8 kB / 0.489 GB, free: 15.15 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.811e-05/0.1068, allocations: 110.8 kB / 0.4891 GB, free: 15.02 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001705/0.107, allocations: 165 kB / 0.4893 GB, free: 14.85 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.329e-05/0.107, allocations: 29.7 kB / 0.4893 GB, free: 14.81 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.768e-05/0.1071, allocations: 96.08 kB / 0.4894 GB, free: 14.71 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.518e-05/0.1071, allocations: 31.73 kB / 0.4894 GB, free: 14.68 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.195e-05/0.1072, allocations: 25.72 kB / 0.4895 GB, free: 14.65 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001435/0.1073, allocations: 322.8 kB / 0.4898 GB, free: 14.33 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001211/0.1074, allocations: 69.67 kB / 0.4898 GB, free: 14.25 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001186/0.1075, allocations: 91.39 kB / 0.4899 GB, free: 14.15 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002141/0.1078, allocations: 149.3 kB / 0.4901 GB, free: 13.99 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.1078, allocations: 0 / 0.4901 GB, free: 13.99 MB / 366.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003796/0.1081, allocations: 232.9 kB / 0.4903 GB, free: 13.74 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.12e-05/0.1082, allocations: 37.69 kB / 0.4903 GB, free: 13.7 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.1082, allocations: 0 / 0.4903 GB, free: 13.7 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.585e-05/0.1082, allocations: 3.938 kB / 0.4903 GB, free: 13.7 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.314e-05/0.1083, allocations: 12 kB / 0.4903 GB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.036e-05/0.1083, allocations: 4 kB / 0.4903 GB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.846e-05/0.1084, allocations: 19.88 kB / 0.4904 GB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.276e-05/0.1084, allocations: 4 kB / 0.4904 GB, free: 13.66 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.0001409/0.1085, allocations: 159.5 kB / 0.4905 GB, free: 13.48 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.425e-05/0.1086, allocations: 11.95 kB / 0.4905 GB, free: 13.47 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.617e-05/0.1086, allocations: 16.7 kB / 0.4905 GB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.006e-06/0.1086, allocations: 0 / 0.4905 GB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.111e-06/0.1086, allocations: 4 kB / 0.4905 GB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.1086, allocations: 3.938 kB / 0.4905 GB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001752/0.1088, allocations: 168.6 kB / 0.4907 GB, free: 13.24 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.051e-06/0.1088, allocations: 0 / 0.4907 GB, free: 13.24 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.695e-05/0.1089, allocations: 16 kB / 0.4907 GB, free: 13.22 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.927e-06/0.1089, allocations: 4 kB / 0.4907 GB, free: 13.22 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.268e-05/0.1089, allocations: 0 / 0.4907 GB, free: 13.22 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.537e-06/0.1089, allocations: 7.938 kB / 0.4907 GB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.1089, allocations: 0 / 0.4907 GB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004141/0.1093, allocations: 285.2 kB / 0.491 GB, free: 12.9 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.444e-05/0.1093, allocations: 19.88 kB / 0.491 GB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.508e-05/0.1094, allocations: 4 kB / 0.491 GB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.343e-05/0.1094, allocations: 7.984 kB / 0.491 GB, free: 12.87 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.731e-05/0.1095, allocations: 11.94 kB / 0.491 GB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.871e-05/0.1095, allocations: 8 kB / 0.4911 GB, free: 12.85 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001097/0.1096, allocations: 127.2 kB / 0.4912 GB, free: 12.72 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1096, allocations: 0 / 0.4912 GB, free: 12.72 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003346/0.1099, allocations: 71.8 kB / 0.4912 GB, free: 12.65 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.001928/0.1119, allocations: 1.111 MB / 0.4923 GB, free: 11.59 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003835/0.1122, allocations: 226.7 kB / 0.4925 GB, free: 11.35 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.1122, allocations: 0 / 0.4925 GB, free: 11.35 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001741/0.1124, allocations: 141 kB / 0.4927 GB, free: 11.19 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002661/0.1127, allocations: 23.78 kB / 0.4927 GB, free: 11.17 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002498/0.1152, allocations: 2.06 MB / 0.4947 GB, free: 8.98 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.611e-05/0.1153, allocations: 85.48 kB / 0.4948 GB, free: 8.875 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.657e-05/0.1153, allocations: 12.42 kB / 0.4948 GB, free: 8.863 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.482e-05/0.1154, allocations: 43.41 kB / 0.4949 GB, free: 8.82 MB / 366.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1154, allocations: 0 / 0.4949 GB, free: 8.82 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02714/0.1425, allocations: 4.616 MB / 0.4994 GB, free: 4.266 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.35/11.5, allocations: 8 kB / 0.4994 GB, free: 4.258 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 os._exit(0), Time elapsed: 14.003592213033698] Failed to read output from testmodel.py, exit status != 0: 11.662998476065695 11.681244829 11.57467133 Calling exit ...