Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 2.208/2.208, allocations: 288.4 MB / 303.3 MB, free: 8.137 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001068/0.001068, allocations: 184.5 kB / 372 MB, free: 10.25 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.804/1.804, allocations: 205.4 MB / 0.6307 GB, free: 9.945 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008565/0.0008569, allocations: 104.8 kB / 0.7441 GB, free: 5.863 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004527/0.0004525, allocations: 16.84 kB / 0.867 GB, free: 141.9 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2539/0.2544, allocations: 115.3 MB / 0.9797 GB, free: 27.54 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.001046/0.2555, allocations: 0.5063 MB / 0.9802 GB, free: 27.02 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001365/0.2569, allocations: 1.181 MB / 0.9813 GB, free: 25.83 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.617e-05/0.2569, allocations: 3.938 kB / 0.9813 GB, free: 25.82 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 2.163e-05/0.257, allocations: 3.938 kB / 0.9813 GB, free: 25.82 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 7.989e-05/0.2571, allocations: 15.86 kB / 0.9813 GB, free: 25.8 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004979/0.2576, allocations: 136.3 kB / 0.9815 GB, free: 25.68 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001149/0.2577, allocations: 119.7 kB / 0.9816 GB, free: 25.56 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001072/0.2578, allocations: 20.2 kB / 0.9816 GB, free: 25.54 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 9.156e-05/0.2579, allocations: 51.83 kB / 0.9816 GB, free: 25.49 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 8.548e-05/0.258, allocations: 59.8 kB / 0.9817 GB, free: 25.43 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 2.71e-05/0.258, allocations: 8 kB / 0.9817 GB, free: 25.42 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 6.669e-05/0.2581, allocations: 23.92 kB / 0.9817 GB, free: 25.4 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 2.163e-05/0.2581, allocations: 15.92 kB / 0.9817 GB, free: 25.38 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 4.57e-05/0.2582, allocations: 37.7 kB / 0.9818 GB, free: 25.34 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001231/0.2583, allocations: 99.98 kB / 0.9819 GB, free: 25.24 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.2583, allocations: 0 / 0.9819 GB, free: 25.24 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.154e-06/0.2583, allocations: 0 / 0.9819 GB, free: 25.24 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.731e-06/0.2583, allocations: 0 / 0.9819 GB, free: 25.24 MB / 0.6198 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0006061/0.259, allocations: 432.8 kB / 0.9823 GB, free: 24.77 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.228e-05/0.259, allocations: 12.02 kB / 0.9823 GB, free: 24.75 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.519e-05/0.2591, allocations: 38.5 kB / 0.9823 GB, free: 24.71 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.567e-05/0.2591, allocations: 11.91 kB / 0.9824 GB, free: 24.7 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.204e-05/0.2592, allocations: 178.9 kB / 0.9825 GB, free: 24.48 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.663e-05/0.2592, allocations: 8 kB / 0.9825 GB, free: 24.47 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.656e-05/0.2593, allocations: 19.98 kB / 0.9825 GB, free: 24.45 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000284/0.2595, allocations: 101.6 kB / 0.9826 GB, free: 24.35 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.799e-06/0.2596, allocations: 0 / 0.9826 GB, free: 24.35 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.414e-05/0.2596, allocations: 4 kB / 0.9826 GB, free: 24.34 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.41e-06/0.2596, allocations: 4 kB / 0.9827 GB, free: 24.34 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000334/0.2599, allocations: 107.8 kB / 0.9828 GB, free: 24.23 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000532/0.2605, allocations: 392.5 kB / 0.9831 GB, free: 23.8 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002593/0.2607, allocations: 106.6 kB / 0.9832 GB, free: 23.69 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001803/0.2609, allocations: 68.81 kB / 0.9833 GB, free: 23.62 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.551e-05/0.261, allocations: 0 / 0.9833 GB, free: 23.62 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002702/0.2612, allocations: 123.3 kB / 0.9834 GB, free: 23.48 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=12): time 2.034e-06/0.2613, allocations: 0 / 0.9834 GB, free: 23.48 MB / 0.6198 GB Notification: Performance of matching and sorting (n=12): time 0.0006353/0.2619, allocations: 249.3 kB / 0.9837 GB, free: 23.23 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.911e-05/0.2619, allocations: 63.36 kB / 0.9837 GB, free: 23.16 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.145e-05/0.262, allocations: 127.8 kB / 0.9838 GB, free: 23.03 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.595e-05/0.262, allocations: 33.7 kB / 0.9839 GB, free: 22.99 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 4.589e-05/0.2621, allocations: 104 kB / 0.984 GB, free: 22.88 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.35e-05/0.2621, allocations: 31.58 kB / 0.984 GB, free: 22.85 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.51e-05/0.2622, allocations: 8 kB / 0.984 GB, free: 22.84 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 6.174e-05/0.2622, allocations: 322.8 kB / 0.9843 GB, free: 22.52 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002312/0.2625, allocations: 87.84 kB / 0.9844 GB, free: 22.43 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002477/0.2627, allocations: 124.2 kB / 0.9845 GB, free: 22.3 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000229/0.263, allocations: 121.6 kB / 0.9846 GB, free: 22.17 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.075e-06/0.263, allocations: 0 / 0.9846 GB, free: 22.17 MB / 0.6198 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005414/0.2635, allocations: 281.6 kB / 0.9849 GB, free: 21.89 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 3.623e-05/0.2636, allocations: 41.81 kB / 0.9849 GB, free: 21.84 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.111e-06/0.2636, allocations: 7.938 kB / 0.9849 GB, free: 21.83 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.418e-05/0.2636, allocations: 0 / 0.9849 GB, free: 21.83 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001433/0.2637, allocations: 27.94 kB / 0.985 GB, free: 21.8 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.726e-06/0.2638, allocations: 7.984 kB / 0.985 GB, free: 21.8 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002575/0.264, allocations: 59.86 kB / 0.985 GB, free: 21.74 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.325e-05/0.2641, allocations: 8 kB / 0.985 GB, free: 21.73 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.triggeredSampler.y,triggeredSampler.y,$whenCondition1,$whenCondition2,$whenCondition3,$PRE.booPul1.y,booPul1.y,zeroCrossing.y,$PRE.zeroCrossing.enable,zeroCrossing.enable,$PRE.zeroCrossing.disable,zeroCrossing.disable,$PRE.zeroCrossing.u_pos,zeroCrossing.u_pos) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001026/0.2642, allocations: 133.7 kB / 0.9852 GB, free: 21.59 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.59e-05/0.2642, allocations: 7.906 kB / 0.9852 GB, free: 21.58 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004597/0.2646, allocations: 190 kB / 0.9854 GB, free: 21.39 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.2647, allocations: 8 kB / 0.9854 GB, free: 21.39 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.683e-06/0.2647, allocations: 7.953 kB / 0.9854 GB, free: 21.38 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.2647, allocations: 3.938 kB / 0.9854 GB, free: 21.38 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005558/0.2652, allocations: 462.4 kB / 0.9858 GB, free: 20.87 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.2653, allocations: 0 / 0.9858 GB, free: 20.87 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001029/0.2654, allocations: 23.97 kB / 0.9858 GB, free: 20.84 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.148e-06/0.2654, allocations: 8 kB / 0.9859 GB, free: 20.84 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.288e-05/0.2654, allocations: 11.88 kB / 0.9859 GB, free: 20.82 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.2654, allocations: 0 / 0.9859 GB, free: 20.82 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.2654, allocations: 0 / 0.9859 GB, free: 20.82 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004016/0.2658, allocations: 280.1 kB / 0.9861 GB, free: 20.54 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.22e-05/0.2658, allocations: 85.02 kB / 0.9862 GB, free: 20.43 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.089e-05/0.2659, allocations: 4 kB / 0.9862 GB, free: 20.43 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001212/0.266, allocations: 23.94 kB / 0.9862 GB, free: 20.41 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.365e-05/0.2661, allocations: 19.97 kB / 0.9863 GB, free: 20.39 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.678e-06/0.2661, allocations: 3.984 kB / 0.9863 GB, free: 20.38 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 3.495e-05/0.2661, allocations: 95.27 kB / 0.9864 GB, free: 20.29 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2661, allocations: 0 / 0.9864 GB, free: 20.29 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002372/0.2664, allocations: 31.94 kB / 0.9864 GB, free: 20.26 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 9 (zeroCrossing.y,$whenCondition3,$whenCondition1,$whenCondition2,booPul1.y,zeroCrossing.enable,zeroCrossing.disable,zeroCrossing.u_pos,triggeredSampler.y) * Number of discrete states: 3 (zeroCrossing.u_pos,zeroCrossing.enable,zeroCrossing.disable) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006414/0.267, allocations: 0.8302 MB / 0.9872 GB, free: 19.4 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0004968/0.2675, allocations: 259.2 kB / 0.9874 GB, free: 19.13 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.2675, allocations: 0 / 0.9874 GB, free: 19.13 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001902/0.2677, allocations: 80.08 kB / 0.9875 GB, free: 19.05 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002785/0.268, allocations: 23.94 kB / 0.9875 GB, free: 19.03 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001443/0.2695, allocations: 0.8609 MB / 0.9884 GB, free: 18.11 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001356/0.2696, allocations: 0.6965 MB / 0.9891 GB, free: 17.38 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 5.135e-05/0.2697, allocations: 8.562 kB / 0.9891 GB, free: 17.38 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.716e-05/0.2697, allocations: 27.42 kB / 0.9891 GB, free: 17.35 MB / 0.6198 GB Notification: Performance of SimCode: time 2.4e-07/0.2698, allocations: 0 / 0.9891 GB, free: 17.35 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01317/0.2829, allocations: 2.752 MB / 0.9918 GB, free: 14.77 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001672/0.2831, allocations: 204.2 kB / 0.992 GB, free: 14.53 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.577/1.86, allocations: 0 / 0.992 GB, free: 14.53 MB / 0.6198 GB (rm -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing.fmu > Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe 2>&1)