Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_InverseFlowFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_InverseFlowFunctions",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.001849/0.001849, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002298/0.002299, allocations: 194.6 kB / 16.53 MB, free: 6.664 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.842/1.842, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002357/0.002357, allocations: 282.9 kB / 290.7 MB, free: 2.012 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.357/1.357, allocations: 169.3 MB / 0.4982 GB, free: 13.97 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002118/0.002118, allocations: 100.2 kB / 0.5953 GB, free: 27.96 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.227/0.2291, allocations: 86.97 MB / 0.6803 GB, free: 0.582 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions): time 0.004387/0.2336, allocations: 1.282 MB / 0.6815 GB, free: 15.3 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001507/0.2352, allocations: 0.591 MB / 0.6821 GB, free: 14.71 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.318e-05/0.2352, allocations: 4 kB / 0.6821 GB, free: 14.71 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.835e-05/0.2353, allocations: 0 / 0.6821 GB, free: 14.71 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 7.248e-05/0.2354, allocations: 11.92 kB / 0.6821 GB, free: 14.7 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009087/0.2363, allocations: 139.9 kB / 0.6823 GB, free: 14.56 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 7.144e-05/0.2364, allocations: 15.94 kB / 0.6823 GB, free: 14.54 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.723e-05/0.2365, allocations: 7.984 kB / 0.6823 GB, free: 14.54 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.394e-05/0.2365, allocations: 7.938 kB / 0.6823 GB, free: 14.53 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.591e-05/0.2366, allocations: 8 kB / 0.6823 GB, free: 14.52 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.372e-05/0.2366, allocations: 7.938 kB / 0.6823 GB, free: 14.51 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006254/0.2372, allocations: 343.4 kB / 0.6826 GB, free: 14.18 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.738e-05/0.2373, allocations: 7.922 kB / 0.6826 GB, free: 14.17 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.708e-05/0.2373, allocations: 4 kB / 0.6826 GB, free: 14.16 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003368/0.2377, allocations: 151.8 kB / 0.6828 GB, free: 14.02 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.274e-06/0.2377, allocations: 0 / 0.6828 GB, free: 14.02 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.2377, allocations: 0 / 0.6828 GB, free: 14.02 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.911e-06/0.2377, allocations: 0 / 0.6828 GB, free: 14.02 MB / 494.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.000572/0.2383, allocations: 359.4 kB / 0.6831 GB, free: 13.61 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.119e-05/0.2383, allocations: 15.98 kB / 0.6831 GB, free: 13.6 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.975e-05/0.2384, allocations: 38.75 kB / 0.6832 GB, free: 13.55 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.696e-05/0.2384, allocations: 4.844 kB / 0.6832 GB, free: 13.55 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001589/0.2386, allocations: 172.3 kB / 0.6834 GB, free: 13.34 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.482e-05/0.2386, allocations: 384 / 0.6834 GB, free: 13.34 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.207e-06/0.2386, allocations: 384 / 0.6834 GB, free: 13.34 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001367/0.2388, allocations: 42.25 kB / 0.6834 GB, free: 13.29 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.167e-06/0.2388, allocations: 3.938 kB / 0.6834 GB, free: 13.29 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.829e-06/0.2388, allocations: 0 / 0.6834 GB, free: 13.29 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.703e-06/0.2388, allocations: 3.984 kB / 0.6834 GB, free: 13.29 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.297e-05/0.2389, allocations: 16 kB / 0.6834 GB, free: 13.27 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004064/0.2393, allocations: 256.9 kB / 0.6837 GB, free: 12.97 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002459/0.2396, allocations: 50.5 kB / 0.6837 GB, free: 12.91 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.97e-05/0.2396, allocations: 24.78 kB / 0.6837 GB, free: 12.88 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.629e-05/0.2396, allocations: 0 / 0.6837 GB, free: 12.88 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.016e-05/0.2397, allocations: 34.56 kB / 0.6838 GB, free: 12.84 MB / 494.1 MB Notification: Performance of pre-optimization done (n=4): time 1.253e-06/0.2397, allocations: 0 / 0.6838 GB, free: 12.84 MB / 494.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002069/0.2399, allocations: 61.62 kB / 0.6838 GB, free: 12.77 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.161e-05/0.24, allocations: 51.41 kB / 0.6839 GB, free: 12.71 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.648e-05/0.2401, allocations: 101.8 kB / 0.684 GB, free: 12.6 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.792e-05/0.2401, allocations: 25.7 kB / 0.684 GB, free: 12.57 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.952e-05/0.2402, allocations: 84.05 kB / 0.6841 GB, free: 12.48 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.734e-05/0.2402, allocations: 11.91 kB / 0.6841 GB, free: 12.47 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.462e-05/0.2402, allocations: 21.62 kB / 0.6841 GB, free: 12.45 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001339/0.2404, allocations: 318.8 kB / 0.6844 GB, free: 12.12 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.05e-05/0.2404, allocations: 4 kB / 0.6844 GB, free: 12.12 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.52e-05/0.2404, allocations: 17.72 kB / 0.6844 GB, free: 12.1 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.978e-05/0.2405, allocations: 37.64 kB / 0.6845 GB, free: 12.05 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.2405, allocations: 3.938 kB / 0.6845 GB, free: 12.05 MB / 494.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.000118/0.2406, allocations: 53.69 kB / 0.6845 GB, free: 11.99 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.601e-05/0.2407, allocations: 8.031 kB / 0.6845 GB, free: 11.98 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.553e-06/0.2407, allocations: 0 / 0.6845 GB, free: 11.98 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.832e-05/0.2407, allocations: 4 kB / 0.6845 GB, free: 11.98 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.926e-05/0.2408, allocations: 7.938 kB / 0.6845 GB, free: 11.97 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.091e-05/0.2408, allocations: 7.938 kB / 0.6846 GB, free: 11.96 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.904e-05/0.2408, allocations: 0 / 0.6846 GB, free: 11.96 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.485e-06/0.2408, allocations: 4 kB / 0.6846 GB, free: 11.96 MB / 494.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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 0.0001061/0.2409, allocations: 115.1 kB / 0.6847 GB, free: 11.84 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.029e-05/0.241, allocations: 3.984 kB / 0.6847 GB, free: 11.84 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001756/0.2412, allocations: 65.12 kB / 0.6847 GB, free: 11.76 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.2412, allocations: 480 / 0.6847 GB, free: 11.76 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.2412, allocations: 128 / 0.6847 GB, free: 11.76 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.511e-06/0.2412, allocations: 4 kB / 0.6847 GB, free: 11.76 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001872/0.2414, allocations: 165.5 kB / 0.6849 GB, free: 11.55 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.2414, allocations: 0 / 0.6849 GB, free: 11.55 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.783e-05/0.2415, allocations: 11.88 kB / 0.6849 GB, free: 11.54 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.042e-05/0.2415, allocations: 7.969 kB / 0.6849 GB, free: 11.53 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.513e-05/0.2415, allocations: 8 kB / 0.6849 GB, free: 11.52 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.245e-06/0.2415, allocations: 4 kB / 0.6849 GB, free: 11.52 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.2415, allocations: 0 / 0.6849 GB, free: 11.52 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001944/0.2417, allocations: 143.5 kB / 0.6851 GB, free: 11.36 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.659e-05/0.2418, allocations: 81.11 kB / 0.6851 GB, free: 11.26 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.742e-05/0.2418, allocations: 0 / 0.6851 GB, free: 11.26 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.024e-05/0.2419, allocations: 0 / 0.6851 GB, free: 11.26 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.998e-05/0.242, allocations: 4 kB / 0.6851 GB, free: 11.26 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.709e-06/0.242, allocations: 0 / 0.6851 GB, free: 11.26 MB / 494.1 MB Notification: Performance of sorting global known variables: time 6.151e-05/0.242, allocations: 87.27 kB / 0.6852 GB, free: 11.17 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.2421, allocations: 0 / 0.6852 GB, free: 11.17 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0004621/0.2425, allocations: 20 kB / 0.6852 GB, free: 11.15 MB / 494.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 (4): * Single equations (assignments): 4 * 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.000788/0.2433, allocations: 0.7045 MB / 0.6859 GB, free: 10.42 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001306/0.2435, allocations: 31.92 kB / 0.686 GB, free: 10.39 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.2435, allocations: 0 / 0.686 GB, free: 10.39 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 2.608e-05/0.2435, allocations: 15.98 kB / 0.686 GB, free: 10.37 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002226/0.2438, allocations: 0 / 0.686 GB, free: 10.37 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005632/0.2443, allocations: 156.3 kB / 0.6861 GB, free: 10.18 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004357/0.2448, allocations: 0.6768 MB / 0.6868 GB, free: 9.477 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 5.78e-05/0.2448, allocations: 12 kB / 0.6868 GB, free: 9.465 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.583e-05/0.2449, allocations: 7.438 kB / 0.6868 GB, free: 9.457 MB / 494.1 MB Notification: Performance of SimCode: time 4.41e-07/0.2449, allocations: 0 / 0.6868 GB, free: 9.457 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02936/0.2743, allocations: 1.399 MB / 0.6882 GB, free: 8.195 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.93/11.2, allocations: 11.34 kB / 0.6882 GB, free: 8.188 MB / 494.1 MB (rm -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_InverseFlowFunctions.fmu > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions.pipe 2>&1)