Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower.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/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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(Buildings.Utilities.Math.Examples.RegNonZeroPower,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_RegNonZeroPower",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.RegNonZeroPower,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_RegNonZeroPower",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.001041/0.001041, 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.001132/0.001132, allocations: 196.1 kB / 16.53 MB, free: 6.699 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.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.289/2.289, allocations: 390.2 MB / 0.6647 GB, free: 268 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001349/0.001349, allocations: 63.89 kB / 0.8126 GB, free: 14.16 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.73/0.7313, allocations: 140.4 MB / 0.9497 GB, free: 9.238 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.RegNonZeroPower): time 0.00269/0.7341, allocations: 1.446 MB / 0.9511 GB, free: 8.098 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0007721/0.7349, allocations: 374.1 kB / 0.9515 GB, free: 7.809 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.322e-05/0.7349, allocations: 0 / 0.9515 GB, free: 7.809 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.476e-05/0.735, allocations: 7.922 kB / 0.9515 GB, free: 7.801 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.073e-05/0.7351, allocations: 4.875 kB / 0.9515 GB, free: 7.797 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005644/0.7356, allocations: 109.5 kB / 0.9516 GB, free: 7.734 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.444e-05/0.7357, allocations: 25.42 kB / 0.9516 GB, free: 7.719 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.583e-05/0.7358, allocations: 15.05 kB / 0.9516 GB, free: 7.707 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.607e-05/0.7359, allocations: 7.656 kB / 0.9516 GB, free: 7.703 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.139e-05/0.7359, allocations: 15.7 kB / 0.9517 GB, free: 7.691 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.462e-05/0.7359, allocations: 2.219 kB / 0.9517 GB, free: 7.691 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000436/0.7364, allocations: 272.6 kB / 0.9519 GB, free: 7.543 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.941e-05/0.7364, allocations: 3.984 kB / 0.9519 GB, free: 7.539 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.573e-05/0.7364, allocations: 10.97 kB / 0.9519 GB, free: 7.531 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002603/0.7367, allocations: 111.4 kB / 0.952 GB, free: 7.453 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.7367, allocations: 0 / 0.952 GB, free: 7.453 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.814e-06/0.7367, allocations: 0 / 0.952 GB, free: 7.453 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.732e-06/0.7367, allocations: 5.406 kB / 0.952 GB, free: 7.449 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.000535/0.7373, allocations: 357.2 kB / 0.9524 GB, free: 7.07 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 6.249e-05/0.7373, allocations: 9.25 kB / 0.9524 GB, free: 7.07 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.601e-05/0.7374, allocations: 39.86 kB / 0.9524 GB, free: 7.023 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.822e-05/0.7375, allocations: 5.969 kB / 0.9524 GB, free: 7.02 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001226/0.7376, allocations: 170.6 kB / 0.9526 GB, free: 6.816 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.636e-05/0.7376, allocations: 2.094 kB / 0.9526 GB, free: 6.816 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.147e-06/0.7376, allocations: 4.312 kB / 0.9526 GB, free: 6.812 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002221/0.7379, allocations: 58.95 kB / 0.9527 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.384e-05/0.7379, allocations: 3.938 kB / 0.9527 GB, free: 6.758 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.156e-05/0.7379, allocations: 0 / 0.9527 GB, free: 6.758 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.104e-06/0.7379, allocations: 0 / 0.9527 GB, free: 6.758 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001839/0.7381, allocations: 39.81 kB / 0.9527 GB, free: 6.738 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003948/0.7385, allocations: 246 kB / 0.9529 GB, free: 6.457 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001328/0.7387, allocations: 52.52 kB / 0.953 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.885e-05/0.7388, allocations: 17.84 kB / 0.953 GB, free: 6.398 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006691/0.7394, allocations: 464.3 kB / 0.9534 GB, free: 5.898 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.496e-05/0.7395, allocations: 32.03 kB / 0.9535 GB, free: 5.859 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.192e-06/0.7395, allocations: 0 / 0.9535 GB, free: 5.859 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0004119/0.7399, allocations: 86.78 kB / 0.9536 GB, free: 5.801 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.88e-05/0.7399, allocations: 63.45 kB / 0.9536 GB, free: 5.727 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.51e-05/0.74, allocations: 101.3 kB / 0.9537 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 7.775e-06/0.74, allocations: 25.7 kB / 0.9537 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.187e-05/0.74, allocations: 89.62 kB / 0.9538 GB, free: 5.504 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.148e-05/0.7401, allocations: 4.969 kB / 0.9538 GB, free: 5.5 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.007e-05/0.7401, allocations: 11.84 kB / 0.9538 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.851e-05/0.7402, allocations: 317 kB / 0.9541 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.107e-05/0.7402, allocations: 17.02 kB / 0.9542 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.059e-05/0.7403, allocations: 21.59 kB / 0.9542 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001474/0.7405, allocations: 36.3 kB / 0.9542 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.7405, allocations: 3.938 kB / 0.9542 GB, free: 5.125 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002208/0.7407, allocations: 73.41 kB / 0.9543 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.703e-05/0.7408, allocations: 5.344 kB / 0.9543 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.702e-06/0.7408, allocations: 1.312 kB / 0.9543 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.5e-05/0.7408, allocations: 0 / 0.9543 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.481e-05/0.7409, allocations: 10.02 kB / 0.9543 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.344e-06/0.7409, allocations: 3.984 kB / 0.9543 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.409e-05/0.7409, allocations: 3.938 kB / 0.9543 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.781e-06/0.741, allocations: 1.25 kB / 0.9543 GB, free: 5.062 MB / 0.7169 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 (2): * Single equations (assignments): 2 * 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 5.859e-05/0.741, allocations: 123.3 kB / 0.9544 GB, free: 4.934 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.111e-05/0.7411, allocations: 2.656 kB / 0.9544 GB, free: 4.934 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002112/0.7413, allocations: 71.47 kB / 0.9545 GB, free: 4.875 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.666e-06/0.7413, allocations: 1.562 kB / 0.9545 GB, free: 4.875 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.7413, allocations: 3.938 kB / 0.9545 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.445e-06/0.7413, allocations: 0 / 0.9545 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001077/0.7414, allocations: 167.3 kB / 0.9547 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-06/0.7414, allocations: 0 / 0.9547 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.237e-05/0.7415, allocations: 9.969 kB / 0.9547 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.935e-06/0.7415, allocations: 1.344 kB / 0.9547 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.181e-06/0.7415, allocations: 3.938 kB / 0.9547 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.785e-06/0.7415, allocations: 4.234 kB / 0.9547 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.7415, allocations: 5.188 kB / 0.9547 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002057/0.7417, allocations: 159.4 kB / 0.9548 GB, free: 4.5 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.74e-05/0.7418, allocations: 86.44 kB / 0.9549 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.248e-05/0.7418, allocations: 1.344 kB / 0.9549 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.845e-05/0.7419, allocations: 3.812 kB / 0.9549 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.071e-05/0.7419, allocations: 9.016 kB / 0.9549 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.697e-06/0.7419, allocations: 1.281 kB / 0.9549 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.274e-05/0.7419, allocations: 83.34 kB / 0.955 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of sort global known variables: time 6.31e-07/0.7419, allocations: 0 / 0.955 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000224/0.7422, allocations: 20.38 kB / 0.955 GB, free: 4.305 MB / 0.7169 GB 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 (2): * Single equations (assignments): 2 * 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.0004341/0.7426, allocations: 0.719 MB / 0.9557 GB, free: 3.609 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002157/0.7428, allocations: 37.09 kB / 0.9558 GB, free: 3.594 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.7428, allocations: 5.281 kB / 0.9558 GB, free: 3.59 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.981e-05/0.7429, allocations: 23.94 kB / 0.9558 GB, free: 3.578 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003122/0.7433, allocations: 5.469 kB / 0.9558 GB, free: 3.574 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004467/0.7437, allocations: 134.6 kB / 0.9559 GB, free: 3.426 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001682/0.7439, allocations: 0.6818 MB / 0.9566 GB, free: 2.723 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.997e-05/0.7439, allocations: 5.531 kB / 0.9566 GB, free: 2.719 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.381e-05/0.744, allocations: 12.84 kB / 0.9566 GB, free: 2.707 MB / 0.7169 GB Notification: Performance of SimCode: time 2.11e-07/0.744, allocations: 0 / 0.9566 GB, free: 2.707 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01839/0.7624, allocations: 1.578 MB / 0.9582 GB, free: 1.82 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.846/7.608, allocations: 10.02 kB / 0.9582 GB, free: 1.816 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Examples_RegNonZeroPower_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Examples_RegNonZeroPower.fmu > Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_RegNonZeroPower.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches