Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternData_ExternData.Examples.INITest.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.INITest,fileNamePrefix="ExternData_ExternData_Examples_INITest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternData.Examples.INITest,fileNamePrefix="ExternData_ExternData_Examples_INITest",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.004785/0.004785, allocations: 102 kB / 15.73 MB, free: 6.039 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.001186/0.001186, allocations: 194.5 kB / 16.67 MB, free: 5.961 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.299/1.299, 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.01268/0.01268, allocations: 2.966 MB / 293.5 MB, free: 11.77 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001276/0.001276, allocations: 67.89 kB / 405.8 MB, free: 29.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08302/0.08431, allocations: 50.33 MB / 456.1 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.INITest): time 0.002745/0.08709, allocations: 1.556 MB / 457.7 MB, free: 9.293 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001363/0.08848, allocations: 1.012 MB / 458.7 MB, free: 8.273 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.14e-05/0.08856, allocations: 4 kB / 458.7 MB, free: 8.27 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo:79:3-102:14:writable] Warning: Pure function 'ExternData.INIFile' contains a call to impure function 'ExternData.Types.ExternINIFile.constructor'. Notification: Performance of NFTyping.typeComponents: time 0.0002307/0.08879, allocations: 27.86 kB / 458.7 MB, free: 8.242 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003424/0.08915, allocations: 107.5 kB / 458.8 MB, free: 8.137 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.783e-05/0.08918, allocations: 4 kB / 458.8 MB, free: 8.133 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 7.086e-05/0.08926, allocations: 35.86 kB / 458.8 MB, free: 8.098 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.341e-05/0.08935, allocations: 18.78 kB / 458.9 MB, free: 8.082 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.19e-05/0.0894, allocations: 7.938 kB / 458.9 MB, free: 8.074 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001226/0.08953, allocations: 19.92 kB / 458.9 MB, free: 8.055 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.158e-05/0.08955, allocations: 8 kB / 458.9 MB, free: 8.047 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001894/0.08974, allocations: 111.8 kB / 459 MB, free: 7.938 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.444e-05/0.08978, allocations: 11.98 kB / 459 MB, free: 7.926 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.814e-05/0.08981, allocations: 15.86 kB / 459 MB, free: 7.91 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002331/0.09005, allocations: 131.7 kB / 459.2 MB, free: 7.781 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.09006, allocations: 0 / 459.2 MB, free: 7.781 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.09007, allocations: 0 / 459.2 MB, free: 7.781 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.546e-06/0.09008, allocations: 0 / 459.2 MB, free: 7.781 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0004642/0.09055, allocations: 384.1 kB / 459.5 MB, free: 7.359 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.749e-05/0.0906, allocations: 15.89 kB / 459.5 MB, free: 7.344 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.272e-05/0.09064, allocations: 34.75 kB / 459.6 MB, free: 7.301 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.827e-05/0.09067, allocations: 4.938 kB / 459.6 MB, free: 7.297 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002036/0.09088, allocations: 172.3 kB / 459.8 MB, free: 7.09 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.03e-05/0.0909, allocations: 4.375 kB / 459.8 MB, free: 7.086 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.977e-06/0.09091, allocations: 4.375 kB / 459.8 MB, free: 7.082 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000128/0.09104, allocations: 45.62 kB / 459.8 MB, free: 7.031 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.213e-06/0.09106, allocations: 3.938 kB / 459.8 MB, free: 7.027 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.792e-06/0.09107, allocations: 0 / 459.8 MB, free: 7.027 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.133e-06/0.09109, allocations: 8 kB / 459.8 MB, free: 7.02 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.497e-05/0.09118, allocations: 23.92 kB / 459.8 MB, free: 6.996 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003232/0.09151, allocations: 268.9 kB / 460.1 MB, free: 6.684 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001661/0.09168, allocations: 42.62 kB / 460.1 MB, free: 6.633 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.153e-05/0.09174, allocations: 20.8 kB / 460.2 MB, free: 6.609 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.154e-05/0.09177, allocations: 7.938 kB / 460.2 MB, free: 6.602 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.188e-05/0.09179, allocations: 38.64 kB / 460.2 MB, free: 6.555 MB / 334.1 MB Notification: Performance of pre-optimization done (n=3): time 1.062e-06/0.0918, allocations: 0 / 460.2 MB, free: 6.555 MB / 334.1 MB Notification: Performance of matching and sorting (n=3): time 0.0002281/0.09203, allocations: 69.56 kB / 460.3 MB, free: 6.48 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.455e-05/0.09207, allocations: 55.41 kB / 460.3 MB, free: 6.414 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.201e-05/0.09217, allocations: 113.8 kB / 460.4 MB, free: 6.293 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.766e-05/0.0922, allocations: 25.7 kB / 460.5 MB, free: 6.262 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.903e-05/0.09224, allocations: 88.14 kB / 460.6 MB, free: 6.172 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.56e-05/0.09226, allocations: 11.84 kB / 460.6 MB, free: 6.16 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.268e-05/0.0923, allocations: 17.7 kB / 460.6 MB, free: 6.137 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001018/0.09241, allocations: 322.7 kB / 460.9 MB, free: 5.812 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.536e-05/0.09247, allocations: 7.984 kB / 460.9 MB, free: 5.805 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.534e-05/0.09251, allocations: 12 kB / 460.9 MB, free: 5.793 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.045e-05/0.09259, allocations: 24.84 kB / 460.9 MB, free: 5.766 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.0926, allocations: 4 kB / 460.9 MB, free: 5.762 MB / 334.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001153/0.09272, allocations: 57.58 kB / 461 MB, free: 5.699 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.231e-05/0.09274, allocations: 8 kB / 461 MB, free: 5.691 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.807e-06/0.09275, allocations: 0 / 461 MB, free: 5.691 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.077e-05/0.09276, allocations: 0 / 461 MB, free: 5.691 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.568e-05/0.09281, allocations: 8 kB / 461 MB, free: 5.684 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.558e-06/0.09283, allocations: 3.938 kB / 461 MB, free: 5.68 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.064e-05/0.09286, allocations: 4 kB / 461 MB, free: 5.676 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.871e-06/0.09288, allocations: 4 kB / 461 MB, free: 5.672 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * 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 7.367e-05/0.09295, allocations: 122.4 kB / 461.2 MB, free: 5.543 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.59e-05/0.09299, allocations: 0 / 461.2 MB, free: 5.543 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.455e-05/0.09301, allocations: 11.91 kB / 461.2 MB, free: 5.523 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/0.09302, allocations: 0 / 461.2 MB, free: 5.523 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.333e-06/0.09303, allocations: 0 / 461.2 MB, free: 5.523 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.053e-06/0.09304, allocations: 3.938 kB / 461.2 MB, free: 5.52 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001573/0.0932, allocations: 173.5 kB / 461.3 MB, free: 5.301 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.09321, allocations: 0 / 461.3 MB, free: 5.301 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.999e-05/0.09325, allocations: 8 kB / 461.3 MB, free: 5.293 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.957e-06/0.09326, allocations: 8.375 kB / 461.4 MB, free: 5.285 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.042e-06/0.09328, allocations: 0 / 461.4 MB, free: 5.285 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.605e-06/0.09328, allocations: 3.984 kB / 461.4 MB, free: 5.281 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.09329, allocations: 0 / 461.4 MB, free: 5.281 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001507/0.09344, allocations: 155.4 kB / 461.5 MB, free: 5.113 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.768e-05/0.0935, allocations: 89 kB / 461.6 MB, free: 5.008 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.212e-05/0.09352, allocations: 0 / 461.6 MB, free: 5.008 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.146e-05/0.09358, allocations: 8 kB / 461.6 MB, free: 5 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.193e-05/0.09361, allocations: 0 / 461.6 MB, free: 5 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.224e-06/0.09362, allocations: 0 / 461.6 MB, free: 5 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.377e-05/0.09368, allocations: 91.27 kB / 461.7 MB, free: 4.91 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.09368, allocations: 4 kB / 461.7 MB, free: 4.906 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002686/0.09396, allocations: 35.98 kB / 461.7 MB, free: 4.871 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * 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.0009352/0.0949, allocations: 0.9059 MB / 462.6 MB, free: 4.023 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001353/0.09505, allocations: 27.92 kB / 462.7 MB, free: 3.996 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.09506, allocations: 3.938 kB / 462.7 MB, free: 3.992 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.256e-05/0.09511, allocations: 11.98 kB / 462.7 MB, free: 3.98 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002869/0.0954, allocations: 22.72 kB / 462.7 MB, free: 3.965 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00121/0.09662, allocations: 1.281 MB / 464 MB, free: 2.602 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002499/0.09688, allocations: 0.6883 MB / 464.7 MB, free: 1.887 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.146e-05/0.09692, allocations: 4 kB / 464.7 MB, free: 1.883 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.294e-05/0.09697, allocations: 23.36 kB / 464.7 MB, free: 1.859 MB / 334.1 MB Notification: Performance of SimCode: time 2.1e-07/0.09698, allocations: 0 / 464.7 MB, free: 1.859 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01881/0.1158, allocations: 2.567 MB / 467.3 MB, free: 15.31 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.448/7.564, allocations: 14.97 kB / 467.3 MB, free: 15.3 MB / 350.1 MB (rm -f ExternData_ExternData.Examples.INITest.pipe ; mkfifo ExternData_ExternData.Examples.INITest.pipe ; head -c 1048576 < ExternData_ExternData.Examples.INITest.pipe >> ../files/ExternData_ExternData.Examples.INITest.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ExternData_ExternData_Examples_INITest_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ExternData_ExternData_Examples_INITest.fmu > ExternData_ExternData.Examples.INITest.pipe 2>&1)