Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToTrigger.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) 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) Running command: "" <> buildModelFMU(Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToTrigger,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestClockedRealToTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToTrigger,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestClockedRealToTrigger",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009656/0.0009652, allocations: 177.1 kB / 15.82 MB, free: 6.305 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.694/1.694, allocations: 205.4 MB / 221.9 MB, free: 13.85 MB / 186.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000938/0.0009376, allocations: 94.34 kB / 270.3 MB, free: 13.37 MB / 234.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08249/0.08249, allocations: 12.59 MB / 331.1 MB, free: 10.32 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 0.0005113/0.0005114, allocations: 17.78 kB / 392.1 MB, free: 54.82 MB / 282.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1114/0.112, allocations: 50.38 MB / 442.5 MB, free: 10.86 MB / 282.8 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToTrigger): time 0.001572/0.1136, allocations: 1.275 MB / 443.8 MB, free: 9.57 MB / 282.8 MB Notification: Performance of NFInst.instExpressions: time 0.0006344/0.1142, allocations: 0.4883 MB / 444.3 MB, free: 9.074 MB / 282.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.739e-05/0.1143, allocations: 3.938 kB / 444.3 MB, free: 9.07 MB / 282.8 MB Notification: Performance of NFTyping.typeComponents: time 2.019e-05/0.1144, allocations: 0 / 444.3 MB, free: 9.07 MB / 282.8 MB Notification: Performance of NFTyping.typeBindings: time 5.976e-05/0.1144, allocations: 7.922 kB / 444.3 MB, free: 9.062 MB / 282.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002791/0.1147, allocations: 43.89 kB / 444.3 MB, free: 9.02 MB / 282.8 MB Notification: Performance of NFFlatten.flatten: time 8.345e-05/0.1148, allocations: 47.86 kB / 444.4 MB, free: 8.973 MB / 282.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001049/0.1149, allocations: 19.97 kB / 444.4 MB, free: 8.953 MB / 282.8 MB Notification: Performance of NFEvalConstants.evaluate: time 8.488e-05/0.115, allocations: 35.78 kB / 444.4 MB, free: 8.918 MB / 282.8 MB Notification: Performance of NFSimplifyModel.simplify: time 5.921e-05/0.1151, allocations: 15.92 kB / 444.4 MB, free: 8.902 MB / 282.8 MB Notification: Performance of NFPackage.collectConstants: time 1.536e-05/0.1151, allocations: 0 / 444.4 MB, free: 8.902 MB / 282.8 MB Notification: Performance of NFFlatten.collectFunctions: time 1.256e-05/0.1151, allocations: 4 kB / 444.4 MB, free: 8.898 MB / 282.8 MB Notification: Performance of NFScalarize.scalarize: time 1.399e-05/0.1151, allocations: 7.938 kB / 444.4 MB, free: 8.891 MB / 282.8 MB Notification: Performance of NFVerifyModel.verify: time 3.224e-05/0.1152, allocations: 37.69 kB / 444.5 MB, free: 8.848 MB / 282.8 MB Notification: Performance of NFConvertDAE.convert: time 7.042e-05/0.1153, allocations: 36.48 kB / 444.5 MB, free: 8.812 MB / 282.8 MB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.1153, allocations: 4 kB / 444.5 MB, free: 8.809 MB / 282.8 MB Notification: Performance of FrontEnd: time 2.414e-06/0.1153, allocations: 0 / 444.5 MB, free: 8.809 MB / 282.8 MB Notification: Performance of Transformations before backend: time 8.987e-06/0.1153, allocations: 3.938 kB / 444.5 MB, free: 8.805 MB / 282.8 MB 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.0004095/0.1157, allocations: 355.4 kB / 444.9 MB, free: 8.41 MB / 282.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.839e-05/0.1157, allocations: 12.03 kB / 444.9 MB, free: 8.398 MB / 282.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.794e-05/0.1158, allocations: 38.55 kB / 444.9 MB, free: 8.352 MB / 282.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.753e-05/0.1158, allocations: 7.906 kB / 444.9 MB, free: 8.344 MB / 282.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001448/0.116, allocations: 183 kB / 445.1 MB, free: 8.125 MB / 282.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.747e-06/0.116, allocations: 7.938 kB / 445.1 MB, free: 8.117 MB / 282.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.562e-05/0.116, allocations: 8 kB / 445.1 MB, free: 8.109 MB / 282.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002875/0.1163, allocations: 138.7 kB / 445.3 MB, free: 7.957 MB / 282.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.106e-05/0.1163, allocations: 0 / 445.3 MB, free: 7.957 MB / 282.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.176e-05/0.1163, allocations: 3.938 kB / 445.3 MB, free: 7.953 MB / 282.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.801e-06/0.1164, allocations: 0 / 445.3 MB, free: 7.953 MB / 282.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001105/0.1165, allocations: 43.95 kB / 445.3 MB, free: 7.91 MB / 282.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000381/0.1169, allocations: 301.6 kB / 445.6 MB, free: 7.562 MB / 282.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001867/0.1171, allocations: 158.2 kB / 445.8 MB, free: 7.371 MB / 282.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.856e-05/0.1171, allocations: 37.8 kB / 445.8 MB, free: 7.328 MB / 282.8 MB Notification: Performance of preOpt evalFunc (simulation): time 2.159e-05/0.1172, allocations: 7.984 kB / 445.8 MB, free: 7.32 MB / 282.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001385/0.1173, allocations: 63.34 kB / 445.9 MB, free: 7.246 MB / 282.8 MB Notification: Performance of pre-optimization done (n=9): time 1.613e-06/0.1173, allocations: 4 kB / 445.9 MB, free: 7.242 MB / 282.8 MB Notification: Performance of matching and sorting (n=9): time 0.000294/0.1176, allocations: 129.7 kB / 446 MB, free: 7.109 MB / 282.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.489e-05/0.1177, allocations: 85.09 kB / 446.1 MB, free: 7.008 MB / 282.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.957e-05/0.1177, allocations: 117.9 kB / 446.2 MB, free: 6.883 MB / 282.8 MB Notification: Performance of collectPreVariables (initialization): time 1.264e-05/0.1178, allocations: 33.7 kB / 446.2 MB, free: 6.844 MB / 282.8 MB Notification: Performance of collectInitialEqns (initialization): time 3.623e-05/0.1178, allocations: 92.23 kB / 446.3 MB, free: 6.75 MB / 282.8 MB Notification: Performance of collectInitialBindings (initialization): time 1.817e-05/0.1178, allocations: 15.89 kB / 446.3 MB, free: 6.734 MB / 282.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.619e-06/0.1178, allocations: 0 / 446.3 MB, free: 6.734 MB / 282.8 MB Notification: Performance of setup shared object (initialization): time 5.246e-05/0.1179, allocations: 318.8 kB / 446.6 MB, free: 6.414 MB / 282.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.902e-05/0.118, allocations: 19.98 kB / 446.7 MB, free: 6.395 MB / 282.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.727e-05/0.118, allocations: 65.12 kB / 446.7 MB, free: 6.312 MB / 282.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.66e-05/0.1181, allocations: 35.94 kB / 446.8 MB, free: 6.277 MB / 282.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.1181, allocations: 0 / 446.8 MB, free: 6.277 MB / 282.8 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001727/0.1183, allocations: 117.5 kB / 446.9 MB, free: 6.156 MB / 282.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.561e-05/0.1183, allocations: 8 kB / 446.9 MB, free: 6.148 MB / 282.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/0.1183, allocations: 0 / 446.9 MB, free: 6.148 MB / 282.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.391e-05/0.1183, allocations: 4 kB / 446.9 MB, free: 6.145 MB / 282.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.448e-05/0.1184, allocations: 11.94 kB / 446.9 MB, free: 6.133 MB / 282.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.665e-06/0.1184, allocations: 7.984 kB / 446.9 MB, free: 6.125 MB / 282.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.332e-05/0.1185, allocations: 8 kB / 446.9 MB, free: 6.117 MB / 282.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.016e-06/0.1185, allocations: 11.89 kB / 446.9 MB, free: 6.105 MB / 282.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 8 ($PRE.triggeredSampler.y,triggeredSampler.y,ClockedRealToTrigger.y2,$CLKPRE.ClockedRealToTrigger.y2,$whenCondition1,ClockedRealToTrigger.y,$PRE.ClockedRealToTrigger.y3,ClockedRealToTrigger.y3) * Number of discrete states: 0 () * Number of clocked states: 1 (ClockedRealToTrigger.y2) * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * 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 6.81e-05/0.1186, allocations: 121.8 kB / 447 MB, free: 5.977 MB / 282.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.221e-05/0.1186, allocations: 57.59 kB / 447.1 MB, free: 5.914 MB / 282.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.838e-05/0.1187, allocations: 7.969 kB / 447.1 MB, free: 5.902 MB / 282.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.1187, allocations: 0 / 447.1 MB, free: 5.902 MB / 282.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.1187, allocations: 4 kB / 447.1 MB, free: 5.898 MB / 282.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.1187, allocations: 0 / 447.1 MB, free: 5.898 MB / 282.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002815/0.119, allocations: 350.4 kB / 447.5 MB, free: 5.5 MB / 282.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/0.119, allocations: 4 kB / 447.5 MB, free: 5.496 MB / 282.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.761e-05/0.1191, allocations: 15.98 kB / 447.5 MB, free: 5.48 MB / 282.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.1191, allocations: 0 / 447.5 MB, free: 5.48 MB / 282.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.977e-06/0.1191, allocations: 0 / 447.5 MB, free: 5.48 MB / 282.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.416e-06/0.1191, allocations: 4 kB / 447.5 MB, free: 5.477 MB / 282.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.1191, allocations: 4.312 kB / 447.5 MB, free: 5.473 MB / 282.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001781/0.1193, allocations: 192.3 kB / 447.7 MB, free: 5.266 MB / 282.8 MB Notification: Performance of postOpt removeConstants (simulation): time 3.113e-05/0.1194, allocations: 92.94 kB / 447.8 MB, free: 5.156 MB / 282.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.107e-05/0.1194, allocations: 12 kB / 447.8 MB, free: 5.145 MB / 282.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.764e-05/0.1195, allocations: 480 / 447.8 MB, free: 5.145 MB / 282.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.765e-05/0.1195, allocations: 7.984 kB / 447.8 MB, free: 5.137 MB / 282.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.705e-06/0.1195, allocations: 4 kB / 447.8 MB, free: 5.133 MB / 282.8 MB Notification: Performance of sorting global known variables: time 3.067e-05/0.1195, allocations: 91.17 kB / 447.9 MB, free: 5.043 MB / 282.8 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1196, allocations: 4 kB / 447.9 MB, free: 5.039 MB / 282.8 MB Notification: Performance of remove unused functions: time 0.0002176/0.1198, allocations: 19.98 kB / 447.9 MB, free: 5.02 MB / 282.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 5 (ClockedRealToTrigger.y2,ClockedRealToTrigger.y,$whenCondition1,ClockedRealToTrigger.y3,triggeredSampler.y) * Number of discrete states: 1 (ClockedRealToTrigger.y3) * Number of clocked states: 1 (ClockedRealToTrigger.y2) * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0004296/0.1202, allocations: 0.7601 MB / 448.7 MB, free: 4.23 MB / 282.8 MB Notification: Performance of simCode: created initialization part: time 0.0001617/0.1204, allocations: 63.91 kB / 448.7 MB, free: 4.168 MB / 282.8 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1204, allocations: 3.938 kB / 448.7 MB, free: 4.164 MB / 282.8 MB Notification: Performance of simCode: created simulation system equations: time 5.705e-05/0.1205, allocations: 23.98 kB / 448.7 MB, free: 4.141 MB / 282.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002657/0.1207, allocations: 27.91 kB / 448.8 MB, free: 4.117 MB / 282.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007641/0.1215, allocations: 0.5809 MB / 449.4 MB, free: 3.477 MB / 282.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001172/0.1216, allocations: 0.6938 MB / 450 MB, free: 2.758 MB / 282.8 MB Notification: Performance of simCode: alias equations: time 3.131e-05/0.1217, allocations: 11.95 kB / 450.1 MB, free: 2.746 MB / 282.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.436e-05/0.1217, allocations: 23.42 kB / 450.1 MB, free: 2.723 MB / 282.8 MB Notification: Performance of SimCode: time 2.2e-07/0.1217, allocations: 3.938 kB / 450.1 MB, free: 2.719 MB / 282.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01244/0.1342, allocations: 1.566 MB / 451.7 MB, free: 1.164 MB / 282.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001868/0.1344, allocations: 209.6 kB / 451.9 MB, free: 0.9258 MB / 282.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.51/1.644, allocations: 0 / 451.9 MB, free: 0.9258 MB / 282.8 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToTrigger.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToTrigger.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToTrigger.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToTrigger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestClockedRealToTrigger_fmu --startTime=0 --stopTime=1.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestClockedRealToTrigger.fmu > Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToTrigger.pipe 2>&1)