Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestEventClockWithIntegrator.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.TestEventClockWithIntegrator,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestEventClockWithIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.WorkInProgress.Tests.TestEventClockWithIntegrator,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestEventClockWithIntegrator",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.001211/0.001211, 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.563/1.563, allocations: 205.4 MB / 222 MB, free: 13.84 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.000805/0.0008051, allocations: 98.28 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.08193/0.08193, allocations: 12.6 MB / 331.2 MB, free: 10.31 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 0.0004585/0.0004584, allocations: 13.75 kB / 392.1 MB, free: 54.69 MB / 282.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1108/0.1113, allocations: 50.38 MB / 442.5 MB, free: 10.83 MB / 282.8 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestEventClockWithIntegrator): time 0.00155/0.1129, allocations: 1.334 MB / 443.8 MB, free: 9.48 MB / 282.8 MB Notification: Performance of NFInst.instExpressions: time 0.0006204/0.1135, allocations: 0.4922 MB / 444.3 MB, free: 8.98 MB / 282.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.186e-05/0.1136, allocations: 0 / 444.3 MB, free: 8.98 MB / 282.8 MB Notification: Performance of NFTyping.typeComponents: time 1.538e-05/0.1136, allocations: 3.938 kB / 444.3 MB, free: 8.977 MB / 282.8 MB Notification: Performance of NFTyping.typeBindings: time 8.511e-05/0.1137, allocations: 7.938 kB / 444.3 MB, free: 8.969 MB / 282.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002844/0.114, allocations: 35.89 kB / 444.4 MB, free: 8.934 MB / 282.8 MB Notification: Performance of NFFlatten.flatten: time 9.697e-05/0.1141, allocations: 75.7 kB / 444.4 MB, free: 8.859 MB / 282.8 MB Notification: Performance of NFFlatten.resolveConnections: time 8.969e-05/0.1142, allocations: 11.98 kB / 444.5 MB, free: 8.848 MB / 282.8 MB Notification: Performance of NFEvalConstants.evaluate: time 7.403e-05/0.1143, allocations: 31.86 kB / 444.5 MB, free: 8.816 MB / 282.8 MB Notification: Performance of NFSimplifyModel.simplify: time 6.077e-05/0.1144, allocations: 31.84 kB / 444.5 MB, free: 8.785 MB / 282.8 MB Notification: Performance of NFPackage.collectConstants: time 2.146e-05/0.1144, allocations: 4 kB / 444.5 MB, free: 8.781 MB / 282.8 MB Notification: Performance of NFFlatten.collectFunctions: time 1.343e-05/0.1144, allocations: 0 / 444.5 MB, free: 8.781 MB / 282.8 MB Notification: Performance of NFScalarize.scalarize: time 1.517e-05/0.1144, allocations: 11.92 kB / 444.5 MB, free: 8.77 MB / 282.8 MB Notification: Performance of NFVerifyModel.verify: time 3.095e-05/0.1145, allocations: 37.64 kB / 444.6 MB, free: 8.727 MB / 282.8 MB Notification: Performance of NFConvertDAE.convert: time 7.026e-05/0.1146, allocations: 42.73 kB / 444.6 MB, free: 8.688 MB / 282.8 MB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.1146, allocations: 0 / 444.6 MB, free: 8.688 MB / 282.8 MB Notification: Performance of FrontEnd: time 1.283e-06/0.1146, allocations: 0 / 444.6 MB, free: 8.688 MB / 282.8 MB Notification: Performance of Transformations before backend: time 4.759e-06/0.1146, allocations: 0 / 444.6 MB, free: 8.688 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.000517/0.1151, allocations: 383.9 kB / 445 MB, free: 8.266 MB / 282.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.911e-05/0.1152, allocations: 12.03 kB / 445 MB, free: 8.254 MB / 282.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.482e-05/0.1152, allocations: 38.55 kB / 445 MB, free: 8.207 MB / 282.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.698e-05/0.1152, allocations: 7.906 kB / 445 MB, free: 8.199 MB / 282.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001571/0.1154, allocations: 194.8 kB / 445.2 MB, free: 7.969 MB / 282.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.396e-05/0.1154, allocations: 8 kB / 445.2 MB, free: 7.961 MB / 282.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.481e-05/0.1155, allocations: 7.984 kB / 445.2 MB, free: 7.953 MB / 282.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000261/0.1157, allocations: 125.8 kB / 445.4 MB, free: 7.809 MB / 282.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.113e-05/0.1157, allocations: 3.984 kB / 445.4 MB, free: 7.805 MB / 282.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.311e-05/0.1158, allocations: 8 kB / 445.4 MB, free: 7.797 MB / 282.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.039e-06/0.1158, allocations: 0 / 445.4 MB, free: 7.797 MB / 282.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001065/0.1159, allocations: 35.91 kB / 445.4 MB, free: 7.762 MB / 282.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003742/0.1163, allocations: 381.8 kB / 445.8 MB, free: 7.332 MB / 282.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000307/0.1166, allocations: 111.8 kB / 445.9 MB, free: 7.195 MB / 282.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.695e-05/0.1167, allocations: 38.62 kB / 445.9 MB, free: 7.148 MB / 282.8 MB Notification: Performance of preOpt evalFunc (simulation): time 2.093e-05/0.1167, allocations: 3.938 kB / 445.9 MB, free: 7.145 MB / 282.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000157/0.1169, allocations: 85.05 kB / 446 MB, free: 7.043 MB / 282.8 MB Notification: Performance of pre-optimization done (n=8): time 1.272e-06/0.1169, allocations: 0 / 446 MB, free: 7.043 MB / 282.8 MB Notification: Performance of matching and sorting (n=8): time 0.0002981/0.1172, allocations: 125.5 kB / 446.1 MB, free: 6.914 MB / 282.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.089e-05/0.1172, allocations: 110.8 kB / 446.3 MB, free: 6.781 MB / 282.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.249e-05/0.1173, allocations: 134 kB / 446.4 MB, free: 6.641 MB / 282.8 MB Notification: Performance of collectPreVariables (initialization): time 1.246e-05/0.1173, allocations: 25.7 kB / 446.4 MB, free: 6.609 MB / 282.8 MB Notification: Performance of collectInitialEqns (initialization): time 3.606e-05/0.1174, allocations: 92.33 kB / 446.5 MB, free: 6.516 MB / 282.8 MB Notification: Performance of collectInitialBindings (initialization): time 2.049e-05/0.1174, allocations: 15.8 kB / 446.5 MB, free: 6.5 MB / 282.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.973e-06/0.1174, allocations: 4 kB / 446.5 MB, free: 6.496 MB / 282.8 MB Notification: Performance of setup shared object (initialization): time 4.884e-05/0.1175, allocations: 326.7 kB / 446.8 MB, free: 6.168 MB / 282.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.091e-05/0.1175, allocations: 23.98 kB / 446.9 MB, free: 6.145 MB / 282.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.912e-05/0.1176, allocations: 70 kB / 446.9 MB, free: 6.055 MB / 282.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001292/0.1178, allocations: 113 kB / 447 MB, free: 5.926 MB / 282.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.1178, allocations: 8 kB / 447 MB, free: 5.918 MB / 282.8 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001966/0.118, allocations: 117.4 kB / 447.2 MB, free: 5.797 MB / 282.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.483e-05/0.118, allocations: 4 kB / 447.2 MB, free: 5.793 MB / 282.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.57e-06/0.118, allocations: 0 / 447.2 MB, free: 5.793 MB / 282.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.962e-05/0.118, allocations: 4 kB / 447.2 MB, free: 5.789 MB / 282.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.662e-05/0.1181, allocations: 32.11 kB / 447.2 MB, free: 5.758 MB / 282.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.374e-06/0.1181, allocations: 0 / 447.2 MB, free: 5.758 MB / 282.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.736e-05/0.1182, allocations: 15.84 kB / 447.2 MB, free: 5.742 MB / 282.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.436e-06/0.1182, allocations: 8 kB / 447.2 MB, free: 5.734 MB / 282.8 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: firstOrder.y = firstOrder.y_start. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 2 (firstOrder.y,$DER.firstOrder.y) * 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 9.368e-05/0.1183, allocations: 132.1 kB / 447.4 MB, free: 5.598 MB / 282.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.114e-05/0.1184, allocations: 57.53 kB / 447.4 MB, free: 5.535 MB / 282.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.525e-05/0.1185, allocations: 15.95 kB / 447.4 MB, free: 5.516 MB / 282.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.1185, allocations: 7.984 kB / 447.4 MB, free: 5.508 MB / 282.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.1185, allocations: 4 kB / 447.4 MB, free: 5.504 MB / 282.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.1185, allocations: 0 / 447.4 MB, free: 5.504 MB / 282.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002992/0.1188, allocations: 338.5 kB / 447.8 MB, free: 5.117 MB / 282.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.1188, allocations: 0 / 447.8 MB, free: 5.117 MB / 282.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000108/0.1189, allocations: 27.91 kB / 447.8 MB, free: 5.09 MB / 282.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.917e-06/0.1189, allocations: 0 / 447.8 MB, free: 5.09 MB / 282.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.122e-05/0.119, allocations: 4 kB / 447.8 MB, free: 5.086 MB / 282.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.365e-06/0.119, allocations: 4 kB / 447.8 MB, free: 5.082 MB / 282.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.119, allocations: 0 / 447.8 MB, free: 5.082 MB / 282.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000214/0.1192, allocations: 217 kB / 448 MB, free: 4.848 MB / 282.8 MB Notification: Performance of postOpt removeConstants (simulation): time 3.509e-05/0.1192, allocations: 96.95 kB / 448.1 MB, free: 4.734 MB / 282.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.19e-05/0.1193, allocations: 0 / 448.1 MB, free: 4.734 MB / 282.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001113/0.1194, allocations: 15.98 kB / 448.1 MB, free: 4.719 MB / 282.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.158e-05/0.1194, allocations: 7.984 kB / 448.1 MB, free: 4.711 MB / 282.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.326e-06/0.1195, allocations: 4 kB / 448.1 MB, free: 4.707 MB / 282.8 MB Notification: Performance of sorting global known variables: time 5.168e-05/0.1195, allocations: 103.2 kB / 448.2 MB, free: 4.605 MB / 282.8 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1195, allocations: 3.938 kB / 448.2 MB, free: 4.602 MB / 282.8 MB Notification: Performance of remove unused functions: time 0.0002265/0.1198, allocations: 12 kB / 448.3 MB, free: 4.59 MB / 282.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 (booleanPulse.y,$whenCondition1,booleanPulse.pulseStart,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 2 ($DER.firstOrder.y,firstOrder.y) * 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.0005055/0.1203, allocations: 0.7843 MB / 449 MB, free: 3.773 MB / 282.8 MB Notification: Performance of simCode: created initialization part: time 0.0001977/0.1205, allocations: 75.89 kB / 449.1 MB, free: 3.699 MB / 282.8 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.1205, allocations: 0 / 449.1 MB, free: 3.699 MB / 282.8 MB Notification: Performance of simCode: created simulation system equations: time 6.64e-05/0.1206, allocations: 23.94 kB / 449.1 MB, free: 3.676 MB / 282.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004014/0.121, allocations: 40.19 kB / 449.2 MB, free: 3.641 MB / 282.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009705/0.122, allocations: 0.6633 MB / 449.8 MB, free: 2.906 MB / 282.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001266/0.1221, allocations: 0.6965 MB / 450.5 MB, free: 2.184 MB / 282.8 MB Notification: Performance of simCode: alias equations: time 4.443e-05/0.1221, allocations: 8.375 kB / 450.5 MB, free: 2.176 MB / 282.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.632e-05/0.1222, allocations: 27.42 kB / 450.6 MB, free: 2.148 MB / 282.8 MB Notification: Performance of SimCode: time 5.91e-07/0.1222, allocations: 0 / 450.6 MB, free: 2.148 MB / 282.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01294/0.1352, allocations: 2.045 MB / 452.6 MB, free: 116 kB / 282.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002417/0.1354, allocations: 226.3 kB / 452.8 MB, free: 15.86 MB / 298.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.609/1.745, allocations: 3.906 kB / 452.8 MB, free: 15.86 MB / 298.8 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestEventClockWithIntegrator.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestEventClockWithIntegrator.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestEventClockWithIntegrator.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestEventClockWithIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestEventClockWithIntegrator_fmu --startTime=0 --stopTime=1.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestEventClockWithIntegrator.fmu > Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestEventClockWithIntegrator.pipe 2>&1)