Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_SampleClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_SampleClocked",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001273/0.001273, allocations: 115.7 kB / 17.33 MB, free: 6.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00117/0.00117, allocations: 205.8 kB / 18.27 MB, free: 5.094 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.411/1.411, allocations: 227.4 MB / 246.4 MB, free: 10.8 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001353/0.001353, allocations: 59.41 kB / 306.6 MB, free: 0.8359 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1404/0.1418, allocations: 50.53 MB / 357.1 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked): time 0.003627/0.1455, allocations: 1.554 MB / 358.6 MB, free: 12.75 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005316/0.146, allocations: 135.6 kB / 358.8 MB, free: 12.62 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001092/0.1462, allocations: 0 / 358.8 MB, free: 12.62 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 5.832e-05/0.1463, allocations: 3.938 kB / 358.8 MB, free: 12.61 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001559/0.1464, allocations: 3.984 kB / 358.8 MB, free: 12.61 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002488/0.1467, allocations: 35.91 kB / 358.8 MB, free: 12.57 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 8.624e-05/0.1468, allocations: 23.94 kB / 358.8 MB, free: 12.55 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001036/0.1469, allocations: 15.97 kB / 358.9 MB, free: 12.54 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.106e-05/0.1469, allocations: 7.938 kB / 358.9 MB, free: 12.53 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.929e-05/0.147, allocations: 19.92 kB / 358.9 MB, free: 12.51 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.092e-05/0.147, allocations: 4 kB / 358.9 MB, free: 12.5 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.087e-05/0.147, allocations: 3.938 kB / 358.9 MB, free: 12.5 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.702e-05/0.1471, allocations: 8 kB / 358.9 MB, free: 12.49 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.312e-05/0.1471, allocations: 19.86 kB / 358.9 MB, free: 12.47 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 9.655e-05/0.1472, allocations: 39.83 kB / 359 MB, free: 12.43 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.1472, allocations: 0 / 359 MB, free: 12.43 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.1472, allocations: 4 kB / 359 MB, free: 12.43 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.478e-06/0.1472, allocations: 0 / 359 MB, free: 12.43 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.00048/0.1477, allocations: 367.4 kB / 359.3 MB, free: 12.02 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.283e-05/0.1478, allocations: 12.03 kB / 359.3 MB, free: 12.01 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.581e-05/0.1478, allocations: 30.75 kB / 359.4 MB, free: 11.97 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.016e-05/0.1478, allocations: 8.844 kB / 359.4 MB, free: 11.96 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002044/0.1481, allocations: 188.2 kB / 359.6 MB, free: 11.74 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.798e-05/0.1481, allocations: 384 / 359.6 MB, free: 11.74 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.189e-05/0.1481, allocations: 8.312 kB / 359.6 MB, free: 11.73 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002362/0.1483, allocations: 89.62 kB / 359.7 MB, free: 11.62 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.14e-05/0.1484, allocations: 3.938 kB / 359.7 MB, free: 11.62 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.138e-05/0.1484, allocations: 3.984 kB / 359.7 MB, free: 11.62 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.179e-06/0.1484, allocations: 0 / 359.7 MB, free: 11.62 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.443e-05/0.1484, allocations: 8 kB / 359.7 MB, free: 11.61 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000375/0.1488, allocations: 261.8 kB / 359.9 MB, free: 11.3 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.673e-05/0.1489, allocations: 41.16 kB / 360 MB, free: 11.24 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.481e-05/0.149, allocations: 17.78 kB / 360 MB, free: 11.22 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.033e-05/0.149, allocations: 3.938 kB / 360 MB, free: 11.21 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.902e-05/0.149, allocations: 34.56 kB / 360 MB, free: 11.17 MB / 302.1 MB Notification: Performance of pre-optimization done (n=2): time 1.403e-06/0.149, allocations: 0 / 360 MB, free: 11.17 MB / 302.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002192/0.1493, allocations: 65.52 kB / 360.1 MB, free: 11.1 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.106e-05/0.1493, allocations: 77.11 kB / 360.2 MB, free: 11.01 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001269/0.1495, allocations: 132.4 kB / 360.3 MB, free: 10.87 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.42e-05/0.1495, allocations: 25.7 kB / 360.3 MB, free: 10.84 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.931e-05/0.1496, allocations: 88.14 kB / 360.4 MB, free: 10.75 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.506e-06/0.1496, allocations: 0 / 360.4 MB, free: 10.75 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.226e-05/0.1496, allocations: 17.88 kB / 360.4 MB, free: 10.73 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001376/0.1498, allocations: 322.8 kB / 360.7 MB, free: 10.4 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.429e-05/0.1498, allocations: 4 kB / 360.7 MB, free: 10.4 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.031e-05/0.1499, allocations: 13.72 kB / 360.7 MB, free: 10.38 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.99e-05/0.1499, allocations: 33.58 kB / 360.8 MB, free: 10.34 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.586e-06/0.1499, allocations: 3.938 kB / 360.8 MB, free: 10.34 MB / 302.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.68e-05/0.15, allocations: 49.75 kB / 360.8 MB, free: 10.28 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.88e-05/0.1501, allocations: 4 kB / 360.8 MB, free: 10.28 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.1501, allocations: 3.938 kB / 360.8 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.795e-05/0.1501, allocations: 4 kB / 360.8 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.706e-05/0.1501, allocations: 0 / 360.8 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.482e-06/0.1501, allocations: 0 / 360.8 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.382e-05/0.1502, allocations: 0 / 360.8 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.207e-06/0.1502, allocations: 4 kB / 360.8 MB, free: 10.27 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (sample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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.0001068/0.1503, allocations: 133.8 kB / 361 MB, free: 10.12 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.736e-05/0.1504, allocations: 33.61 kB / 361 MB, free: 10.09 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.395e-05/0.1504, allocations: 15.48 kB / 361 MB, free: 10.07 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.1504, allocations: 0 / 361 MB, free: 10.07 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.528e-06/0.1504, allocations: 8 kB / 361 MB, free: 10.06 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.1504, allocations: 0 / 361 MB, free: 10.06 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001706/0.1506, allocations: 169.6 kB / 361.2 MB, free: 9.844 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.1506, allocations: 0 / 361.2 MB, free: 9.844 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.745e-06/0.1506, allocations: 3.938 kB / 361.2 MB, free: 9.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.1506, allocations: 0 / 361.2 MB, free: 9.84 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.468e-06/0.1507, allocations: 11.97 kB / 361.2 MB, free: 9.828 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.1507, allocations: 0 / 361.2 MB, free: 9.828 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.1507, allocations: 0 / 361.2 MB, free: 9.828 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001468/0.1508, allocations: 156.2 kB / 361.4 MB, free: 9.656 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.4e-05/0.1509, allocations: 89.03 kB / 361.5 MB, free: 9.551 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.414e-05/0.1509, allocations: 0 / 361.5 MB, free: 9.551 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.443e-05/0.151, allocations: 8.016 kB / 361.5 MB, free: 9.543 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.897e-05/0.151, allocations: 8 kB / 361.5 MB, free: 9.535 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.697e-06/0.151, allocations: 0 / 361.5 MB, free: 9.535 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.627e-05/0.1511, allocations: 95.27 kB / 361.6 MB, free: 9.441 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1511, allocations: 0 / 361.6 MB, free: 9.441 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002194/0.1513, allocations: 4 kB / 361.6 MB, free: 9.438 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: 2 (sample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0004593/0.1518, allocations: 0.6975 MB / 362.3 MB, free: 8.711 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001151/0.1519, allocations: 19.94 kB / 362.3 MB, free: 8.691 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/0.1519, allocations: 0 / 362.3 MB, free: 8.691 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 2.647e-05/0.152, allocations: 4 kB / 362.3 MB, free: 8.688 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004396/0.1524, allocations: 24.2 kB / 362.3 MB, free: 8.664 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001397/0.1538, allocations: 1.26 MB / 363.6 MB, free: 7.312 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003149/0.1541, allocations: 0.6885 MB / 364.3 MB, free: 6.598 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.633e-05/0.1542, allocations: 0 / 364.3 MB, free: 6.598 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.894e-05/0.1542, allocations: 15.42 kB / 364.3 MB, free: 6.582 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1542, allocations: 0 / 364.3 MB, free: 6.582 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07087/0.2251, allocations: 1.24 MB / 365.5 MB, free: 5.508 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002698/0.2254, allocations: 226.8 kB / 365.7 MB, free: 5.242 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.102/2.327, allocations: 0 / 365.7 MB, free: 5.242 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_SampleClocked_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_SampleClocked.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/SampleClocked/SampleClocked.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches