Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo", uses=false) Using package IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/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 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(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Counter_Examples_countZeroCrossing",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Counter_Examples_countZeroCrossing",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.00108/0.00108, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.009816/0.009816, allocations: 169.9 kB / 16.27 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.48/1.48, allocations: 205.4 MB / 222.4 MB, free: 5.562 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05438/0.05438, allocations: 10.75 MB / 281.5 MB, free: 10.44 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.000544/0.000544, allocations: 16.5 kB / 342.3 MB, free: 23.38 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1133/0.1138, allocations: 50 MB / 392.3 MB, free: 5.309 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing): time 0.002577/0.1165, allocations: 1.843 MB / 394.2 MB, free: 3.453 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002026/0.1185, allocations: 1.221 MB / 395.4 MB, free: 2.223 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000136/0.1186, allocations: 0 / 395.4 MB, free: 2.223 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008481/0.1195, allocations: 255.3 kB / 395.7 MB, free: 1.973 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003907/0.1199, allocations: 175.5 kB / 395.8 MB, free: 1.801 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007004/0.1206, allocations: 283.5 kB / 396.1 MB, free: 1.523 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003718/0.121, allocations: 378.9 kB / 396.5 MB, free: 1.152 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001263/0.1211, allocations: 61.12 kB / 396.5 MB, free: 1.094 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001872/0.1213, allocations: 139.3 kB / 396.7 MB, free: 0.957 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001575/0.1215, allocations: 135.3 kB / 396.8 MB, free: 0.8242 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.83e-05/0.1215, allocations: 8 kB / 396.8 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002133/0.1217, allocations: 99.92 kB / 396.9 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001037/0.1219, allocations: 71.67 kB / 397 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001441/0.122, allocations: 148.8 kB / 397.1 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004009/0.1224, allocations: 367 kB / 397.5 MB, free: 140 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.1224, allocations: 4 kB / 397.5 MB, free: 136 kB / 286.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.1224, allocations: 0 / 397.5 MB, free: 136 kB / 286.1 MB Notification: Performance of Transformations before backend: time 7.004e-06/0.1225, allocations: 4 kB / 397.5 MB, free: 132 kB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.001072/0.1235, allocations: 0.6337 MB / 398.1 MB, free: 15.44 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.911e-05/0.1236, allocations: 12.03 kB / 398.1 MB, free: 15.43 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.792e-05/0.1237, allocations: 50.73 kB / 398.2 MB, free: 15.37 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.807e-05/0.1238, allocations: 40.41 kB / 398.2 MB, free: 15.33 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004334/0.1242, allocations: 339.9 kB / 398.6 MB, free: 14.96 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.686e-05/0.1242, allocations: 12.12 kB / 398.6 MB, free: 14.95 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.114e-05/0.1243, allocations: 16 kB / 398.6 MB, free: 14.93 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003975/0.1247, allocations: 196 kB / 398.8 MB, free: 14.72 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.079e-05/0.1247, allocations: 4 kB / 398.8 MB, free: 14.72 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.761e-05/0.1247, allocations: 11.98 kB / 398.8 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.061e-06/0.1247, allocations: 0 / 398.8 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002445/0.125, allocations: 95.95 kB / 398.9 MB, free: 14.61 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008006/0.1258, allocations: 0.5313 MB / 399.4 MB, free: 14.03 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004755/0.1263, allocations: 178.6 kB / 399.6 MB, free: 13.85 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001621/0.1265, allocations: 64.97 kB / 399.6 MB, free: 13.78 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.909e-05/0.1265, allocations: 4 kB / 399.7 MB, free: 13.78 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003418/0.1269, allocations: 177 kB / 399.8 MB, free: 13.59 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.262e-06/0.1269, allocations: 0 / 399.8 MB, free: 13.59 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.000769/0.1276, allocations: 317.6 kB / 400.1 MB, free: 13.27 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.274e-05/0.1278, allocations: 140.5 kB / 400.3 MB, free: 13.1 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004076/0.1282, allocations: 389.6 kB / 400.7 MB, free: 12.71 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.795e-05/0.1282, allocations: 33.7 kB / 400.7 MB, free: 12.67 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001145/0.1283, allocations: 172.4 kB / 400.9 MB, free: 12.5 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.491e-05/0.1284, allocations: 47.36 kB / 400.9 MB, free: 12.45 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.413e-05/0.1284, allocations: 33.7 kB / 400.9 MB, free: 12.41 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001183/0.1285, allocations: 342.8 kB / 401.3 MB, free: 12.07 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001399/0.1287, allocations: 60.23 kB / 401.3 MB, free: 12.01 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002254/0.1289, allocations: 187.3 kB / 401.5 MB, free: 11.77 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004594/0.1294, allocations: 254.8 kB / 401.8 MB, free: 11.48 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.821e-06/0.1294, allocations: 3.984 kB / 401.8 MB, free: 11.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004557/0.1299, allocations: 277 kB / 402 MB, free: 11.2 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.087e-05/0.1299, allocations: 6.969 kB / 402 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.756e-06/0.1299, allocations: 4 kB / 402 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.888e-05/0.1299, allocations: 8.125 kB / 402.1 MB, free: 11.19 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001379/0.1301, allocations: 39.92 kB / 402.1 MB, free: 11.15 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.102e-05/0.1301, allocations: 7.984 kB / 402.1 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001494/0.1303, allocations: 36 kB / 402.1 MB, free: 11.11 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.029e-05/0.1303, allocations: 15.98 kB / 402.1 MB, free: 11.09 MB / 302.1 MB Warning: Assuming fixed start value for the following 6 variables: equal.y:DISCRETE(flow=false fixed = true ) "output" type: Boolean counter.CUd:DISCRETE(fixed = true ) type: Boolean counter.CDd:DISCRETE(fixed = true ) type: Boolean counter.Sd:DISCRETE(fixed = true ) type: Boolean counter.Q:DISCRETE(flow=false fixed = true ) "status of the counter (1: counting, 0: not counting)" type: Boolean counter.Value:DISCRETE(start = 0 fixed = true ) type: Integer Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 26 ($PRE.equal.y,equal.y,$PRE.counter.CUd,counter.CUd,$PRE.counter.CDd,counter.CDd,$PRE.counter.Sd,counter.Sd,$PRE.counter.Q,counter.Q,$PRE.counter.Value,counter.Value,$whenCondition4,$PRE.reset.combiTimeTable.nextTimeEvent,$whenCondition3,$PRE.set.combiTimeTable.nextTimeEvent,$whenCondition2,$whenCondition1,reset.combiTimeTable.nextTimeEventScaled,$PRE.reset.combiTimeTable.nextTimeEventScaled,reset.combiTimeTable.nextTimeEvent,reset.y,set.combiTimeTable.nextTimeEventScaled,$PRE.set.combiTimeTable.nextTimeEventScaled,set.combiTimeTable.nextTimeEvent,set.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 31 * 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 0.000257/0.1306, allocations: 185.2 kB / 402.3 MB, free: 10.9 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.691e-05/0.1306, allocations: 35.62 kB / 402.4 MB, free: 10.87 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.977e-05/0.1307, allocations: 35.27 kB / 402.4 MB, free: 10.82 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.1307, allocations: 3.938 kB / 402.4 MB, free: 10.82 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.646e-06/0.1307, allocations: 7.984 kB / 402.4 MB, free: 10.81 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/0.1307, allocations: 0 / 402.4 MB, free: 10.81 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003017/0.1311, allocations: 317.3 kB / 402.7 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.1311, allocations: 0 / 402.7 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.698e-05/0.1311, allocations: 15.94 kB / 402.7 MB, free: 10.44 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.854e-06/0.1312, allocations: 0 / 402.7 MB, free: 10.44 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.128e-05/0.1312, allocations: 11.98 kB / 402.7 MB, free: 10.43 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.1312, allocations: 4 kB / 402.8 MB, free: 10.42 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.1312, allocations: 0 / 402.8 MB, free: 10.42 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004886/0.1317, allocations: 284.5 kB / 403 MB, free: 10.12 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.523e-05/0.1318, allocations: 120.7 kB / 403.1 MB, free: 9.988 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.312e-05/0.1318, allocations: 15.92 kB / 403.2 MB, free: 9.973 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001467/0.132, allocations: 19.98 kB / 403.2 MB, free: 9.953 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.838e-05/0.1321, allocations: 19.97 kB / 403.2 MB, free: 9.934 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.53e-05/0.1321, allocations: 8 kB / 403.2 MB, free: 9.926 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002857/0.1324, allocations: 279.2 kB / 403.5 MB, free: 9.66 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1324, allocations: 0 / 403.5 MB, free: 9.66 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003476/0.1328, allocations: 75.89 kB / 403.6 MB, free: 9.586 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,counter.Q,counter.Value,counter.CUd,counter.CDd,counter.Sd,set.y,set.combiTimeTable.nextTimeEvent,set.combiTimeTable.nextTimeEventScaled,reset.y,reset.combiTimeTable.nextTimeEvent,reset.combiTimeTable.nextTimeEventScaled,equal.y) * Number of discrete states: 8 (counter.Value,counter.Sd,counter.CUd,counter.CDd,reset.combiTimeTable.nextTimeEventScaled,set.combiTimeTable.nextTimeEventScaled,set.combiTimeTable.nextTimeEvent,reset.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 9 * 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.001853/0.1346, allocations: 1.178 MB / 404.7 MB, free: 8.488 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004538/0.1351, allocations: 195.7 kB / 404.9 MB, free: 8.297 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.1351, allocations: 0 / 404.9 MB, free: 8.297 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002048/0.1353, allocations: 87.91 kB / 405 MB, free: 8.211 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004644/0.1358, allocations: 77.94 kB / 405.1 MB, free: 8.129 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003769/0.1396, allocations: 3.097 MB / 408.2 MB, free: 4.875 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004622/0.14, allocations: 0.7713 MB / 409 MB, free: 4.078 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001549/0.1402, allocations: 50.94 kB / 409 MB, free: 4.031 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001497/0.1404, allocations: 91.41 kB / 409.1 MB, free: 3.945 MB / 302.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1404, allocations: 4 kB / 409.1 MB, free: 3.941 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5548/0.6952, allocations: 7.157 MB / 416.3 MB, free: 12.84 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002953/0.6956, allocations: 274.7 kB / 416.5 MB, free: 12.46 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.157/2.853, allocations: 0 / 416.5 MB, free: 12.46 MB / 318.1 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Logical_Counter_Examples_countZeroCrossing_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Logical_Counter_Examples_countZeroCrossing.fmu > IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing.pipe 2>&1)