Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.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.IntegerSignals.Sample1,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_IntegerSignals_Sample1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_IntegerSignals_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.0008947/0.0008949, allocations: 177.5 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.168/1.168, allocations: 205.4 MB / 222.9 MB, free: 8.91 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.0007533/0.0007532, allocations: 85.55 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.05658/0.05658, allocations: 12.19 MB / 331.8 MB, free: 11.62 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003505/0.0003506, allocations: 12 kB / 392.2 MB, free: 66.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06444/0.06481, allocations: 50.29 MB / 442.5 MB, free: 16.55 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1): time 0.001265/0.0661, allocations: 1.211 MB / 443.7 MB, free: 15.33 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002883/0.06641, allocations: 159.6 kB / 443.9 MB, free: 15.17 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.483e-05/0.06649, allocations: 0 / 443.9 MB, free: 15.17 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.529e-05/0.06653, allocations: 11.94 kB / 443.9 MB, free: 15.16 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 8.661e-05/0.06662, allocations: 3.984 kB / 443.9 MB, free: 15.16 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001719/0.0668, allocations: 31.91 kB / 443.9 MB, free: 15.12 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 6.687e-05/0.06688, allocations: 35.84 kB / 443.9 MB, free: 15.09 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.71e-05/0.06696, allocations: 15.98 kB / 444 MB, free: 15.07 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.113e-05/0.06702, allocations: 15.92 kB / 444 MB, free: 15.06 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.135e-05/0.06705, allocations: 11.94 kB / 444 MB, free: 15.05 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.232e-05/0.06707, allocations: 0 / 444 MB, free: 15.05 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.468e-06/0.06709, allocations: 0 / 444 MB, free: 15.05 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.096e-05/0.06712, allocations: 15.92 kB / 444 MB, free: 15.03 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.966e-05/0.06716, allocations: 45.56 kB / 444 MB, free: 14.98 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 5.195e-05/0.06721, allocations: 27.95 kB / 444.1 MB, free: 14.95 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.06722, allocations: 3.938 kB / 444.1 MB, free: 14.95 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.92e-07/0.06723, allocations: 0 / 444.1 MB, free: 14.95 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.145e-06/0.06724, allocations: 4 kB / 444.1 MB, free: 14.95 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.0002816/0.06752, allocations: 363.5 kB / 444.4 MB, free: 14.54 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.302e-05/0.06756, allocations: 8.031 kB / 444.4 MB, free: 14.53 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.282e-05/0.06759, allocations: 38.75 kB / 444.5 MB, free: 14.48 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.063e-05/0.06762, allocations: 12.83 kB / 444.5 MB, free: 14.47 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001131/0.06774, allocations: 192.1 kB / 444.7 MB, free: 14.25 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.375e-06/0.06775, allocations: 384 / 444.7 MB, free: 14.25 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.051e-05/0.06777, allocations: 4.375 kB / 444.7 MB, free: 14.24 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002235/0.068, allocations: 125.6 kB / 444.8 MB, free: 14.1 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.464e-06/0.06801, allocations: 3.938 kB / 444.8 MB, free: 14.1 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.573e-06/0.06803, allocations: 0 / 444.8 MB, free: 14.1 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.487e-06/0.06803, allocations: 7.938 kB / 444.8 MB, free: 14.09 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.786e-05/0.06811, allocations: 19.98 kB / 444.8 MB, free: 14.07 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001958/0.06831, allocations: 257.7 kB / 445.1 MB, free: 13.77 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001398/0.06846, allocations: 150.2 kB / 445.2 MB, free: 13.58 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.19e-05/0.06852, allocations: 25.78 kB / 445.3 MB, free: 13.55 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.563e-05/0.06854, allocations: 4 kB / 445.3 MB, free: 13.55 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.06e-05/0.06856, allocations: 34.55 kB / 445.3 MB, free: 13.5 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 1.032e-06/0.06857, allocations: 0 / 445.3 MB, free: 13.5 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001877/0.06876, allocations: 81.61 kB / 445.4 MB, free: 13.42 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.216e-05/0.06881, allocations: 89.17 kB / 445.5 MB, free: 13.31 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.442e-05/0.06889, allocations: 139.4 kB / 445.6 MB, free: 13.16 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.102e-06/0.0689, allocations: 25.7 kB / 445.6 MB, free: 13.13 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.437e-05/0.06893, allocations: 88.14 kB / 445.7 MB, free: 13.04 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.984e-06/0.06895, allocations: 3.984 kB / 445.7 MB, free: 13.04 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.525e-06/0.06895, allocations: 0 / 445.7 MB, free: 13.04 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.877e-05/0.069, allocations: 322.8 kB / 446 MB, free: 12.71 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.587e-05/0.06904, allocations: 7.984 kB / 446 MB, free: 12.71 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.406e-05/0.06908, allocations: 35.44 kB / 446.1 MB, free: 12.66 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.747e-05/0.06915, allocations: 59.3 kB / 446.1 MB, free: 12.59 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.06916, allocations: 3.938 kB / 446.1 MB, free: 12.59 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001019/0.06927, allocations: 65.61 kB / 446.2 MB, free: 12.52 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.161e-05/0.06929, allocations: 4 kB / 446.2 MB, free: 12.51 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.158e-06/0.06929, allocations: 4 kB / 446.2 MB, free: 12.51 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.598e-06/0.06931, allocations: 0 / 446.2 MB, free: 12.51 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.619e-05/0.06936, allocations: 16.06 kB / 446.2 MB, free: 12.49 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.099e-06/0.06937, allocations: 3.984 kB / 446.2 MB, free: 12.49 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.126e-05/0.06941, allocations: 7.906 kB / 446.2 MB, free: 12.48 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.48e-06/0.06942, allocations: 4 kB / 446.2 MB, free: 12.48 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.156e-05/0.06947, allocations: 121.6 kB / 446.4 MB, free: 12.35 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.202e-05/0.06953, allocations: 45.69 kB / 446.4 MB, free: 12.3 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.286e-05/0.06956, allocations: 12.58 kB / 446.4 MB, free: 12.28 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.06957, allocations: 0 / 446.4 MB, free: 12.28 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.876e-06/0.06957, allocations: 4 kB / 446.4 MB, free: 12.28 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.06958, allocations: 7.984 kB / 446.4 MB, free: 12.27 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001085/0.06969, allocations: 177.5 kB / 446.6 MB, free: 12.05 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.0697, allocations: 0 / 446.6 MB, free: 12.05 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.552e-05/0.06975, allocations: 15.92 kB / 446.6 MB, free: 12.03 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.06976, allocations: 0 / 446.6 MB, free: 12.03 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.871e-06/0.06977, allocations: 0 / 446.6 MB, free: 12.03 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.963e-06/0.06978, allocations: 4 kB / 446.6 MB, free: 12.03 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.06978, allocations: 0 / 446.6 MB, free: 12.03 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001132/0.0699, allocations: 168.3 kB / 446.8 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.004e-05/0.06994, allocations: 93 kB / 446.9 MB, free: 11.73 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.172e-05/0.06996, allocations: 4 kB / 446.9 MB, free: 11.73 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.809e-05/0.07002, allocations: 0 / 446.9 MB, free: 11.73 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.232e-05/0.07005, allocations: 4 kB / 446.9 MB, free: 11.73 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.985e-06/0.07006, allocations: 4 kB / 446.9 MB, free: 11.72 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.901e-05/0.0701, allocations: 111.3 kB / 447 MB, free: 11.61 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.07011, allocations: 0 / 447 MB, free: 11.61 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002133/0.07032, allocations: 4 kB / 447 MB, free: 11.61 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.0002339/0.07056, allocations: 0.7014 MB / 447.7 MB, free: 10.88 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001054/0.07068, allocations: 39.92 kB / 447.7 MB, free: 10.84 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.443e-06/0.07069, allocations: 0 / 447.7 MB, free: 10.84 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.109e-05/0.07072, allocations: 11.98 kB / 447.8 MB, free: 10.83 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002873/0.07102, allocations: 32.2 kB / 447.8 MB, free: 10.8 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005418/0.07157, allocations: 0.4917 MB / 448.3 MB, free: 10.23 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.74e-05/0.07168, allocations: 0.6887 MB / 449 MB, free: 9.52 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.789e-05/0.07171, allocations: 15.44 kB / 449 MB, free: 9.504 MB / 298.7 MB Notification: Performance of SimCode: time 2.3e-07/0.07172, allocations: 0 / 449 MB, free: 9.504 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.245/2.317, allocations: 0.9141 MB / 449.9 MB, free: 8.59 MB / 298.7 MB (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1_res.mat --tempDir=temp_Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_IntegerSignals_Sample1_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_IntegerSignals_Sample1.fmu > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:Time,assignClock.y,sample.y Variables in the result:assignClock.u,assignClock.y,periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample.u,sample.y,step.height,step.offset,step.startTime,step.y,time