Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample1.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample1,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_BooleanSignals_Sample1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample1,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_BooleanSignals_Sample1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002342/0.002341, allocations: 191.6 kB / 17.37 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.455/1.455, allocations: 226.5 MB / 244.7 MB, free: 8.195 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009377/0.0009377, allocations: 99.86 kB / 296.7 MB, free: 6.891 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002814/0.0002815, allocations: 8 kB / 356.8 MB, free: 10.8 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3472/0.3475, allocations: 51.29 MB / 408.1 MB, free: 27.69 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample1): time 0.001554/0.3491, allocations: 1.218 MB / 409.4 MB, free: 26.47 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003533/0.3495, allocations: 131.7 kB / 409.5 MB, free: 26.34 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.197e-05/0.3496, allocations: 0.6875 kB / 409.5 MB, free: 26.34 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.419e-05/0.3497, allocations: 4.469 kB / 409.5 MB, free: 26.34 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001348/0.3498, allocations: 4 kB / 409.5 MB, free: 26.33 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002534/0.3501, allocations: 37.91 kB / 409.5 MB, free: 26.3 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.271e-05/0.3502, allocations: 31.86 kB / 409.6 MB, free: 26.27 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001095/0.3503, allocations: 15.98 kB / 409.6 MB, free: 26.25 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.918e-05/0.3503, allocations: 11.98 kB / 409.6 MB, free: 26.24 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.542e-05/0.3504, allocations: 16.48 kB / 409.6 MB, free: 26.23 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.764e-05/0.3504, allocations: 0.8438 kB / 409.6 MB, free: 26.23 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.145e-05/0.3504, allocations: 0 / 409.6 MB, free: 26.23 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.671e-05/0.3505, allocations: 8 kB / 409.6 MB, free: 26.22 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.018e-05/0.3505, allocations: 43.86 kB / 409.7 MB, free: 26.17 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 7.221e-05/0.3506, allocations: 27.94 kB / 409.7 MB, free: 26.14 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.805e-06/0.3506, allocations: 4 kB / 409.7 MB, free: 26.14 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.075e-06/0.3506, allocations: 0 / 409.7 MB, free: 26.14 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.078e-06/0.3506, allocations: 3.938 kB / 409.7 MB, free: 26.14 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.000425/0.351, allocations: 357.2 kB / 410 MB, free: 25.74 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.571e-05/0.3511, allocations: 12.66 kB / 410 MB, free: 25.73 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.158e-05/0.3511, allocations: 35.38 kB / 410.1 MB, free: 25.68 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.582e-05/0.3512, allocations: 8.844 kB / 410.1 MB, free: 25.68 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001604/0.3513, allocations: 186.9 kB / 410.3 MB, free: 25.46 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.963e-05/0.3514, allocations: 384 / 410.3 MB, free: 25.46 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.219e-05/0.3514, allocations: 8.312 kB / 410.3 MB, free: 25.45 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002461/0.3516, allocations: 119.1 kB / 410.4 MB, free: 25.32 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.123e-05/0.3517, allocations: 3.938 kB / 410.4 MB, free: 25.31 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.737e-06/0.3517, allocations: 0.7188 kB / 410.4 MB, free: 25.31 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.943e-06/0.3517, allocations: 7.984 kB / 410.4 MB, free: 25.3 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.879e-05/0.3517, allocations: 19.3 kB / 410.4 MB, free: 25.29 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002939/0.352, allocations: 261.8 kB / 410.7 MB, free: 24.98 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001456/0.3522, allocations: 138.2 kB / 410.8 MB, free: 24.81 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.491e-05/0.3523, allocations: 25.78 kB / 410.8 MB, free: 24.78 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.128e-05/0.3523, allocations: 4 kB / 410.8 MB, free: 24.77 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.45e-05/0.3523, allocations: 34.5 kB / 410.9 MB, free: 24.73 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 1.112e-06/0.3523, allocations: 0 / 410.9 MB, free: 24.73 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002017/0.3525, allocations: 77.52 kB / 411 MB, free: 24.65 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.385e-05/0.3526, allocations: 81.11 kB / 411 MB, free: 24.55 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.033e-05/0.3527, allocations: 132.5 kB / 411.2 MB, free: 24.41 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.924e-06/0.3527, allocations: 25.7 kB / 411.2 MB, free: 24.38 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.594e-05/0.3527, allocations: 88.12 kB / 411.3 MB, free: 24.29 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.806e-06/0.3528, allocations: 4 kB / 411.3 MB, free: 24.29 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.746e-06/0.3528, allocations: 0 / 411.3 MB, free: 24.29 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.903e-05/0.3528, allocations: 319 kB / 411.6 MB, free: 23.97 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.899e-05/0.3529, allocations: 7.984 kB / 411.6 MB, free: 23.96 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.056e-05/0.3529, allocations: 31.44 kB / 411.6 MB, free: 23.92 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.817e-05/0.353, allocations: 51.3 kB / 411.7 MB, free: 23.86 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.353, allocations: 3.938 kB / 411.7 MB, free: 23.85 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.68e-05/0.3531, allocations: 61.53 kB / 411.7 MB, free: 23.79 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.368e-05/0.3531, allocations: 8 kB / 411.8 MB, free: 23.78 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.3531, allocations: 0 / 411.8 MB, free: 23.78 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.362e-05/0.3531, allocations: 4.062 kB / 411.8 MB, free: 23.77 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.175e-05/0.3531, allocations: 8 kB / 411.8 MB, free: 23.77 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.23e-06/0.3532, allocations: 0 / 411.8 MB, free: 23.77 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.201e-05/0.3532, allocations: 4 kB / 411.8 MB, free: 23.76 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.442e-06/0.3532, allocations: 0 / 411.8 MB, free: 23.76 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.223e-05/0.3533, allocations: 121.8 kB / 411.9 MB, free: 23.63 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001101/0.3534, allocations: 49.59 kB / 411.9 MB, free: 23.58 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.481e-05/0.3534, allocations: 11.91 kB / 411.9 MB, free: 23.55 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.477e-06/0.3534, allocations: 7.938 kB / 412 MB, free: 23.55 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.3535, allocations: 7.938 kB / 412 MB, free: 23.54 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.973e-06/0.3535, allocations: 4 kB / 412 MB, free: 23.54 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001782/0.3537, allocations: 173.5 kB / 412.1 MB, free: 23.32 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.3537, allocations: 0 / 412.1 MB, free: 23.32 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.534e-06/0.3537, allocations: 0 / 412.1 MB, free: 23.32 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.3537, allocations: 0 / 412.1 MB, free: 23.32 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.029e-05/0.3537, allocations: 4 kB / 412.1 MB, free: 23.31 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.3537, allocations: 0 / 412.1 MB, free: 23.31 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.3537, allocations: 0 / 412.1 MB, free: 23.31 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001626/0.3539, allocations: 168.6 kB / 412.3 MB, free: 23.13 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.879e-05/0.3539, allocations: 89.09 kB / 412.4 MB, free: 23.02 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.035e-05/0.354, allocations: 4.047 kB / 412.4 MB, free: 23.02 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.431e-05/0.354, allocations: 7.922 kB / 412.4 MB, free: 23.01 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.166e-05/0.3541, allocations: 4 kB / 412.4 MB, free: 23.01 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.468e-06/0.3541, allocations: 0 / 412.4 MB, free: 23.01 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.972e-05/0.3542, allocations: 103.2 kB / 412.5 MB, free: 22.91 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3542, allocations: 4 kB / 412.5 MB, free: 22.9 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002276/0.3544, allocations: 4 kB / 412.5 MB, free: 22.9 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: 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 (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.0004896/0.3549, allocations: 0.6937 MB / 413.2 MB, free: 22.18 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001437/0.3551, allocations: 31.92 kB / 413.2 MB, free: 22.14 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.3551, allocations: 0 / 413.2 MB, free: 22.14 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.987e-05/0.3551, allocations: 7.984 kB / 413.3 MB, free: 22.14 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004237/0.3555, allocations: 30.31 kB / 413.3 MB, free: 22.11 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008837/0.3564, allocations: 495.6 kB / 413.8 MB, free: 21.56 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003285/0.3568, allocations: 0.6965 MB / 414.5 MB, free: 20.84 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.425e-05/0.3568, allocations: 15.44 kB / 414.5 MB, free: 20.82 MB / 298.7 MB Notification: Performance of SimCode: time 2.41e-07/0.3568, allocations: 0 / 414.5 MB, free: 20.82 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.641/2.998, allocations: 0.8786 MB / 415.4 MB, free: 19.95 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample1.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample1.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample1.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample1_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_BooleanSignals_Sample1_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_BooleanSignals_Sample1.fmu > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample1.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,assignClock.y,sample1.y Variables in the result:assignClock.u,assignClock.y,periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample1.u,sample1.y,step.startTime,step.startValue,step.y,time