Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/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.Examples.RegNonZeroPower,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_RegNonZeroPower",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.RegNonZeroPower,fileNamePrefix="BuildingSystems_BuildingSystems_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.00537/0.00537, allocations: 102 kB / 15.73 MB, free: 6 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.001204/0.001203, allocations: 193.8 kB / 16.68 MB, free: 5.922 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.252/1.252, 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.002023/0.002023, allocations: 287.8 kB / 290.8 MB, free: 14.43 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8923/0.8923, allocations: 169.2 MB / 0.4983 GB, free: 4.441 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001746/0.001746, allocations: 99.84 kB / 0.681 GB, free: 7.449 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4124/0.4142, allocations: 86.98 MB / 0.7659 GB, free: 3.867 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.RegNonZeroPower): time 0.002395/0.4166, allocations: 1.429 MB / 0.7673 GB, free: 2.426 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0006709/0.4173, allocations: 395.5 kB / 0.7677 GB, free: 2.035 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.113e-05/0.4174, allocations: 0 / 0.7677 GB, free: 2.035 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 2.511e-05/0.4174, allocations: 0 / 0.7677 GB, free: 2.035 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 3.824e-05/0.4175, allocations: 3.938 kB / 0.7677 GB, free: 2.031 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004114/0.4179, allocations: 118.4 kB / 0.7678 GB, free: 1.918 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 5.743e-05/0.4179, allocations: 19.98 kB / 0.7678 GB, free: 1.898 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 8.775e-05/0.418, allocations: 15.94 kB / 0.7678 GB, free: 1.883 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 4.09e-05/0.4181, allocations: 7.984 kB / 0.7678 GB, free: 1.875 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 3.71e-05/0.4181, allocations: 15.91 kB / 0.7679 GB, free: 1.859 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.201e-05/0.4181, allocations: 4 kB / 0.7679 GB, free: 1.855 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003511/0.4185, allocations: 275.7 kB / 0.7681 GB, free: 1.586 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 1.626e-05/0.4185, allocations: 11.92 kB / 0.7681 GB, free: 1.574 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 2.505e-05/0.4186, allocations: 11.94 kB / 0.7681 GB, free: 1.562 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0001965/0.4188, allocations: 107.8 kB / 0.7682 GB, free: 1.457 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.4188, allocations: 0 / 0.7682 GB, free: 1.457 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.253e-06/0.4188, allocations: 0 / 0.7682 GB, free: 1.457 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 4.559e-06/0.4188, allocations: 0 / 0.7682 GB, free: 1.457 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004481/0.4192, allocations: 367.4 kB / 0.7686 GB, free: 1.047 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.78e-05/0.4193, allocations: 12.03 kB / 0.7686 GB, free: 1.035 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.227e-05/0.4193, allocations: 34.75 kB / 0.7686 GB, free: 0.9922 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.576e-05/0.4194, allocations: 0.9375 kB / 0.7686 GB, free: 0.9922 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001097/0.4195, allocations: 172.3 kB / 0.7688 GB, free: 0.7852 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.427e-06/0.4195, allocations: 384 / 0.7688 GB, free: 0.7852 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.035e-06/0.4195, allocations: 384 / 0.7688 GB, free: 0.7852 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001656/0.4197, allocations: 58.17 kB / 0.7689 GB, free: 0.7227 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.376e-05/0.4197, allocations: 3.938 kB / 0.7689 GB, free: 0.7188 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.136e-06/0.4197, allocations: 0 / 0.7689 GB, free: 0.7188 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.4197, allocations: 4 kB / 0.7689 GB, free: 0.7148 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001656/0.4199, allocations: 35.91 kB / 0.7689 GB, free: 0.6797 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002918/0.4202, allocations: 249 kB / 0.7691 GB, free: 396 kB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001193/0.4203, allocations: 42.5 kB / 0.7692 GB, free: 344 kB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.274e-05/0.4204, allocations: 24.89 kB / 0.7692 GB, free: 316 kB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006377/0.4211, allocations: 461.4 kB / 0.7696 GB, free: 15.77 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.269e-05/0.4211, allocations: 30.56 kB / 0.7697 GB, free: 15.73 MB / 0.545 GB Notification: Performance of pre-optimization done (n=2): time 8.416e-06/0.4211, allocations: 0 / 0.7697 GB, free: 15.73 MB / 0.545 GB Notification: Performance of matching and sorting (n=2): time 0.0003513/0.4215, allocations: 85.64 kB / 0.7698 GB, free: 15.64 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.967e-05/0.4215, allocations: 51.41 kB / 0.7698 GB, free: 15.57 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.372e-05/0.4216, allocations: 110 kB / 0.7699 GB, free: 15.46 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.186e-05/0.4216, allocations: 25.7 kB / 0.7699 GB, free: 15.43 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 4.277e-05/0.4216, allocations: 88.05 kB / 0.77 GB, free: 15.34 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.328e-05/0.4217, allocations: 0 / 0.77 GB, free: 15.34 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.198e-05/0.4217, allocations: 17.7 kB / 0.77 GB, free: 15.31 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 9.985e-05/0.4218, allocations: 318.8 kB / 0.7703 GB, free: 14.99 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.797e-05/0.4219, allocations: 15.98 kB / 0.7704 GB, free: 14.98 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.976e-05/0.422, allocations: 23.92 kB / 0.7704 GB, free: 14.95 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001407/0.4221, allocations: 40.81 kB / 0.7704 GB, free: 14.91 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.4221, allocations: 3.938 kB / 0.7704 GB, free: 14.91 MB / 0.545 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002109/0.4223, allocations: 73.56 kB / 0.7705 GB, free: 14.83 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.335e-05/0.4224, allocations: 4.094 kB / 0.7705 GB, free: 14.82 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.4224, allocations: 4 kB / 0.7705 GB, free: 14.82 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.395e-05/0.4224, allocations: 3.984 kB / 0.7705 GB, free: 14.82 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.46e-05/0.4225, allocations: 8 kB / 0.7705 GB, free: 14.81 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.228e-06/0.4225, allocations: 0 / 0.7705 GB, free: 14.81 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.528e-05/0.4225, allocations: 7.984 kB / 0.7705 GB, free: 14.8 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.809e-06/0.4225, allocations: 0 / 0.7705 GB, free: 14.8 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 (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 6.537e-05/0.4226, allocations: 121.7 kB / 0.7706 GB, free: 14.67 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.601e-05/0.4227, allocations: 0 / 0.7706 GB, free: 14.67 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002165/0.4229, allocations: 81.17 kB / 0.7707 GB, free: 14.59 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.4229, allocations: 0 / 0.7707 GB, free: 14.59 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.497e-06/0.4229, allocations: 0 / 0.7707 GB, free: 14.59 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.845e-06/0.4229, allocations: 256 / 0.7707 GB, free: 14.59 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001381/0.423, allocations: 161.6 kB / 0.7709 GB, free: 14.38 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.484e-06/0.4231, allocations: 4 kB / 0.7709 GB, free: 14.38 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.383e-05/0.4231, allocations: 7.984 kB / 0.7709 GB, free: 14.37 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.4231, allocations: 0 / 0.7709 GB, free: 14.37 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.464e-06/0.4231, allocations: 8.031 kB / 0.7709 GB, free: 14.36 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-06/0.4231, allocations: 0 / 0.7709 GB, free: 14.36 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.4231, allocations: 0 / 0.7709 GB, free: 14.36 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002356/0.4234, allocations: 173.1 kB / 0.7711 GB, free: 14.18 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 3.778e-05/0.4234, allocations: 77.11 kB / 0.7711 GB, free: 14.08 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.398e-05/0.4235, allocations: 7.922 kB / 0.7711 GB, free: 14.07 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.809e-05/0.4235, allocations: 8.031 kB / 0.7711 GB, free: 14.07 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.306e-05/0.4236, allocations: 8 kB / 0.7711 GB, free: 14.06 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.1e-06/0.4236, allocations: 3.984 kB / 0.7712 GB, free: 14.05 MB / 0.545 GB Notification: Performance of sorting global known variables: time 3.302e-05/0.4236, allocations: 79.28 kB / 0.7712 GB, free: 13.98 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.91e-07/0.4236, allocations: 0 / 0.7712 GB, free: 13.98 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002174/0.4238, allocations: 12 kB / 0.7712 GB, free: 13.96 MB / 0.545 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.0005432/0.4244, allocations: 0.724 MB / 0.7719 GB, free: 13.21 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0001943/0.4246, allocations: 31.97 kB / 0.772 GB, free: 13.18 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.4246, allocations: 4 kB / 0.772 GB, free: 13.18 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 8.875e-05/0.4247, allocations: 20.08 kB / 0.772 GB, free: 13.16 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000232/0.4249, allocations: 10.33 kB / 0.772 GB, free: 13.15 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004031/0.4254, allocations: 143.2 kB / 0.7721 GB, free: 12.97 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000233/0.4256, allocations: 0.6806 MB / 0.7728 GB, free: 12.27 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 2.462e-05/0.4256, allocations: 4 kB / 0.7728 GB, free: 12.26 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.176e-05/0.4257, allocations: 11.44 kB / 0.7728 GB, free: 12.25 MB / 0.545 GB Notification: Performance of SimCode: time 3.2e-07/0.4257, allocations: 0 / 0.7728 GB, free: 12.25 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01712/0.4428, allocations: 1.618 MB / 0.7744 GB, free: 10.73 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.01/7.453, allocations: 6.578 kB / 0.7744 GB, free: 10.73 MB / 0.545 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPower.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPower.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPower.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPower.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_RegNonZeroPower_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_RegNonZeroPower.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPower.pipe 2>&1)