Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample1.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample1,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_Sample1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample1,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_Sample1",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.001392/0.001393, allocations: 92.16 kB / 16.65 MB, free: 6.586 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.001662/0.001662, allocations: 183.8 kB / 17.56 MB, free: 6.203 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.621/1.621, allocations: 223.3 MB / 241.6 MB, free: 228 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003242/0.0003245, allocations: 4 kB / 301.5 MB, free: 6.016 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1474/0.1478, allocations: 50.41 MB / 351.9 MB, free: 3.594 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample1): time 0.002478/0.1503, allocations: 1.218 MB / 353.2 MB, free: 2.363 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.000544/0.1509, allocations: 135.6 kB / 353.3 MB, free: 2.23 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001284/0.151, allocations: 0 / 353.3 MB, free: 2.23 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.086e-05/0.1511, allocations: 3.938 kB / 353.3 MB, free: 2.227 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001627/0.1513, allocations: 7.984 kB / 353.3 MB, free: 2.219 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003661/0.1517, allocations: 35.91 kB / 353.3 MB, free: 2.184 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001201/0.1518, allocations: 27.92 kB / 353.4 MB, free: 2.156 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001512/0.1519, allocations: 12 kB / 353.4 MB, free: 2.145 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.737e-05/0.152, allocations: 15.92 kB / 353.4 MB, free: 2.129 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.511e-05/0.1521, allocations: 11.88 kB / 353.4 MB, free: 2.117 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.939e-05/0.1521, allocations: 7.984 kB / 353.4 MB, free: 2.109 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.344e-05/0.1521, allocations: 0 / 353.4 MB, free: 2.109 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.55e-05/0.1522, allocations: 15.92 kB / 353.4 MB, free: 2.094 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.72e-05/0.1523, allocations: 45.52 kB / 353.5 MB, free: 2.043 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001182/0.1524, allocations: 35.83 kB / 353.5 MB, free: 2.008 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.1524, allocations: 0 / 353.5 MB, free: 2.008 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.1524, allocations: 0 / 353.5 MB, free: 2.008 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.123e-06/0.1524, allocations: 0 / 353.5 MB, free: 2.008 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0006368/0.1531, allocations: 359.6 kB / 353.9 MB, free: 1.605 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.685e-05/0.1532, allocations: 8.031 kB / 353.9 MB, free: 1.598 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.23e-05/0.1532, allocations: 38.73 kB / 353.9 MB, free: 1.551 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.577e-05/0.1533, allocations: 12.84 kB / 353.9 MB, free: 1.539 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002718/0.1536, allocations: 188.1 kB / 354.1 MB, free: 1.316 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.405e-05/0.1536, allocations: 4.312 kB / 354.1 MB, free: 1.312 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.886e-05/0.1536, allocations: 8.375 kB / 354.1 MB, free: 1.305 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003598/0.154, allocations: 117.5 kB / 354.2 MB, free: 1.172 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.331e-05/0.154, allocations: 3.938 kB / 354.2 MB, free: 1.168 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.158e-05/0.154, allocations: 0 / 354.2 MB, free: 1.168 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.062e-06/0.154, allocations: 0 / 354.2 MB, free: 1.168 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.62e-05/0.1541, allocations: 23.97 kB / 354.3 MB, free: 1.145 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004558/0.1546, allocations: 253.8 kB / 354.5 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000229/0.1548, allocations: 142.2 kB / 354.6 MB, free: 0.668 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.786e-05/0.1549, allocations: 25.77 kB / 354.7 MB, free: 0.6367 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.295e-05/0.155, allocations: 8 kB / 354.7 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.524e-05/0.155, allocations: 34.5 kB / 354.7 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 1.162e-06/0.155, allocations: 0 / 354.7 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.0003291/0.1553, allocations: 69.58 kB / 354.8 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.635e-05/0.1554, allocations: 89.05 kB / 354.9 MB, free: 416 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001611/0.1556, allocations: 133 kB / 355 MB, free: 276 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.881e-05/0.1557, allocations: 29.7 kB / 355 MB, free: 240 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.892e-05/0.1558, allocations: 84.14 kB / 355.1 MB, free: 152 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.591e-05/0.1558, allocations: 3.938 kB / 355.1 MB, free: 148 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.506e-05/0.1558, allocations: 17.7 kB / 355.1 MB, free: 124 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001683/0.156, allocations: 314.8 kB / 355.4 MB, free: 15.8 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.691e-05/0.156, allocations: 8 kB / 355.4 MB, free: 15.8 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.276e-05/0.1561, allocations: 35.42 kB / 355.5 MB, free: 15.75 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.044e-05/0.1562, allocations: 43.36 kB / 355.5 MB, free: 15.7 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-06/0.1562, allocations: 3.938 kB / 355.5 MB, free: 15.69 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001355/0.1563, allocations: 73.47 kB / 355.6 MB, free: 15.61 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.066e-05/0.1564, allocations: 4 kB / 355.6 MB, free: 15.61 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.729e-06/0.1564, allocations: 4 kB / 355.6 MB, free: 15.61 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.631e-05/0.1564, allocations: 0 / 355.6 MB, free: 15.61 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.658e-05/0.1564, allocations: 3.938 kB / 355.6 MB, free: 15.6 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.398e-06/0.1565, allocations: 4 kB / 355.6 MB, free: 15.6 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.583e-05/0.1565, allocations: 0 / 355.6 MB, free: 15.6 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.899e-06/0.1565, allocations: 8.125 kB / 355.6 MB, free: 15.59 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (step.y,sample1.y,assignClock.y,assignClock.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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.0001083/0.1566, allocations: 121.8 kB / 355.7 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.719e-05/0.1567, allocations: 45.61 kB / 355.8 MB, free: 15.41 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.515e-05/0.1568, allocations: 15.89 kB / 355.8 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.1568, allocations: 3.938 kB / 355.8 MB, free: 15.38 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.025e-05/0.1568, allocations: 0 / 355.8 MB, free: 15.38 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.1568, allocations: 7.938 kB / 355.8 MB, free: 15.38 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002013/0.157, allocations: 169.6 kB / 356 MB, free: 15.16 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.157, allocations: 0 / 356 MB, free: 15.16 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.081e-05/0.1571, allocations: 8 kB / 356 MB, free: 15.15 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.906e-06/0.1571, allocations: 0 / 356 MB, free: 15.15 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.007e-05/0.1571, allocations: 4 kB / 356 MB, free: 15.15 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.1571, allocations: 0 / 356 MB, free: 15.15 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.1571, allocations: 0 / 356 MB, free: 15.15 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001969/0.1573, allocations: 164.6 kB / 356.1 MB, free: 14.97 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.815e-05/0.1574, allocations: 89.09 kB / 356.2 MB, free: 14.86 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.996e-05/0.1574, allocations: 8 kB / 356.2 MB, free: 14.86 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.757e-05/0.1575, allocations: 0 / 356.2 MB, free: 14.86 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.17e-05/0.1575, allocations: 7.969 kB / 356.3 MB, free: 14.85 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.759e-06/0.1575, allocations: 4 kB / 356.3 MB, free: 14.84 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.611e-05/0.1576, allocations: 103.2 kB / 356.4 MB, free: 14.74 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.6e-07/0.1576, allocations: 0 / 356.4 MB, free: 14.74 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002368/0.1579, allocations: 11.91 kB / 356.4 MB, free: 14.73 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 4 (step.y,assignClock.u,assignClock.y,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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 Backend phase and start with SimCode phase: time 0.0005242/0.1584, allocations: 0.6976 MB / 357.1 MB, free: 14 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00014/0.1585, allocations: 27.92 kB / 357.1 MB, free: 13.98 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.242e-06/0.1586, allocations: 4.25 kB / 357.1 MB, free: 13.97 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.397e-05/0.1586, allocations: 11.98 kB / 357.1 MB, free: 13.96 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004573/0.1591, allocations: 21.22 kB / 357.1 MB, free: 13.94 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001442/0.1605, allocations: 1.325 MB / 358.5 MB, free: 12.51 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000409/0.1609, allocations: 0.6926 MB / 359.1 MB, free: 11.79 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.332e-05/0.161, allocations: 8 kB / 359.2 MB, free: 11.79 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.192e-05/0.1611, allocations: 11.44 kB / 359.2 MB, free: 11.77 MB / 302.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1611, allocations: 0 / 359.2 MB, free: 11.77 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01493/0.176, allocations: 1.226 MB / 360.4 MB, free: 10.69 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002917/0.1764, allocations: 219.6 kB / 360.6 MB, free: 10.43 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.135/2.312, allocations: 3.234 kB / 360.6 MB, free: 10.43 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample1.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample1.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_Sample1_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_Sample1.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/Sample1/Sample1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches