Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_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/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/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_cpp_Modelica_Synchronous_WorkInProgress_Tests_TestClockedRealToTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToTrigger,fileNamePrefix="Modelica_Synchronous_cpp_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.000935/0.0009351, allocations: 171.2 kB / 16.76 MB, free: 4.906 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.209/1.209, allocations: 205.4 MB / 222.9 MB, free: 9.016 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007231/0.0007231, allocations: 89.17 kB / 271.3 MB, free: 8.242 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.05784/0.05784, allocations: 12.19 MB / 331.8 MB, free: 11.64 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003843/0.0003843, allocations: 23.98 kB / 392.2 MB, free: 66.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06652/0.06692, allocations: 50.29 MB / 442.5 MB, free: 16.55 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToTrigger): time 0.001189/0.06814, allocations: 1.282 MB / 443.8 MB, free: 15.26 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004899/0.06864, allocations: 484 kB / 444.2 MB, free: 14.78 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.137e-05/0.0687, allocations: 3.938 kB / 444.3 MB, free: 14.77 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.647e-05/0.06873, allocations: 0 / 444.3 MB, free: 14.77 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.309e-05/0.06879, allocations: 7.875 kB / 444.3 MB, free: 14.77 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002358/0.06903, allocations: 39.91 kB / 444.3 MB, free: 14.73 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 6.928e-05/0.06911, allocations: 59.83 kB / 444.4 MB, free: 14.67 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.311e-05/0.06921, allocations: 19.98 kB / 444.4 MB, free: 14.65 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.427e-05/0.06928, allocations: 19.88 kB / 444.4 MB, free: 14.63 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.753e-05/0.06933, allocations: 23.89 kB / 444.4 MB, free: 14.61 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.274e-05/0.06935, allocations: 4 kB / 444.4 MB, free: 14.6 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.768e-06/0.06937, allocations: 0 / 444.4 MB, free: 14.6 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.389e-05/0.06939, allocations: 7.938 kB / 444.4 MB, free: 14.59 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.547e-05/0.06943, allocations: 53.56 kB / 444.5 MB, free: 14.54 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 5.823e-05/0.06949, allocations: 35.92 kB / 444.5 MB, free: 14.5 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.0695, allocations: 4 kB / 444.5 MB, free: 14.5 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.373e-06/0.06951, allocations: 0 / 444.5 MB, free: 14.5 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.685e-06/0.06952, allocations: 3.938 kB / 444.5 MB, free: 14.49 MB / 298.7 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.0003471/0.06987, allocations: 359.6 kB / 444.9 MB, free: 14.09 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.202e-05/0.06991, allocations: 8.031 kB / 444.9 MB, free: 14.09 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.779e-05/0.06994, allocations: 46.67 kB / 444.9 MB, free: 14.03 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.337e-05/0.06997, allocations: 8.844 kB / 444.9 MB, free: 14.02 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001032/0.07007, allocations: 176.3 kB / 445.1 MB, free: 13.81 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.067e-06/0.07009, allocations: 8.375 kB / 445.1 MB, free: 13.8 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.286e-05/0.07011, allocations: 8.375 kB / 445.1 MB, free: 13.8 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002292/0.07034, allocations: 133.1 kB / 445.3 MB, free: 13.65 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.536e-06/0.07036, allocations: 0 / 445.3 MB, free: 13.65 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.526e-06/0.07038, allocations: 0 / 445.3 MB, free: 13.65 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.659e-06/0.07039, allocations: 8 kB / 445.3 MB, free: 13.64 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.705e-05/0.07049, allocations: 39.91 kB / 445.3 MB, free: 13.6 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003247/0.07082, allocations: 305.5 kB / 445.6 MB, free: 13.25 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001659/0.071, allocations: 162.2 kB / 445.8 MB, free: 13.05 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.406e-05/0.07107, allocations: 37.8 kB / 445.8 MB, free: 13.01 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.919e-05/0.0711, allocations: 3.984 kB / 445.8 MB, free: 13.01 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001157/0.07122, allocations: 71.34 kB / 445.9 MB, free: 12.93 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 1.433e-06/0.07123, allocations: 0 / 445.9 MB, free: 12.93 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002482/0.07148, allocations: 113.8 kB / 446 MB, free: 12.81 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.873e-05/0.07153, allocations: 96.95 kB / 446.1 MB, free: 12.7 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.807e-05/0.07159, allocations: 109.8 kB / 446.2 MB, free: 12.58 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.817e-06/0.0716, allocations: 33.64 kB / 446.2 MB, free: 12.54 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.38e-05/0.07163, allocations: 88.14 kB / 446.3 MB, free: 12.45 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.499e-05/0.07165, allocations: 15.8 kB / 446.3 MB, free: 12.43 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.909e-06/0.07166, allocations: 4 kB / 446.3 MB, free: 12.43 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.81e-05/0.0717, allocations: 322.8 kB / 446.6 MB, free: 12.11 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.353e-05/0.07176, allocations: 16 kB / 446.7 MB, free: 12.09 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.775e-05/0.07183, allocations: 69.5 kB / 446.7 MB, free: 12 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001082/0.07194, allocations: 93.08 kB / 446.8 MB, free: 11.89 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.07195, allocations: 4 kB / 446.8 MB, free: 11.89 MB / 298.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001604/0.07211, allocations: 109.5 kB / 446.9 MB, free: 11.78 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.408e-06/0.07213, allocations: 16.08 kB / 446.9 MB, free: 11.76 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.017e-06/0.07214, allocations: 4 kB / 446.9 MB, free: 11.76 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.347e-06/0.07216, allocations: 0 / 446.9 MB, free: 11.76 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.902e-05/0.07223, allocations: 16 kB / 447 MB, free: 11.74 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.42e-06/0.07224, allocations: 4 kB / 447 MB, free: 11.74 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.898e-05/0.0723, allocations: 11.92 kB / 447 MB, free: 11.73 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.694e-06/0.07231, allocations: 4 kB / 447 MB, free: 11.72 MB / 298.7 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 5.393e-05/0.07237, allocations: 129.5 kB / 447.1 MB, free: 11.59 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.718e-05/0.07242, allocations: 57.59 kB / 447.2 MB, free: 11.52 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.184e-05/0.07245, allocations: 7.969 kB / 447.2 MB, free: 11.52 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/0.07246, allocations: 0 / 447.2 MB, free: 11.52 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.656e-06/0.07246, allocations: 4 kB / 447.2 MB, free: 11.51 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.07247, allocations: 3.938 kB / 447.2 MB, free: 11.51 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002287/0.07271, allocations: 338.6 kB / 447.5 MB, free: 11.12 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.07272, allocations: 0 / 447.5 MB, free: 11.12 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.17e-05/0.07278, allocations: 16 kB / 447.5 MB, free: 11.11 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.07279, allocations: 3.984 kB / 447.5 MB, free: 11.1 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.225e-06/0.0728, allocations: 3.938 kB / 447.5 MB, free: 11.1 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.0728, allocations: 0 / 447.5 MB, free: 11.1 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.07281, allocations: 4 kB / 447.5 MB, free: 11.09 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001541/0.07297, allocations: 204.4 kB / 447.7 MB, free: 10.88 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.877e-05/0.073, allocations: 89 kB / 447.8 MB, free: 10.77 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.534e-05/0.07302, allocations: 4.062 kB / 447.8 MB, free: 10.77 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.573e-05/0.07309, allocations: 11.98 kB / 447.8 MB, free: 10.75 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.022e-05/0.07313, allocations: 8 kB / 447.8 MB, free: 10.75 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.524e-06/0.07314, allocations: 3.984 kB / 447.8 MB, free: 10.74 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.399e-05/0.07317, allocations: 91.22 kB / 447.9 MB, free: 10.65 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.07317, allocations: 384 / 447.9 MB, free: 10.65 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002063/0.07338, allocations: 12 kB / 448 MB, free: 10.64 MB / 298.7 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.0003698/0.07376, allocations: 0.7678 MB / 448.7 MB, free: 9.844 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001498/0.07392, allocations: 71.91 kB / 448.8 MB, free: 9.773 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.07393, allocations: 0 / 448.8 MB, free: 9.773 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.11e-05/0.07398, allocations: 27.92 kB / 448.8 MB, free: 9.746 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002371/0.07423, allocations: 20 kB / 448.8 MB, free: 9.727 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006442/0.07488, allocations: 0.5997 MB / 449.4 MB, free: 9.055 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.844e-05/0.07499, allocations: 0.6926 MB / 450.1 MB, free: 8.336 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.139e-05/0.07504, allocations: 23.42 kB / 450.2 MB, free: 8.316 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.07504, allocations: 0 / 450.2 MB, free: 8.316 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.193/2.268, allocations: 1.19 MB / 451.3 MB, free: 7.125 MB / 298.7 MB (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToTrigger.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToTrigger.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToTrigger.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToTrigger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_Synchronous_cpp_Modelica_Synchronous_WorkInProgress_Tests_TestClockedRealToTrigger_fmu --startTime=0 --stopTime=1.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_cpp_Modelica_Synchronous_WorkInProgress_Tests_TestClockedRealToTrigger.fmu > Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToTrigger.pipe 2>&1)