Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.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.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivative_2_Check",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivative_2_Check",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.006128/0.006128, allocations: 97.38 kB / 15.73 MB, free: 5.949 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.001257/0.001258, allocations: 193.8 kB / 16.67 MB, free: 5.871 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.32/1.32, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002242/0.002242, allocations: 287.2 kB / 290.8 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.943/0.943, allocations: 169.2 MB / 0.4983 GB, free: 4.438 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001865/0.001865, allocations: 103.8 kB / 0.681 GB, free: 7.422 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5042/0.5061, allocations: 86.96 MB / 0.7659 GB, free: 3.863 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check): time 0.001807/0.5079, allocations: 0.6172 MB / 0.7666 GB, free: 3.25 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0008766/0.5088, allocations: 354.7 kB / 0.7669 GB, free: 2.902 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.443e-05/0.5089, allocations: 0 / 0.7669 GB, free: 2.902 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 2.36e-05/0.5089, allocations: 0 / 0.7669 GB, free: 2.902 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 3.357e-05/0.509, allocations: 3.938 kB / 0.7669 GB, free: 2.898 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007123/0.5097, allocations: 117.8 kB / 0.767 GB, free: 2.785 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 9.159e-05/0.5098, allocations: 31.89 kB / 0.767 GB, free: 2.754 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 4.97e-05/0.5099, allocations: 4 kB / 0.767 GB, free: 2.75 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 5.23e-05/0.5099, allocations: 7.938 kB / 0.767 GB, free: 2.742 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 6.933e-05/0.51, allocations: 11.98 kB / 0.7671 GB, free: 2.73 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.902e-05/0.51, allocations: 7.938 kB / 0.7671 GB, free: 2.723 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005885/0.5106, allocations: 279.6 kB / 0.7673 GB, free: 2.449 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 2.203e-05/0.5107, allocations: 7.922 kB / 0.7673 GB, free: 2.441 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 3.326e-05/0.5107, allocations: 15.94 kB / 0.7674 GB, free: 2.426 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.000307/0.511, allocations: 103.1 kB / 0.7675 GB, free: 2.332 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.491e-06/0.511, allocations: 0 / 0.7675 GB, free: 2.332 MB / 0.5294 GB Notification: Performance of FrontEnd: time 3.867e-06/0.511, allocations: 3.984 kB / 0.7675 GB, free: 2.328 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 7.334e-06/0.5111, allocations: 0 / 0.7675 GB, free: 2.328 MB / 0.5294 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0006266/0.5117, allocations: 360.9 kB / 0.7678 GB, free: 1.926 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 5.731e-05/0.5118, allocations: 8.031 kB / 0.7678 GB, free: 1.918 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.039e-05/0.5118, allocations: 38.73 kB / 0.7678 GB, free: 1.871 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.879e-05/0.5119, allocations: 0.9375 kB / 0.7678 GB, free: 1.871 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001644/0.5121, allocations: 176.3 kB / 0.768 GB, free: 1.66 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.179e-05/0.5121, allocations: 4.375 kB / 0.768 GB, free: 1.656 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.818e-05/0.5121, allocations: 8.312 kB / 0.768 GB, free: 1.648 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001619/0.5123, allocations: 50.25 kB / 0.7681 GB, free: 1.594 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.985e-05/0.5124, allocations: 7.922 kB / 0.7681 GB, free: 1.586 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.341e-05/0.5124, allocations: 0 / 0.7681 GB, free: 1.586 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.965e-06/0.5124, allocations: 4 kB / 0.7681 GB, free: 1.582 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.49e-05/0.5125, allocations: 19.98 kB / 0.7681 GB, free: 1.562 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002341/0.5127, allocations: 161.7 kB / 0.7683 GB, free: 1.355 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001488/0.5129, allocations: 62.5 kB / 0.7683 GB, free: 1.285 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.438e-05/0.513, allocations: 28.84 kB / 0.7683 GB, free: 1.254 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009915/0.514, allocations: 465.4 kB / 0.7688 GB, free: 0.707 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.661e-05/0.514, allocations: 34.56 kB / 0.7688 GB, free: 0.6641 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=7): time 1.633e-06/0.514, allocations: 0 / 0.7688 GB, free: 0.6641 MB / 0.5294 GB Notification: Performance of matching and sorting (n=11): time 0.001877/0.5159, allocations: 0.5956 MB / 0.7694 GB, free: 15.98 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.626e-05/0.516, allocations: 55.41 kB / 0.7695 GB, free: 15.91 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.87e-05/0.5161, allocations: 97.84 kB / 0.7696 GB, free: 15.8 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.325e-05/0.5161, allocations: 33.64 kB / 0.7696 GB, free: 15.77 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 4.241e-05/0.5162, allocations: 80.14 kB / 0.7697 GB, free: 15.68 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 6.179e-05/0.5162, allocations: 39.67 kB / 0.7697 GB, free: 15.64 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.601e-05/0.5163, allocations: 33.7 kB / 0.7697 GB, free: 15.61 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001405/0.5165, allocations: 314.8 kB / 0.77 GB, free: 15.29 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.131e-05/0.5165, allocations: 23.98 kB / 0.7701 GB, free: 15.27 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.638e-05/0.5166, allocations: 23.98 kB / 0.7701 GB, free: 15.24 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001327/0.5167, allocations: 55.42 kB / 0.7701 GB, free: 15.19 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.51e-07/0.5167, allocations: 0 / 0.7701 GB, free: 15.19 MB / 0.545 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002665/0.517, allocations: 105.6 kB / 0.7702 GB, free: 15.08 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.961e-05/0.5171, allocations: 4 kB / 0.7702 GB, free: 15.07 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.084e-06/0.5171, allocations: 0 / 0.7702 GB, free: 15.07 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.914e-05/0.5171, allocations: 0 / 0.7702 GB, free: 15.07 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001711/0.5173, allocations: 23.98 kB / 0.7703 GB, free: 15.05 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.167e-05/0.5173, allocations: 3.938 kB / 0.7703 GB, free: 15.05 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.235e-05/0.5174, allocations: 8 kB / 0.7703 GB, free: 15.04 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.333e-05/0.5174, allocations: 4 kB / 0.7703 GB, free: 15.04 MB / 0.545 GB 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 (13): * Single equations (assignments): 13 * 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.0001166/0.5175, allocations: 120.2 kB / 0.7704 GB, free: 14.91 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.485e-05/0.5176, allocations: 11.89 kB / 0.7704 GB, free: 14.9 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002917/0.5179, allocations: 101.6 kB / 0.7705 GB, free: 14.79 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.886e-06/0.5179, allocations: 0 / 0.7705 GB, free: 14.79 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/0.5179, allocations: 0 / 0.7705 GB, free: 14.79 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.516e-06/0.5179, allocations: 4 kB / 0.7705 GB, free: 14.79 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005607/0.5185, allocations: 354.5 kB / 0.7708 GB, free: 14.38 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.14e-06/0.5185, allocations: 4 kB / 0.7708 GB, free: 14.38 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001812/0.5187, allocations: 23.98 kB / 0.7709 GB, free: 14.36 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.406e-06/0.5187, allocations: 0 / 0.7709 GB, free: 14.36 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.26e-05/0.5187, allocations: 0 / 0.7709 GB, free: 14.36 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.582e-06/0.5188, allocations: 3.938 kB / 0.7709 GB, free: 14.35 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.5188, allocations: 0 / 0.7709 GB, free: 14.35 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004084/0.5192, allocations: 223.3 kB / 0.7711 GB, free: 14.12 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 7.612e-05/0.5193, allocations: 97.14 kB / 0.7712 GB, free: 14 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.339e-05/0.5193, allocations: 0 / 0.7712 GB, free: 14 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001491/0.5195, allocations: 8 kB / 0.7712 GB, free: 14 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.384e-05/0.5195, allocations: 7.984 kB / 0.7712 GB, free: 13.99 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.073e-05/0.5195, allocations: 0 / 0.7712 GB, free: 13.99 MB / 0.545 GB Notification: Performance of sorting global known variables: time 5.271e-05/0.5196, allocations: 79.28 kB / 0.7713 GB, free: 13.91 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.11e-07/0.5196, allocations: 0 / 0.7713 GB, free: 13.91 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0004993/0.5201, allocations: 47.86 kB / 0.7713 GB, free: 13.86 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (y_comp,der_y_comp) * 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 (11): * Single equations (assignments): 11 * 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.0009025/0.521, allocations: 0.7937 MB / 0.7721 GB, free: 13.05 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002065/0.5213, allocations: 64.45 kB / 0.7721 GB, free: 12.98 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.816e-06/0.5213, allocations: 0 / 0.7721 GB, free: 12.98 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 7.754e-05/0.5214, allocations: 35.92 kB / 0.7722 GB, free: 12.95 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000366/0.5217, allocations: 11.27 kB / 0.7722 GB, free: 12.94 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001923/0.5237, allocations: 1.39 MB / 0.7735 GB, free: 11.47 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003386/0.524, allocations: 0.7038 MB / 0.7742 GB, free: 10.75 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 6.631e-05/0.5241, allocations: 11.94 kB / 0.7742 GB, free: 10.73 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.276e-05/0.5242, allocations: 15.44 kB / 0.7743 GB, free: 10.72 MB / 0.545 GB Notification: Performance of SimCode: time 5.11e-07/0.5242, allocations: 0 / 0.7743 GB, free: 10.72 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02606/0.5502, allocations: 2.511 MB / 0.7767 GB, free: 8.395 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.282/7.832, allocations: 9.062 kB / 0.7767 GB, free: 8.391 MB / 0.545 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check_res.csv --start-time -1 --stop-time 1 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 0.0008 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivative_2_Check.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.pipe 2>&1)