Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestClockedBooleanToTrigger.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.TestClockedBooleanToTrigger,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestClockedBooleanToTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.WorkInProgress.Tests.TestClockedBooleanToTrigger,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestClockedBooleanToTrigger",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001834/0.001833, allocations: 192.3 kB / 7.849 MB, free: 2.465 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.915/1.915, allocations: 205.2 MB / 213.4 MB, free: 13.93 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.001339/0.001338, allocations: 95.22 kB / 261.5 MB, free: 13.64 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1253/0.1253, allocations: 12.58 MB / 322 MB, free: 1.016 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2668/0.3922, allocations: 56.5 MB / 378.5 MB, free: 75.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1226/0.5149, allocations: 50.38 MB / 428.9 MB, free: 25.21 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.352/0.8669, allocations: 77.53 MB / 0.4945 GB, free: 11.83 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002388/0.8672, allocations: 58.12 kB / 0.4946 GB, free: 11.83 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.00602/0.8732, allocations: 1.385 MB / 0.4959 GB, free: 11.43 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.053e-05/0.8733, allocations: 7.719 kB / 0.4959 GB, free: 11.43 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.993e-05/0.8734, allocations: 7.75 kB / 0.4959 GB, free: 11.43 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002127/0.8736, allocations: 191.4 kB / 0.4961 GB, free: 11.22 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.657e-05/0.8736, allocations: 1.969 kB / 0.4961 GB, free: 11.22 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.027e-05/0.8737, allocations: 3.844 kB / 0.4961 GB, free: 11.22 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001251/0.8738, allocations: 29.25 kB / 0.4962 GB, free: 11.22 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002659/0.8741, allocations: 122.9 kB / 0.4963 GB, free: 11.15 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.095e-05/0.8741, allocations: 3.844 kB / 0.4963 GB, free: 11.15 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.391e-05/0.8741, allocations: 0 / 0.4963 GB, free: 11.15 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.933e-06/0.8741, allocations: 1.172 kB / 0.4963 GB, free: 11.15 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003723/0.8745, allocations: 271.3 kB / 0.4965 GB, free: 10.89 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000197/0.8747, allocations: 150.9 kB / 0.4967 GB, free: 10.75 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.356e-05/0.8748, allocations: 29.67 kB / 0.4967 GB, free: 10.73 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.199e-05/0.8749, allocations: 4.906 kB / 0.4967 GB, free: 10.73 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.888e-05/0.875, allocations: 66.44 kB / 0.4968 GB, free: 10.68 MB / 330.7 MB Notification: Performance of pre-optimization done (n=11): time 2.155e-06/0.875, allocations: 0 / 0.4968 GB, free: 10.68 MB / 330.7 MB Notification: Performance of matching and sorting (n=11): time 0.0002857/0.8753, allocations: 77.45 kB / 0.4969 GB, free: 10.64 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.06e-05/0.8753, allocations: 85.64 kB / 0.4969 GB, free: 10.55 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.258e-05/0.8754, allocations: 110.3 kB / 0.497 GB, free: 10.45 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.861e-05/0.8755, allocations: 26.83 kB / 0.4971 GB, free: 10.42 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.313e-05/0.8755, allocations: 93.33 kB / 0.4972 GB, free: 10.33 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.628e-05/0.8755, allocations: 12.91 kB / 0.4972 GB, free: 10.32 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.715e-06/0.8756, allocations: 4 kB / 0.4972 GB, free: 10.32 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.195e-05/0.8757, allocations: 321.2 kB / 0.4975 GB, free: 10.01 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.555e-05/0.8757, allocations: 15.31 kB / 0.4975 GB, free: 10.01 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.044e-05/0.8758, allocations: 61.84 kB / 0.4976 GB, free: 9.953 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.24e-05/0.8759, allocations: 26 kB / 0.4976 GB, free: 9.949 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.889e-06/0.8759, allocations: 3.844 kB / 0.4976 GB, free: 9.949 MB / 330.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002275/0.8761, allocations: 98.72 kB / 0.4977 GB, free: 9.906 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.837e-05/0.8762, allocations: 3.844 kB / 0.4977 GB, free: 9.906 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/0.8762, allocations: 0 / 0.4977 GB, free: 9.906 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.238e-05/0.8762, allocations: 11.31 kB / 0.4977 GB, free: 9.902 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.176e-05/0.8763, allocations: 10.48 kB / 0.4977 GB, free: 9.898 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.506e-06/0.8763, allocations: 7.844 kB / 0.4977 GB, free: 9.895 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001587/0.8765, allocations: 10.14 kB / 0.4977 GB, free: 9.895 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.38e-05/0.8765, allocations: 7.531 kB / 0.4977 GB, free: 9.895 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.triggeredBooleanSampler.y,triggeredBooleanSampler.y,$whenCondition1,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,ClockedSignalToTrigger.uu,ClockedSignalToTrigger.y2,$CLKPRE.ClockedSignalToTrigger.y2,$whenCondition2,ClockedSignalToTrigger.y,$PRE.ClockedSignalToTrigger.y3,ClockedSignalToTrigger.y3,ClockedSignalToTrigger.u,sample1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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 8.955e-05/0.8766, allocations: 112.8 kB / 0.4978 GB, free: 9.781 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.79e-05/0.8767, allocations: 48.42 kB / 0.4979 GB, free: 9.746 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.759e-05/0.8768, allocations: 12.73 kB / 0.4979 GB, free: 9.742 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.549e-06/0.8768, allocations: 4 kB / 0.4979 GB, free: 9.738 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.093e-06/0.8768, allocations: 0.6094 kB / 0.4979 GB, free: 9.738 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.8768, allocations: 4.391 kB / 0.4979 GB, free: 9.738 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003885/0.8772, allocations: 303.1 kB / 0.4982 GB, free: 9.469 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.497e-06/0.8773, allocations: 144 / 0.4982 GB, free: 9.469 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.024e-05/0.8773, allocations: 4.641 kB / 0.4982 GB, free: 9.469 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.384e-06/0.8773, allocations: 4.688 kB / 0.4982 GB, free: 9.465 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.343e-05/0.8773, allocations: 0.75 kB / 0.4982 GB, free: 9.465 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.839e-06/0.8773, allocations: 7.75 kB / 0.4982 GB, free: 9.461 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.985e-06/0.8773, allocations: 4 kB / 0.4982 GB, free: 9.457 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002021/0.8776, allocations: 201.6 kB / 0.4984 GB, free: 9.293 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002532/0.8778, allocations: 0.5591 MB / 0.499 GB, free: 8.762 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.203e-05/0.8779, allocations: 85.39 kB / 0.499 GB, free: 8.664 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.619e-05/0.8779, allocations: 8.547 kB / 0.499 GB, free: 8.66 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001798/0.8781, allocations: 9.469 kB / 0.4991 GB, free: 8.66 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.623e-05/0.8782, allocations: 3.562 kB / 0.4991 GB, free: 8.66 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.227e-05/0.8782, allocations: 4.344 kB / 0.4991 GB, free: 8.66 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.417e-05/0.8783, allocations: 91.55 kB / 0.4991 GB, free: 8.582 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001237/0.8795, allocations: 11.38 kB / 0.4992 GB, free: 8.582 MB / 330.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: 11 (sample1.y,ClockedSignalToTrigger.u,ClockedSignalToTrigger.y2,ClockedSignalToTrigger.uu,ClockedSignalToTrigger.y,$whenCondition2,$whenCondition1,ClockedSignalToTrigger.y3,booleanPulse.y,booleanPulse.pulseStart,triggeredBooleanSampler.y) * Number of discrete states: 1 (ClockedSignalToTrigger.y3) * 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.0001444/0.8797, allocations: 112 kB / 0.4993 GB, free: 8.48 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002208/0.8799, allocations: 54.17 kB / 0.4993 GB, free: 8.477 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.317e-06/0.8799, allocations: 0 / 0.4993 GB, free: 8.477 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.651e-05/0.88, allocations: 23.34 kB / 0.4993 GB, free: 8.477 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004122/0.8804, allocations: 21.41 kB / 0.4994 GB, free: 8.473 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004362/0.8809, allocations: 123.6 kB / 0.4995 GB, free: 8.387 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000233/0.8811, allocations: 0.7134 MB / 0.5002 GB, free: 7.68 MB / 330.7 MB Notification: Performance of SimCode: time 1.132e-06/0.8811, allocations: 288 / 0.5002 GB, free: 7.68 MB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestClockedBooleanToTrigger.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestClockedBooleanToTrigger.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestClockedBooleanToTrigger.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestClockedBooleanToTrigger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestClockedBooleanToTrigger_fmu --startTime=0 --stopTime=1.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestClockedBooleanToTrigger.fmu > Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestClockedBooleanToTrigger.pipe 2>&1)