Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1.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/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/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.Examples.Elementary.BooleanSignals.Sample1,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_Sample1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_Sample1",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.0008055/0.0008055, allocations: 175.3 kB / 16.77 MB, free: 4.926 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.208/1.208, allocations: 205.4 MB / 222.9 MB, free: 9.012 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.000675/0.0006751, allocations: 90.34 kB / 271.3 MB, free: 8.234 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.0614/0.0614, allocations: 12.2 MB / 331.8 MB, free: 11.64 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003851/0.0003851, allocations: 12 kB / 392.2 MB, free: 66.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08498/0.08538, allocations: 50.29 MB / 442.5 MB, free: 16.55 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1): time 0.00157/0.087, allocations: 1.203 MB / 443.7 MB, free: 15.33 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003248/0.08734, allocations: 155.6 kB / 443.9 MB, free: 15.18 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.317e-05/0.08742, allocations: 4 kB / 443.9 MB, free: 15.18 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.089e-05/0.08746, allocations: 3.938 kB / 443.9 MB, free: 15.17 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001186/0.08759, allocations: 7.984 kB / 443.9 MB, free: 15.16 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001954/0.08779, allocations: 35.91 kB / 443.9 MB, free: 15.13 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.623e-05/0.08787, allocations: 31.91 kB / 443.9 MB, free: 15.1 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.834e-05/0.08797, allocations: 16 kB / 443.9 MB, free: 15.08 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.998e-05/0.08802, allocations: 11.92 kB / 444 MB, free: 15.07 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.923e-05/0.08806, allocations: 19.88 kB / 444 MB, free: 15.05 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.405e-05/0.08808, allocations: 0 / 444 MB, free: 15.05 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.059e-05/0.0881, allocations: 0 / 444 MB, free: 15.05 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.138e-05/0.08813, allocations: 7.984 kB / 444 MB, free: 15.04 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.24e-05/0.08817, allocations: 45.56 kB / 444 MB, free: 14.99 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 5.566e-05/0.08823, allocations: 27.95 kB / 444.1 MB, free: 14.96 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.461e-06/0.08824, allocations: 0 / 444.1 MB, free: 14.96 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.213e-06/0.08825, allocations: 7.875 kB / 444.1 MB, free: 14.96 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.257e-06/0.08826, allocations: 0 / 444.1 MB, free: 14.96 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.0003358/0.0886, allocations: 359.6 kB / 444.4 MB, free: 14.55 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.08865, allocations: 8.031 kB / 444.4 MB, free: 14.55 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.139e-05/0.08869, allocations: 38.75 kB / 444.5 MB, free: 14.5 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.177e-05/0.08871, allocations: 8.844 kB / 444.5 MB, free: 14.49 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001389/0.08886, allocations: 188.1 kB / 444.7 MB, free: 14.27 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.78e-05/0.08888, allocations: 4.375 kB / 444.7 MB, free: 14.27 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.756e-06/0.0889, allocations: 4.375 kB / 444.7 MB, free: 14.26 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002297/0.08913, allocations: 125.5 kB / 444.8 MB, free: 14.12 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.954e-06/0.08915, allocations: 3.938 kB / 444.8 MB, free: 14.12 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.482e-06/0.08916, allocations: 0 / 444.8 MB, free: 14.12 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.118e-06/0.08917, allocations: 0 / 444.8 MB, free: 14.12 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.436e-05/0.08923, allocations: 19.98 kB / 444.8 MB, free: 14.1 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002254/0.08946, allocations: 269.7 kB / 445.1 MB, free: 13.78 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001151/0.08959, allocations: 126.3 kB / 445.2 MB, free: 13.62 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.887e-05/0.08965, allocations: 41.7 kB / 445.2 MB, free: 13.57 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.418e-05/0.08967, allocations: 0 / 445.2 MB, free: 13.57 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.171e-05/0.08969, allocations: 34.56 kB / 445.3 MB, free: 13.53 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 7.42e-07/0.08969, allocations: 0 / 445.3 MB, free: 13.53 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001825/0.08988, allocations: 73.52 kB / 445.3 MB, free: 13.45 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.013e-05/0.08992, allocations: 77.23 kB / 445.4 MB, free: 13.36 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.475e-05/0.09, allocations: 138.8 kB / 445.6 MB, free: 13.21 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.452e-06/0.09001, allocations: 29.7 kB / 445.6 MB, free: 13.18 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.46e-05/0.09004, allocations: 88.12 kB / 445.7 MB, free: 13.09 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.624e-06/0.09006, allocations: 3.906 kB / 445.7 MB, free: 13.09 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.194e-06/0.09006, allocations: 0 / 445.7 MB, free: 13.09 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.924e-05/0.09011, allocations: 318.8 kB / 446 MB, free: 12.77 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.678e-05/0.09014, allocations: 7.938 kB / 446 MB, free: 12.76 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.925e-05/0.09017, allocations: 39.42 kB / 446 MB, free: 12.71 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.141e-05/0.09023, allocations: 43.36 kB / 446.1 MB, free: 12.65 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.09024, allocations: 3.938 kB / 446.1 MB, free: 12.65 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.349e-05/0.09033, allocations: 69.5 kB / 446.1 MB, free: 12.57 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.688e-06/0.09035, allocations: 4 kB / 446.1 MB, free: 12.57 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.037e-06/0.09036, allocations: 0 / 446.1 MB, free: 12.57 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.036e-05/0.09037, allocations: 8 kB / 446.2 MB, free: 12.56 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.628e-06/0.09039, allocations: 0 / 446.2 MB, free: 12.56 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.14e-06/0.0904, allocations: 4 kB / 446.2 MB, free: 12.56 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.732e-05/0.09043, allocations: 0 / 446.2 MB, free: 12.56 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.019e-06/0.09044, allocations: 8.125 kB / 446.2 MB, free: 12.55 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,sample.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 5.003e-05/0.09049, allocations: 126.4 kB / 446.3 MB, free: 12.42 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.28e-05/0.09055, allocations: 49.55 kB / 446.3 MB, free: 12.36 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.33e-05/0.09058, allocations: 15.89 kB / 446.4 MB, free: 12.34 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.393e-06/0.09059, allocations: 0 / 446.4 MB, free: 12.34 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.735e-06/0.0906, allocations: 0 / 446.4 MB, free: 12.34 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.504e-06/0.0906, allocations: 0 / 446.4 MB, free: 12.34 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001104/0.09072, allocations: 169.6 kB / 446.5 MB, free: 12.13 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.09072, allocations: 4 kB / 446.5 MB, free: 12.12 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.414e-06/0.09074, allocations: 4 kB / 446.5 MB, free: 12.12 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.413e-06/0.09074, allocations: 0 / 446.5 MB, free: 12.12 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.903e-06/0.09076, allocations: 0 / 446.5 MB, free: 12.12 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.555e-06/0.09076, allocations: 4 kB / 446.5 MB, free: 12.12 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.09077, allocations: 0 / 446.5 MB, free: 12.12 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001054/0.09088, allocations: 168.2 kB / 446.7 MB, free: 11.93 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.309e-05/0.09092, allocations: 97.38 kB / 446.8 MB, free: 11.82 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.948e-06/0.09094, allocations: 0 / 446.8 MB, free: 11.82 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.992e-05/0.09099, allocations: 4 kB / 446.8 MB, free: 11.82 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.453e-05/0.09102, allocations: 0 / 446.8 MB, free: 11.82 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.587e-06/0.09103, allocations: 4 kB / 446.8 MB, free: 11.81 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.87e-05/0.09107, allocations: 107.8 kB / 446.9 MB, free: 11.71 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.09108, allocations: 0 / 446.9 MB, free: 11.71 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001994/0.09128, allocations: 4 kB / 446.9 MB, free: 11.7 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,sample.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.0002356/0.09152, allocations: 0.7014 MB / 447.6 MB, free: 10.97 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 8.429e-05/0.09162, allocations: 23.98 kB / 447.6 MB, free: 10.95 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.463e-06/0.09163, allocations: 0 / 447.6 MB, free: 10.95 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.31e-05/0.09165, allocations: 16.17 kB / 447.6 MB, free: 10.93 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000295/0.09196, allocations: 23.97 kB / 447.7 MB, free: 10.91 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005226/0.09249, allocations: 491.6 kB / 448.2 MB, free: 10.36 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001264/0.09263, allocations: 0.6887 MB / 448.8 MB, free: 9.645 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.083e-05/0.09266, allocations: 15.44 kB / 448.9 MB, free: 9.629 MB / 298.7 MB Notification: Performance of SimCode: time 2.1e-07/0.09267, allocations: 0 / 448.9 MB, free: 9.629 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.204/2.297, allocations: 0.8826 MB / 449.7 MB, free: 8.746 MB / 298.7 MB (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1_res.mat --tempDir=temp_Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_Sample1_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_Sample1.fmu > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:Time,assignClock.y,step.y Variables in the result:assignClock.u,assignClock.y,periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample.u,sample.y,step.startTime,step.startValue,step.y,time