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.464/1.464, allocations: 249.3 MB / 261.9 MB, free: 5.809 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001113/0.001114, allocations: 166.7 kB / 321.3 MB, free: 14.64 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.736/1.736, allocations: 205.2 MB / 0.572 GB, free: 10.7 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.0008932/0.0008937, allocations: 90.45 kB / 0.6764 GB, free: 15.67 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.881e-05/3.892e-05, allocations: 4 kB / 0.7881 GB, free: 96.98 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2604/0.2605, allocations: 106.3 MB / 0.8919 GB, free: 6.551 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8772/1.138, allocations: 132 MB / 1.021 GB, free: 2.633 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00028/1.138, allocations: 76.83 kB / 1.021 GB, free: 2.59 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.004491/1.143, allocations: 1.362 MB / 1.022 GB, free: 1.371 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.285e-06/1.143, allocations: 0 / 1.022 GB, free: 1.371 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.47e-05/1.143, allocations: 4 kB / 1.022 GB, free: 1.367 MB / 0.6355 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.0006417/1.143, allocations: 401.3 kB / 1.023 GB, free: 0.9375 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.101e-05/1.143, allocations: 8.031 kB / 1.023 GB, free: 0.9297 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.749e-05/1.143, allocations: 38.12 kB / 1.023 GB, free: 0.8867 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.545e-05/1.144, allocations: 11.89 kB / 1.023 GB, free: 0.875 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001741/1.144, allocations: 175.6 kB / 1.023 GB, free: 0.6641 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.09e-05/1.144, allocations: 7.812 kB / 1.023 GB, free: 0.6602 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.721e-05/1.144, allocations: 15.98 kB / 1.023 GB, free: 0.6445 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001869/1.144, allocations: 73.48 kB / 1.023 GB, free: 0.582 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.937e-06/1.144, allocations: 0 / 1.023 GB, free: 0.582 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.807e-05/1.144, allocations: 7.125 kB / 1.023 GB, free: 0.5781 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.326e-06/1.144, allocations: 0 / 1.023 GB, free: 0.5781 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000117/1.144, allocations: 45.23 kB / 1.023 GB, free: 0.5469 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007305/1.145, allocations: 359.7 kB / 1.023 GB, free: 184 kB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000421/1.145, allocations: 123.2 kB / 1.023 GB, free: 72 kB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.171e-05/1.145, allocations: 35.47 kB / 1.023 GB, free: 44 kB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 3.212e-05/1.145, allocations: 0 / 1.023 GB, free: 44 kB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002089/1.146, allocations: 85.62 kB / 1.024 GB, free: 15.96 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=11): time 2.003e-06/1.146, allocations: 4 kB / 1.024 GB, free: 15.95 MB / 0.6511 GB Notification: Performance of matching and sorting (n=11): time 0.000274/1.146, allocations: 109.3 kB / 1.024 GB, free: 15.86 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.007e-05/1.146, allocations: 51.41 kB / 1.024 GB, free: 15.8 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001062/1.146, allocations: 123.5 kB / 1.024 GB, free: 15.68 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 5.238e-05/1.146, allocations: 32.95 kB / 1.024 GB, free: 15.64 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 6.878e-05/1.146, allocations: 95.19 kB / 1.024 GB, free: 15.55 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 3.43e-05/1.146, allocations: 27.14 kB / 1.024 GB, free: 15.53 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.474e-06/1.146, allocations: 3.188 kB / 1.024 GB, free: 15.53 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001311/1.146, allocations: 322.2 kB / 1.024 GB, free: 15.21 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.562e-05/1.147, allocations: 31.19 kB / 1.024 GB, free: 15.19 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.279e-05/1.147, allocations: 62.11 kB / 1.024 GB, free: 15.13 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.55e-05/1.147, allocations: 23.56 kB / 1.024 GB, free: 15.12 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/1.147, allocations: 0 / 1.024 GB, free: 15.12 MB / 0.6511 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002251/1.147, allocations: 130.9 kB / 1.025 GB, free: 15 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.003e-05/1.147, allocations: 4 kB / 1.025 GB, free: 15 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/1.147, allocations: 4.875 kB / 1.025 GB, free: 15 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.5e-05/1.147, allocations: 3.938 kB / 1.025 GB, free: 14.99 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001484/1.147, allocations: 35.47 kB / 1.025 GB, free: 14.96 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.303e-05/1.147, allocations: 7.938 kB / 1.025 GB, free: 14.95 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001476/1.147, allocations: 32.06 kB / 1.025 GB, free: 14.92 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.442e-05/1.147, allocations: 7.188 kB / 1.025 GB, free: 14.92 MB / 0.6511 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,$PRE.zeroCrossing.enable,zeroCrossing.enable,$PRE.zeroCrossing.disable,zeroCrossing.disable,$PRE.zeroCrossing.u_pos,zeroCrossing.u_pos,triggeredSampler.trigger) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.23e-05/1.147, allocations: 112.7 kB / 1.025 GB, free: 14.8 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.526e-05/1.148, allocations: 7.906 kB / 1.025 GB, free: 14.8 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002394/1.148, allocations: 114.1 kB / 1.025 GB, free: 14.7 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.992e-06/1.148, allocations: 11.94 kB / 1.025 GB, free: 14.69 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/1.148, allocations: 4 kB / 1.025 GB, free: 14.69 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.047e-06/1.148, allocations: 3.953 kB / 1.025 GB, free: 14.68 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004322/1.148, allocations: 387.1 kB / 1.025 GB, free: 14.29 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/1.148, allocations: 0 / 1.025 GB, free: 14.29 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000122/1.148, allocations: 27.34 kB / 1.025 GB, free: 14.26 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.188e-06/1.148, allocations: 0 / 1.025 GB, free: 14.26 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.464e-05/1.148, allocations: 4 kB / 1.025 GB, free: 14.26 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.638e-06/1.148, allocations: 7.953 kB / 1.025 GB, free: 14.25 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/1.148, allocations: 0 / 1.025 GB, free: 14.25 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000229/1.149, allocations: 199.1 kB / 1.025 GB, free: 14.06 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 4.182e-05/1.149, allocations: 88.95 kB / 1.026 GB, free: 13.95 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.379e-05/1.149, allocations: 3.938 kB / 1.026 GB, free: 13.95 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001582/1.149, allocations: 27.97 kB / 1.026 GB, free: 13.93 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.088e-05/1.149, allocations: 23.11 kB / 1.026 GB, free: 13.91 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.351e-05/1.149, allocations: 7.984 kB / 1.026 GB, free: 13.9 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 5.763e-05/1.149, allocations: 94.16 kB / 1.026 GB, free: 13.81 MB / 0.6511 GB Notification: Performance of sort global known variables: time 3.5e-07/1.149, allocations: 0 / 1.026 GB, free: 13.81 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002345/1.149, allocations: 19.81 kB / 1.026 GB, free: 13.8 MB / 0.6511 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 (triggeredSampler.trigger,$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) * 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 (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.0005414/1.15, allocations: 0.7434 MB / 1.026 GB, free: 13.05 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001989/1.15, allocations: 80.47 kB / 1.027 GB, free: 13 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/1.15, allocations: 0 / 1.027 GB, free: 13 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001061/1.15, allocations: 38.03 kB / 1.027 GB, free: 12.97 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002417/1.15, allocations: 21.31 kB / 1.027 GB, free: 12.95 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005406/1.151, allocations: 165.2 kB / 1.027 GB, free: 12.77 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002923/1.151, allocations: 0.7004 MB / 1.027 GB, free: 12.04 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 6.394e-05/1.151, allocations: 8.5 kB / 1.027 GB, free: 12.03 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.371e-05/1.151, allocations: 29.98 kB / 1.027 GB, free: 12.02 MB / 0.6511 GB Notification: Performance of SimCode: time 3.71e-07/1.151, allocations: 0 / 1.027 GB, free: 12.02 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01375/1.165, allocations: 2.17 MB / 1.03 GB, free: 9.973 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001815/1.165, allocations: 166.6 kB / 1.03 GB, free: 9.754 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.572/2.737, allocations: 0 / 1.03 GB, free: 9.754 MB / 0.6511 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)