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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo", uses=false) Using package ExternData with version 3.0.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004912/0.004912, allocations: 100.2 kB / 15.73 MB, free: 6.062 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001208/0.001208, allocations: 199.9 kB / 16.68 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.321/1.321, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo): time 0.0143/0.0143, allocations: 2.961 MB / 293.5 MB, free: 11.79 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001278/0.001278, allocations: 59.91 kB / 405.8 MB, free: 29.28 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07722/0.07851, allocations: 50.35 MB / 456.1 MB, free: 10.88 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.JSONTest): time 0.003007/0.08155, allocations: 1.699 MB / 457.8 MB, free: 9.18 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002378/0.08396, allocations: 1.619 MB / 459.4 MB, free: 7.551 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.847e-05/0.08408, allocations: 0 / 459.4 MB, free: 7.551 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/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.0003463/0.08444, allocations: 43.77 kB / 459.5 MB, free: 7.508 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000403/0.08485, allocations: 119.5 kB / 459.6 MB, free: 7.391 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002736/0.08514, allocations: 91.77 kB / 459.7 MB, free: 7.301 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001745/0.08532, allocations: 87.7 kB / 459.8 MB, free: 7.215 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.536e-05/0.08542, allocations: 12.23 kB / 459.8 MB, free: 7.199 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.565e-05/0.08553, allocations: 43.83 kB / 459.8 MB, free: 7.156 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001914/0.08573, allocations: 39.84 kB / 459.8 MB, free: 7.117 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.028e-05/0.08576, allocations: 8 kB / 459.9 MB, free: 7.109 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003389/0.0861, allocations: 203.7 kB / 460.1 MB, free: 6.91 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.679e-05/0.08618, allocations: 19.92 kB / 460.1 MB, free: 6.891 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.731e-05/0.08626, allocations: 39.8 kB / 460.1 MB, free: 6.852 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004095/0.08667, allocations: 239.5 kB / 460.3 MB, free: 6.617 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.08669, allocations: 4 kB / 460.3 MB, free: 6.613 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.0867, allocations: 3.938 kB / 460.4 MB, free: 6.609 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.486e-06/0.08671, allocations: 0 / 460.4 MB, free: 6.609 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0006353/0.08735, allocations: 485.5 kB / 460.8 MB, free: 6.082 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.831e-05/0.0874, allocations: 11.89 kB / 460.8 MB, free: 6.07 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.605e-05/0.08746, allocations: 42.73 kB / 460.9 MB, free: 6.02 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.232e-05/0.08752, allocations: 8.844 kB / 460.9 MB, free: 6.012 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003237/0.08785, allocations: 204.1 kB / 461.1 MB, free: 5.773 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.248e-05/0.08787, allocations: 384 / 461.1 MB, free: 5.773 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.987e-05/0.0879, allocations: 7.938 kB / 461.1 MB, free: 5.766 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002276/0.08813, allocations: 103.3 kB / 461.2 MB, free: 5.652 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.145e-06/0.08815, allocations: 3.938 kB / 461.2 MB, free: 5.648 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.406e-05/0.08817, allocations: 7.969 kB / 461.2 MB, free: 5.641 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.176e-06/0.08819, allocations: 0 / 461.2 MB, free: 5.641 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001405/0.08833, allocations: 51.97 kB / 461.3 MB, free: 5.59 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000449/0.08879, allocations: 321.6 kB / 461.6 MB, free: 5.223 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002576/0.08906, allocations: 105.2 kB / 461.7 MB, free: 5.102 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001052/0.08918, allocations: 53.75 kB / 461.7 MB, free: 5.043 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.525e-05/0.08921, allocations: 4 kB / 461.7 MB, free: 5.039 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002031/0.08941, allocations: 142.7 kB / 461.9 MB, free: 4.875 MB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 1.653e-06/0.08943, allocations: 4 kB / 461.9 MB, free: 4.871 MB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004639/0.0899, allocations: 223.2 kB / 462.1 MB, free: 4.641 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.605e-05/0.08996, allocations: 106.8 kB / 462.2 MB, free: 4.512 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001392/0.09011, allocations: 156.4 kB / 462.4 MB, free: 4.352 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.799e-05/0.09014, allocations: 29.7 kB / 462.4 MB, free: 4.316 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.735e-05/0.09019, allocations: 104 kB / 462.5 MB, free: 4.211 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.418e-05/0.09023, allocations: 27.66 kB / 462.5 MB, free: 4.184 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.749e-05/0.09029, allocations: 25.78 kB / 462.5 MB, free: 4.152 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001128/0.0904, allocations: 330.8 kB / 462.9 MB, free: 3.82 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.343e-05/0.09049, allocations: 35.97 kB / 462.9 MB, free: 3.785 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.661e-05/0.09059, allocations: 53.69 kB / 462.9 MB, free: 3.727 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001807/0.09078, allocations: 153 kB / 463.1 MB, free: 3.559 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.09079, allocations: 0 / 463.1 MB, free: 3.559 MB / 334.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002965/0.09109, allocations: 191.1 kB / 463.3 MB, free: 3.359 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.054e-05/0.09114, allocations: 40.36 kB / 463.3 MB, free: 3.316 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.09115, allocations: 0 / 463.3 MB, free: 3.316 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.615e-05/0.09117, allocations: 4 kB / 463.3 MB, free: 3.312 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.368e-05/0.09124, allocations: 11.98 kB / 463.3 MB, free: 3.301 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.092e-06/0.09126, allocations: 3.938 kB / 463.3 MB, free: 3.297 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.753e-05/0.09134, allocations: 11.94 kB / 463.4 MB, free: 3.285 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.138e-05/0.09136, allocations: 8 kB / 463.4 MB, free: 3.277 MB / 334.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.0001453/0.09152, allocations: 160.1 kB / 463.5 MB, free: 3.105 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.695e-05/0.09156, allocations: 15.81 kB / 463.5 MB, free: 3.09 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.149e-05/0.0916, allocations: 12.7 kB / 463.5 MB, free: 3.074 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.6e-06/0.09161, allocations: 4 kB / 463.5 MB, free: 3.07 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.09162, allocations: 3.938 kB / 463.6 MB, free: 3.066 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.09163, allocations: 3.938 kB / 463.6 MB, free: 3.062 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001616/0.09179, allocations: 201.6 kB / 463.8 MB, free: 2.816 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.49e-06/0.09181, allocations: 8 kB / 463.8 MB, free: 2.809 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.17e-05/0.09187, allocations: 12 kB / 463.8 MB, free: 2.797 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.394e-06/0.09188, allocations: 0 / 463.8 MB, free: 2.797 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.498e-05/0.0919, allocations: 4.328 kB / 463.8 MB, free: 2.793 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.0919, allocations: 0 / 463.8 MB, free: 2.793 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.09191, allocations: 0 / 463.8 MB, free: 2.793 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000357/0.09227, allocations: 251.3 kB / 464 MB, free: 2.52 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.203e-05/0.09235, allocations: 104.9 kB / 464.1 MB, free: 2.398 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.771e-05/0.09238, allocations: 4 kB / 464.1 MB, free: 2.395 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.91e-05/0.09246, allocations: 12 kB / 464.1 MB, free: 2.383 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.21e-05/0.09251, allocations: 7.922 kB / 464.1 MB, free: 2.375 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.787e-05/0.09253, allocations: 4 kB / 464.2 MB, free: 2.371 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001055/0.09264, allocations: 123.2 kB / 464.3 MB, free: 2.25 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.09265, allocations: 0 / 464.3 MB, free: 2.25 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000325/0.09298, allocations: 79.92 kB / 464.3 MB, free: 2.172 MB / 334.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.001354/0.09434, allocations: 1.065 MB / 465.4 MB, free: 1.176 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003171/0.09467, allocations: 191.3 kB / 465.6 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.09469, allocations: 0 / 465.6 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001534/0.09485, allocations: 135.3 kB / 465.7 MB, free: 0.832 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002308/0.09509, allocations: 23.94 kB / 465.8 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002074/0.09717, allocations: 1.869 MB / 467.6 MB, free: 14.84 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002281/0.09742, allocations: 0.7078 MB / 468.3 MB, free: 14.1 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.901e-05/0.09749, allocations: 20.41 kB / 468.4 MB, free: 14.08 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.482e-05/0.09756, allocations: 39.42 kB / 468.4 MB, free: 14.04 MB / 350.1 MB Notification: Performance of SimCode: time 3.1e-07/0.09756, allocations: 0 / 468.4 MB, free: 14.04 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02318/0.1207, allocations: 4.352 MB / 472.7 MB, free: 9.723 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.58/7.701, allocations: 3.984 kB / 472.7 MB, free: 9.719 MB / 350.1 MB (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 --timeout=50 --tolerance=1e-06 ExternData_ExternData_Examples_JSONTest.fmu > ExternData_ExternData.Examples.JSONTest.pipe 2>&1)