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.5/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008024/0.008024, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.001656/0.001657, allocations: 200.3 kB / 16.68 MB, free: 5.934 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.452/1.452, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.5/package.mo): time 0.01462/0.01462, allocations: 2.96 MB / 293.5 MB, free: 11.76 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001841/0.001841, allocations: 65.64 kB / 405.8 MB, free: 29.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08724/0.0891, allocations: 50.33 MB / 456.1 MB, free: 10.88 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.JSONTest): time 0.003053/0.0922, allocations: 1.7 MB / 457.8 MB, free: 9.172 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002398/0.09462, allocations: 1.615 MB / 459.4 MB, free: 7.547 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.715e-05/0.0947, allocations: 4 kB / 459.4 MB, free: 7.543 MB / 334.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.0002938/0.095, allocations: 39.78 kB / 459.5 MB, free: 7.504 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003487/0.09535, allocations: 119.4 kB / 459.6 MB, free: 7.387 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002426/0.09561, allocations: 95.7 kB / 459.7 MB, free: 7.293 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000142/0.09576, allocations: 91.7 kB / 459.8 MB, free: 7.203 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.113e-05/0.09586, allocations: 16.22 kB / 459.8 MB, free: 7.184 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.867e-05/0.09595, allocations: 39.84 kB / 459.8 MB, free: 7.145 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001719/0.09612, allocations: 35.84 kB / 459.9 MB, free: 7.109 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.132e-05/0.09616, allocations: 4 kB / 459.9 MB, free: 7.105 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003233/0.09649, allocations: 211.7 kB / 460.1 MB, free: 6.898 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.606e-05/0.09655, allocations: 19.92 kB / 460.1 MB, free: 6.879 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.404e-05/0.09662, allocations: 39.8 kB / 460.1 MB, free: 6.84 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003603/0.09699, allocations: 247.1 kB / 460.4 MB, free: 6.598 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.097, allocations: 0 / 460.4 MB, free: 6.598 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.09701, allocations: 0 / 460.4 MB, free: 6.598 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.769e-06/0.09702, allocations: 0 / 460.4 MB, free: 6.598 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.0006758/0.0977, allocations: 488.1 kB / 460.8 MB, free: 6.066 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.456e-05/0.09774, allocations: 11.89 kB / 460.9 MB, free: 6.055 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.732e-05/0.09779, allocations: 38.75 kB / 460.9 MB, free: 6.008 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.591e-05/0.09784, allocations: 12.84 kB / 460.9 MB, free: 5.996 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002755/0.09812, allocations: 204.2 kB / 461.1 MB, free: 5.758 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.396e-05/0.09814, allocations: 8.375 kB / 461.1 MB, free: 5.75 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.566e-05/0.09816, allocations: 7.938 kB / 461.1 MB, free: 5.742 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002094/0.09838, allocations: 91.31 kB / 461.2 MB, free: 5.641 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.185e-06/0.0984, allocations: 0 / 461.2 MB, free: 5.641 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.345e-05/0.09841, allocations: 8 kB / 461.2 MB, free: 5.633 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.148e-06/0.09843, allocations: 4 kB / 461.2 MB, free: 5.629 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001649/0.09859, allocations: 51.97 kB / 461.3 MB, free: 5.578 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004178/0.09902, allocations: 317.6 kB / 461.6 MB, free: 5.215 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002451/0.09928, allocations: 101.3 kB / 461.7 MB, free: 5.098 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001115/0.0994, allocations: 57.73 kB / 461.7 MB, free: 5.035 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.454e-05/0.09942, allocations: 4 kB / 461.7 MB, free: 5.031 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002205/0.09965, allocations: 146.6 kB / 461.9 MB, free: 4.863 MB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 1.393e-06/0.09966, allocations: 4 kB / 461.9 MB, free: 4.859 MB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004807/0.1001, allocations: 235.2 kB / 462.1 MB, free: 4.617 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.857e-05/0.1002, allocations: 106.8 kB / 462.2 MB, free: 4.488 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001592/0.1004, allocations: 160.6 kB / 462.4 MB, free: 4.324 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.994e-05/0.1004, allocations: 25.7 kB / 462.4 MB, free: 4.293 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.838e-05/0.1005, allocations: 96.14 kB / 462.5 MB, free: 4.195 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.635e-05/0.1005, allocations: 31.88 kB / 462.5 MB, free: 4.164 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.348e-05/0.1006, allocations: 25.72 kB / 462.6 MB, free: 4.133 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001468/0.1008, allocations: 334.8 kB / 462.9 MB, free: 3.797 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.783e-05/0.1008, allocations: 35.97 kB / 462.9 MB, free: 3.762 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.446e-05/0.1009, allocations: 53.7 kB / 463 MB, free: 3.703 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000207/0.1012, allocations: 152.9 kB / 463.1 MB, free: 3.535 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.1012, allocations: 0 / 463.1 MB, free: 3.535 MB / 334.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003189/0.1015, allocations: 199.2 kB / 463.3 MB, free: 3.328 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.937e-05/0.1015, allocations: 37.69 kB / 463.3 MB, free: 3.285 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.777e-06/0.1016, allocations: 0 / 463.3 MB, free: 3.285 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.124e-05/0.1016, allocations: 0 / 463.3 MB, free: 3.285 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.183e-05/0.1016, allocations: 8 kB / 463.4 MB, free: 3.277 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.983e-06/0.1016, allocations: 4 kB / 463.4 MB, free: 3.273 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.995e-05/0.1017, allocations: 19.86 kB / 463.4 MB, free: 3.254 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.19e-05/0.1018, allocations: 4 kB / 463.4 MB, free: 3.25 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.0001371/0.1019, allocations: 156.1 kB / 463.5 MB, free: 3.082 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.332e-05/0.1019, allocations: 15.95 kB / 463.5 MB, free: 3.066 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.933e-05/0.102, allocations: 16.72 kB / 463.6 MB, free: 3.047 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.102, allocations: 0 / 463.6 MB, free: 3.047 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.102, allocations: 3.938 kB / 463.6 MB, free: 3.043 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.231e-06/0.102, allocations: 7.938 kB / 463.6 MB, free: 3.035 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001894/0.1022, allocations: 205.5 kB / 463.8 MB, free: 2.785 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.1022, allocations: 0 / 463.8 MB, free: 2.785 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.352e-05/0.1023, allocations: 11.98 kB / 463.8 MB, free: 2.773 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.1023, allocations: 0 / 463.8 MB, free: 2.773 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.338e-05/0.1023, allocations: 4 kB / 463.8 MB, free: 2.77 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.1023, allocations: 4 kB / 463.8 MB, free: 2.766 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.866e-06/0.1023, allocations: 4 kB / 463.8 MB, free: 2.762 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004017/0.1027, allocations: 243.5 kB / 464 MB, free: 2.496 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.43e-05/0.1028, allocations: 93.05 kB / 464.1 MB, free: 2.387 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.077e-05/0.1028, allocations: 4 kB / 464.1 MB, free: 2.383 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.585e-05/0.1029, allocations: 4 kB / 464.1 MB, free: 2.379 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.983e-05/0.1029, allocations: 19.92 kB / 464.2 MB, free: 2.359 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.639e-05/0.103, allocations: 8 kB / 464.2 MB, free: 2.352 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001105/0.1031, allocations: 123.2 kB / 464.3 MB, free: 2.23 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1031, allocations: 0 / 464.3 MB, free: 2.23 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003156/0.1034, allocations: 87.67 kB / 464.4 MB, free: 2.145 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.001672/0.1051, allocations: 1.078 MB / 465.4 MB, free: 1.125 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003336/0.1054, allocations: 179.4 kB / 465.6 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.093e-06/0.1054, allocations: 0 / 465.6 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001734/0.1056, allocations: 139.6 kB / 465.8 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002218/0.1059, allocations: 20.02 kB / 465.8 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002366/0.1082, allocations: 1.88 MB / 467.7 MB, free: 14.79 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000361/0.1086, allocations: 0.7039 MB / 468.4 MB, free: 14.05 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.797e-05/0.1087, allocations: 16.42 kB / 468.4 MB, free: 14.04 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.976e-05/0.1088, allocations: 43.41 kB / 468.4 MB, free: 14 MB / 350.1 MB Notification: Performance of SimCode: time 7.01e-07/0.1088, allocations: 4 kB / 468.4 MB, free: 13.99 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03626/0.1451, allocations: 4.289 MB / 472.7 MB, free: 9.727 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.193/8.338, allocations: 22.69 kB / 472.7 MB, free: 9.711 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)