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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00163/0.00163, allocations: 103.9 kB / 16.45 MB, free: 6.445 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001866/0.001866, allocations: 187.7 kB / 19.4 MB, free: 3.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.506/1.506, allocations: 225.6 MB / 247.8 MB, free: 3.75 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.5/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.5/package.mo): time 0.01358/0.01358, allocations: 2.974 MB / 305.7 MB, free: 3.406 MB / 238.1 MB " [Timeout remaining time 180] Using package ExternData with version 3.0.5 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.5/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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: Performance of FrontEnd - loaded program: time 0.001975/0.001975, allocations: 67.89 kB / 425.4 MB, free: 3.766 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2834/0.2853, allocations: 53.07 MB / 478.5 MB, free: 26.36 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.JSONTest): time 0.002729/0.2881, allocations: 1.707 MB / 480.2 MB, free: 25.18 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001835/0.2899, allocations: 1.635 MB / 481.8 MB, free: 24.05 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.285e-05/0.29, allocations: 0 / 481.8 MB, free: 24.05 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.5/package.mo:104:3-139:15:writable] Warning: Pure function 'ExternData.JSONFile' contains a call to impure function 'ExternData.Types.ExternJSONFile.constructor'. Notification: Performance of NFTyping.typeComponents: time 0.0003746/0.2903, allocations: 47.03 kB / 481.9 MB, free: 24.02 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000357/0.2907, allocations: 130.3 kB / 482 MB, free: 23.95 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000227/0.2909, allocations: 84.05 kB / 482.1 MB, free: 23.91 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001306/0.2911, allocations: 86.56 kB / 482.2 MB, free: 23.88 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.065e-05/0.2912, allocations: 7.469 kB / 482.2 MB, free: 23.87 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.97e-05/0.2912, allocations: 41.19 kB / 482.2 MB, free: 23.85 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001796/0.2914, allocations: 41.72 kB / 482.2 MB, free: 23.83 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.684e-05/0.2914, allocations: 6.219 kB / 482.3 MB, free: 23.83 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002624/0.2917, allocations: 201.4 kB / 482.5 MB, free: 23.77 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 6.346e-05/0.2917, allocations: 28.03 kB / 482.5 MB, free: 23.75 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 5.804e-05/0.2918, allocations: 47.8 kB / 482.5 MB, free: 23.72 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003115/0.2921, allocations: 232.6 kB / 482.8 MB, free: 23.64 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.2921, allocations: 0 / 482.8 MB, free: 23.64 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.2921, allocations: 0 / 482.8 MB, free: 23.64 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.233e-05/0.2921, allocations: 2.781 kB / 482.8 MB, free: 23.64 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0005616/0.2927, allocations: 484.6 kB / 483.2 MB, free: 23.18 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.067e-05/0.2927, allocations: 12.95 kB / 483.2 MB, free: 23.18 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.645e-05/0.2928, allocations: 33.56 kB / 483.3 MB, free: 23.14 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.453e-05/0.2928, allocations: 18.78 kB / 483.3 MB, free: 23.13 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002524/0.2931, allocations: 214.2 kB / 483.5 MB, free: 22.91 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.529e-05/0.2931, allocations: 7.312 kB / 483.5 MB, free: 22.91 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.905e-05/0.2931, allocations: 6.969 kB / 483.5 MB, free: 22.9 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001831/0.2933, allocations: 86.28 kB / 483.6 MB, free: 22.84 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.678e-06/0.2933, allocations: 0 / 483.6 MB, free: 22.84 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.267e-05/0.2933, allocations: 7 kB / 483.6 MB, free: 22.84 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.688e-06/0.2933, allocations: 3.938 kB / 483.6 MB, free: 22.84 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001164/0.2934, allocations: 62.14 kB / 483.7 MB, free: 22.82 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003478/0.2938, allocations: 320.5 kB / 484 MB, free: 22.51 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002246/0.294, allocations: 88.14 kB / 484.1 MB, free: 22.45 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.477e-05/0.2941, allocations: 49.45 kB / 484.1 MB, free: 22.42 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.535e-05/0.2941, allocations: 3 kB / 484.1 MB, free: 22.42 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001875/0.2943, allocations: 141.7 kB / 484.3 MB, free: 22.3 MB / 366.1 MB Notification: Performance of pre-optimization done (n=11): time 1.673e-06/0.2943, allocations: 3.984 kB / 484.3 MB, free: 22.3 MB / 366.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004063/0.2947, allocations: 238.8 kB / 484.5 MB, free: 22.18 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.115e-05/0.2947, allocations: 109.8 kB / 484.6 MB, free: 22.05 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001121/0.2948, allocations: 155.2 kB / 484.8 MB, free: 21.94 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.338e-05/0.2949, allocations: 28.7 kB / 484.8 MB, free: 21.91 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.401e-05/0.2949, allocations: 91.14 kB / 484.9 MB, free: 21.82 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.86e-05/0.2949, allocations: 30.12 kB / 484.9 MB, free: 21.79 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.304e-05/0.295, allocations: 29.8 kB / 484.9 MB, free: 21.77 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.649e-05/0.295, allocations: 324.8 kB / 485.2 MB, free: 21.45 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.142e-05/0.2951, allocations: 39.38 kB / 485.3 MB, free: 21.44 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.834e-05/0.2952, allocations: 52.7 kB / 485.3 MB, free: 21.41 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001491/0.2953, allocations: 151.4 kB / 485.5 MB, free: 21.3 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.2953, allocations: 0 / 485.5 MB, free: 21.3 MB / 366.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002744/0.2956, allocations: 193 kB / 485.7 MB, free: 21.2 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.415e-05/0.2956, allocations: 33.8 kB / 485.7 MB, free: 21.16 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.522e-06/0.2956, allocations: 4.609 kB / 485.7 MB, free: 21.16 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.73e-05/0.2956, allocations: 3.062 kB / 485.7 MB, free: 21.16 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.826e-05/0.2957, allocations: 17.47 kB / 485.7 MB, free: 21.16 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.909e-06/0.2957, allocations: 0 / 485.7 MB, free: 21.16 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.108e-05/0.2958, allocations: 13.97 kB / 485.7 MB, free: 21.15 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.059e-05/0.2958, allocations: 3 kB / 485.7 MB, free: 21.15 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 9.256e-05/0.2959, allocations: 158.7 kB / 485.9 MB, free: 21 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.663e-05/0.2959, allocations: 13.23 kB / 485.9 MB, free: 20.99 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.847e-05/0.2959, allocations: 15.84 kB / 485.9 MB, free: 20.98 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.873e-06/0.2959, allocations: 0 / 485.9 MB, free: 20.98 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.2959, allocations: 0 / 485.9 MB, free: 20.98 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.2959, allocations: 6.969 kB / 485.9 MB, free: 20.97 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001311/0.2961, allocations: 223 kB / 486.2 MB, free: 20.75 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.2961, allocations: 0 / 486.2 MB, free: 20.75 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.472e-05/0.2961, allocations: 6.188 kB / 486.2 MB, free: 20.75 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.2961, allocations: 3.062 kB / 486.2 MB, free: 20.75 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.459e-05/0.2961, allocations: 6.547 kB / 486.2 MB, free: 20.75 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/0.2961, allocations: 0 / 486.2 MB, free: 20.75 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.2961, allocations: 0 / 486.2 MB, free: 20.75 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003031/0.2964, allocations: 249.2 kB / 486.4 MB, free: 20.6 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.445e-05/0.2965, allocations: 95.61 kB / 486.5 MB, free: 20.49 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.038e-05/0.2965, allocations: 3.031 kB / 486.5 MB, free: 20.49 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.183e-05/0.2966, allocations: 6.125 kB / 486.5 MB, free: 20.49 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.316e-05/0.2966, allocations: 18.55 kB / 486.5 MB, free: 20.48 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.762e-05/0.2967, allocations: 3.062 kB / 486.5 MB, free: 20.48 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.138e-05/0.2967, allocations: 128.3 kB / 486.7 MB, free: 20.39 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2967, allocations: 3 kB / 486.7 MB, free: 20.39 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003246/0.2971, allocations: 77.25 kB / 486.7 MB, free: 20.37 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.00156/0.2986, allocations: 1.065 MB / 487.8 MB, free: 19.58 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002805/0.2989, allocations: 158.3 kB / 488 MB, free: 19.49 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.2989, allocations: 0 / 488 MB, free: 19.49 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001097/0.299, allocations: 116.4 kB / 488.1 MB, free: 19.4 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002431/0.2993, allocations: 23.12 kB / 488.1 MB, free: 19.39 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001811/0.3011, allocations: 1.879 MB / 490 MB, free: 17.97 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001516/0.3012, allocations: 0.7077 MB / 490.7 MB, free: 17.27 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.11e-05/0.3013, allocations: 20.33 kB / 490.7 MB, free: 17.27 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.286e-05/0.3013, allocations: 36.02 kB / 490.7 MB, free: 17.24 MB / 366.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3013, allocations: 0 / 490.7 MB, free: 17.24 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03278/0.3341, allocations: 4.319 MB / 495.1 MB, free: 16.4 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.145/8.479, allocations: 5.938 kB / 495.1 MB, free: 16.39 MB / 366.1 MB " [Timeout remaining time 651] (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: 11.005429135635495] Failed to read output from testmodel.py, exit status != 0: 8.554056538268924 8.573752745 8.277891214 Calling exit ...