Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,fileNamePrefix="Buildings_maint_7_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_7_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 7.0.3-maint.7.0.x/package.mo): time 1.523/1.523, allocations: 252 MB / 267.3 MB, free: 10.86 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00114/0.00114, allocations: 170.6 kB / 327 MB, free: 2.094 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.045/2.045, allocations: 205.4 MB / 0.578 GB, free: 20.13 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008906/0.0008906, allocations: 94.58 kB / 0.6826 GB, free: 12.76 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003644/0.0003645, allocations: 15.06 kB / 0.7971 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2396/0.24, allocations: 106.3 MB / 0.9009 GB, free: 63.39 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.001624/0.2417, allocations: 1.249 MB / 0.9022 GB, free: 62.13 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0005696/0.2423, allocations: 280 kB / 0.9024 GB, free: 61.85 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.186e-05/0.2423, allocations: 0 / 0.9024 GB, free: 61.85 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 2.778e-05/0.2424, allocations: 7.922 kB / 0.9024 GB, free: 61.84 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0001107/0.2425, allocations: 7.922 kB / 0.9024 GB, free: 61.84 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002249/0.2427, allocations: 35.91 kB / 0.9025 GB, free: 61.8 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0001101/0.2429, allocations: 91.75 kB / 0.9026 GB, free: 61.71 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000146/0.243, allocations: 24.22 kB / 0.9026 GB, free: 61.69 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 9.026e-05/0.2431, allocations: 31.86 kB / 0.9026 GB, free: 61.66 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 7.362e-05/0.2432, allocations: 35.83 kB / 0.9026 GB, free: 61.62 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.533e-05/0.2432, allocations: 7.938 kB / 0.9027 GB, free: 61.61 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.726e-05/0.2432, allocations: 4 kB / 0.9027 GB, free: 61.61 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 3.389e-05/0.2433, allocations: 19.97 kB / 0.9027 GB, free: 61.59 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 6.175e-05/0.2434, allocations: 57.5 kB / 0.9027 GB, free: 61.53 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0001289/0.2435, allocations: 79.66 kB / 0.9028 GB, free: 61.45 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.2435, allocations: 3.938 kB / 0.9028 GB, free: 61.45 MB / 0.6042 GB Notification: Performance of FrontEnd: time 3.687e-06/0.2435, allocations: 3.984 kB / 0.9028 GB, free: 61.44 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 5.67e-06/0.2435, allocations: 0 / 0.9028 GB, free: 61.44 MB / 0.6042 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0007074/0.2442, allocations: 411.5 kB / 0.9032 GB, free: 60.99 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 5.428e-05/0.2443, allocations: 8.031 kB / 0.9032 GB, free: 60.98 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.288e-05/0.2444, allocations: 38.75 kB / 0.9033 GB, free: 60.93 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.805e-05/0.2444, allocations: 12.84 kB / 0.9033 GB, free: 60.92 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001181/0.2445, allocations: 180.2 kB / 0.9034 GB, free: 60.71 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.554e-05/0.2445, allocations: 8.375 kB / 0.9034 GB, free: 60.7 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.922e-05/0.2446, allocations: 8.375 kB / 0.9035 GB, free: 60.69 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002927/0.2449, allocations: 113.2 kB / 0.9036 GB, free: 60.58 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.947e-06/0.2449, allocations: 3.938 kB / 0.9036 GB, free: 60.57 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.258e-05/0.2449, allocations: 0 / 0.9036 GB, free: 60.57 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.38e-06/0.2449, allocations: 0 / 0.9036 GB, free: 60.57 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003284/0.2453, allocations: 119.9 kB / 0.9037 GB, free: 60.46 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005444/0.2458, allocations: 368.6 kB / 0.904 GB, free: 60.05 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004792/0.2463, allocations: 162.6 kB / 0.9042 GB, free: 59.88 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001885/0.2465, allocations: 68.77 kB / 0.9042 GB, free: 59.81 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.568e-05/0.2465, allocations: 0 / 0.9042 GB, free: 59.81 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000321/0.2469, allocations: 123.3 kB / 0.9044 GB, free: 59.68 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=11): time 1.583e-06/0.2469, allocations: 0 / 0.9044 GB, free: 59.68 MB / 0.6042 GB Notification: Performance of matching and sorting (n=11): time 0.0006617/0.2475, allocations: 229.4 kB / 0.9046 GB, free: 59.45 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.043e-05/0.2476, allocations: 59.34 kB / 0.9046 GB, free: 59.38 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.102e-05/0.2477, allocations: 126.1 kB / 0.9048 GB, free: 59.24 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.99e-05/0.2477, allocations: 29.7 kB / 0.9048 GB, free: 59.21 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 4.95e-05/0.2478, allocations: 99.97 kB / 0.9049 GB, free: 59.11 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.878e-05/0.2478, allocations: 23.7 kB / 0.9049 GB, free: 59.08 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.247e-06/0.2478, allocations: 12 kB / 0.9049 GB, free: 59.07 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 7.182e-05/0.2479, allocations: 322.8 kB / 0.9052 GB, free: 58.75 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001763/0.2481, allocations: 63.95 kB / 0.9053 GB, free: 58.68 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001836/0.2483, allocations: 103.3 kB / 0.9054 GB, free: 58.57 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003156/0.2486, allocations: 143.2 kB / 0.9055 GB, free: 58.42 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.2486, allocations: 8 kB / 0.9055 GB, free: 58.41 MB / 0.6042 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003815/0.249, allocations: 186 kB / 0.9057 GB, free: 58.22 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.833e-05/0.249, allocations: 4 kB / 0.9057 GB, free: 58.22 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.284e-06/0.2491, allocations: 4 kB / 0.9057 GB, free: 58.21 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.486e-05/0.2491, allocations: 0 / 0.9057 GB, free: 58.21 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000122/0.2492, allocations: 31.91 kB / 0.9057 GB, free: 58.18 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.244e-06/0.2492, allocations: 0 / 0.9057 GB, free: 58.18 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001241/0.2494, allocations: 35.92 kB / 0.9058 GB, free: 58.15 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.186e-05/0.2494, allocations: 7.938 kB / 0.9058 GB, free: 58.14 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 13 ($PRE.triggeredSampler.y,triggeredSampler.y,$whenCondition1,$whenCondition2,$PRE.booPul1.pulseStart,booPul1.pulseStart,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 (16): * Single equations (assignments): 16 * 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 8.879e-05/0.2495, allocations: 129.8 kB / 0.9059 GB, free: 58 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.533e-05/0.2495, allocations: 7.906 kB / 0.9059 GB, free: 58 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004298/0.2499, allocations: 189.9 kB / 0.9061 GB, free: 57.8 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.2499, allocations: 0 / 0.9061 GB, free: 57.8 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.2499, allocations: 8 kB / 0.9061 GB, free: 57.8 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.938e-06/0.25, allocations: 0 / 0.9061 GB, free: 57.8 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000614/0.2506, allocations: 458.2 kB / 0.9065 GB, free: 57.29 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.2506, allocations: 0 / 0.9065 GB, free: 57.29 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001068/0.2507, allocations: 27.97 kB / 0.9066 GB, free: 57.27 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.2507, allocations: 0 / 0.9066 GB, free: 57.27 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.349e-05/0.2507, allocations: 0 / 0.9066 GB, free: 57.27 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.785e-06/0.2507, allocations: 7.938 kB / 0.9066 GB, free: 57.26 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.2507, allocations: 0 / 0.9066 GB, free: 57.26 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004083/0.2512, allocations: 271.3 kB / 0.9068 GB, free: 56.98 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.978e-05/0.2512, allocations: 85.02 kB / 0.9069 GB, free: 56.88 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.463e-05/0.2512, allocations: 4 kB / 0.9069 GB, free: 56.87 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001434/0.2514, allocations: 35.91 kB / 0.907 GB, free: 56.84 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.717e-05/0.2515, allocations: 27.89 kB / 0.907 GB, free: 56.81 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.696e-06/0.2515, allocations: 0 / 0.907 GB, free: 56.81 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 4.018e-05/0.2515, allocations: 96.64 kB / 0.9071 GB, free: 56.71 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.01e-07/0.2515, allocations: 0 / 0.9071 GB, free: 56.71 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002228/0.2518, allocations: 23.91 kB / 0.9071 GB, free: 56.69 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 8 (zeroCrossing.y,$whenCondition2,$whenCondition1,booPul1.pulseStart,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 (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0006657/0.2524, allocations: 0.8055 MB / 0.9079 GB, free: 55.86 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0003937/0.2528, allocations: 155.8 kB / 0.908 GB, free: 55.71 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.2529, allocations: 0 / 0.908 GB, free: 55.71 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001924/0.253, allocations: 71.95 kB / 0.9081 GB, free: 55.64 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002955/0.2534, allocations: 20.92 kB / 0.9081 GB, free: 55.62 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001942/0.2553, allocations: 1.781 MB / 0.9099 GB, free: 53.73 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001251/0.2554, allocations: 0.6965 MB / 0.9105 GB, free: 53.01 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 5.459e-05/0.2555, allocations: 8.547 kB / 0.9106 GB, free: 53 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.534e-05/0.2556, allocations: 27.44 kB / 0.9106 GB, free: 52.98 MB / 0.6042 GB Notification: Performance of SimCode: time 3.11e-07/0.2556, allocations: 0 / 0.9106 GB, free: 52.98 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01176/0.2674, allocations: 2.202 MB / 0.9127 GB, free: 50.94 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001634/0.2676, allocations: 225.8 kB / 0.9129 GB, free: 50.68 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.735/2.002, allocations: 0 / 0.9129 GB, free: 50.68 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing.fmu > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe 2>&1)