Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.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.SampleClocked,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_IntegerSignals_SampleClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_IntegerSignals_SampleClocked",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.0008207/0.0008207, allocations: 177.8 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.127/1.127, allocations: 205.4 MB / 222.9 MB, free: 8.926 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.000716/0.000716, allocations: 90.36 kB / 271.3 MB, free: 8.227 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.05593/0.05593, allocations: 12.19 MB / 331.8 MB, free: 11.63 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003653/0.0003654, allocations: 12 kB / 392.2 MB, free: 66.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06/0.06038, allocations: 50.29 MB / 442.5 MB, free: 16.54 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked): time 0.001172/0.06158, allocations: 1.192 MB / 443.7 MB, free: 15.34 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002888/0.06189, allocations: 155.6 kB / 443.8 MB, free: 15.18 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.384e-05/0.06197, allocations: 7.938 kB / 443.9 MB, free: 15.18 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.607e-05/0.06201, allocations: 4 kB / 443.9 MB, free: 15.17 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 9.299e-05/0.06211, allocations: 11.92 kB / 443.9 MB, free: 15.16 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001826/0.0623, allocations: 27.97 kB / 443.9 MB, free: 15.13 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 6.532e-05/0.06237, allocations: 31.86 kB / 443.9 MB, free: 15.1 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.107e-05/0.06245, allocations: 7.938 kB / 443.9 MB, free: 15.09 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.553e-05/0.0625, allocations: 23.91 kB / 444 MB, free: 15.07 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.071e-05/0.06253, allocations: 7.938 kB / 444 MB, free: 15.06 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.277e-05/0.06255, allocations: 0 / 444 MB, free: 15.06 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.747e-06/0.06257, allocations: 0 / 444 MB, free: 15.06 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.681e-05/0.0626, allocations: 11.92 kB / 444 MB, free: 15.05 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.592e-05/0.06263, allocations: 45.58 kB / 444 MB, free: 15 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 4.829e-05/0.06269, allocations: 27.95 kB / 444 MB, free: 14.97 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.06269, allocations: 0 / 444 MB, free: 14.97 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.342e-06/0.0627, allocations: 0 / 444 MB, free: 14.97 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.256e-06/0.06271, allocations: 0 / 444 MB, free: 14.97 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0002685/0.06298, allocations: 355.6 kB / 444.4 MB, free: 14.57 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.132e-05/0.06302, allocations: 8.031 kB / 444.4 MB, free: 14.57 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.396e-05/0.06305, allocations: 34.75 kB / 444.4 MB, free: 14.52 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.124e-05/0.06307, allocations: 20.83 kB / 444.5 MB, free: 14.5 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001136/0.06319, allocations: 184.1 kB / 444.6 MB, free: 14.29 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.635e-06/0.06321, allocations: 384 / 444.6 MB, free: 14.29 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.694e-06/0.06322, allocations: 8.312 kB / 444.6 MB, free: 14.28 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001898/0.06342, allocations: 89.67 kB / 444.7 MB, free: 14.17 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.163e-06/0.06343, allocations: 11.88 kB / 444.7 MB, free: 14.16 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.452e-06/0.06345, allocations: 0 / 444.7 MB, free: 14.16 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.717e-06/0.06345, allocations: 0 / 444.7 MB, free: 14.16 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.409e-05/0.06352, allocations: 19.98 kB / 444.8 MB, free: 14.14 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001888/0.06372, allocations: 253.8 kB / 445 MB, free: 13.84 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.954e-05/0.06379, allocations: 53.09 kB / 445.1 MB, free: 13.77 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.739e-05/0.06383, allocations: 21.77 kB / 445.1 MB, free: 13.74 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.553e-05/0.06386, allocations: 4 kB / 445.1 MB, free: 13.74 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.329e-05/0.06388, allocations: 38.56 kB / 445.1 MB, free: 13.69 MB / 298.7 MB Notification: Performance of pre-optimization done (n=2): time 1.433e-06/0.06388, allocations: 0 / 445.1 MB, free: 13.69 MB / 298.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001869/0.06407, allocations: 69.52 kB / 445.2 MB, free: 13.62 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.116e-05/0.06411, allocations: 81.05 kB / 445.3 MB, free: 13.52 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.439e-05/0.06419, allocations: 135.1 kB / 445.4 MB, free: 13.38 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.711e-06/0.06421, allocations: 29.95 kB / 445.4 MB, free: 13.34 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.394e-05/0.06424, allocations: 84.14 kB / 445.5 MB, free: 13.25 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.111e-06/0.06425, allocations: 0 / 445.5 MB, free: 13.25 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.034e-06/0.06425, allocations: 0 / 445.5 MB, free: 13.25 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.244e-05/0.06429, allocations: 318.8 kB / 445.8 MB, free: 12.93 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.353e-05/0.06433, allocations: 8 kB / 445.8 MB, free: 12.93 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.083e-05/0.06437, allocations: 25.7 kB / 445.9 MB, free: 12.89 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.657e-05/0.06443, allocations: 33.64 kB / 445.9 MB, free: 12.86 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.06444, allocations: 3.938 kB / 445.9 MB, free: 12.85 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.77e-05/0.06453, allocations: 61.62 kB / 446 MB, free: 12.79 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.078e-05/0.06455, allocations: 7.938 kB / 446 MB, free: 12.78 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.607e-06/0.06456, allocations: 4 kB / 446 MB, free: 12.77 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.243e-05/0.06458, allocations: 0 / 446 MB, free: 12.77 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.984e-05/0.06463, allocations: 4 kB / 446 MB, free: 12.77 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.168e-06/0.06464, allocations: 0 / 446 MB, free: 12.77 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.591e-05/0.06467, allocations: 7.984 kB / 446 MB, free: 12.76 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.238e-06/0.06468, allocations: 0 / 446 MB, free: 12.76 MB / 298.7 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 (step.y,sample.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.961e-05/0.06473, allocations: 138.3 kB / 446.1 MB, free: 12.62 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.316e-05/0.06478, allocations: 37.61 kB / 446.2 MB, free: 12.57 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.118e-05/0.06481, allocations: 15.81 kB / 446.2 MB, free: 12.56 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.06482, allocations: 0 / 446.2 MB, free: 12.56 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.056e-06/0.06482, allocations: 4 kB / 446.2 MB, free: 12.55 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.816e-06/0.06483, allocations: 4 kB / 446.2 MB, free: 12.55 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001071/0.06494, allocations: 169.6 kB / 446.3 MB, free: 12.34 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.06495, allocations: 0 / 446.3 MB, free: 12.34 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.53e-05/0.06499, allocations: 4 kB / 446.3 MB, free: 12.33 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.065, allocations: 0 / 446.3 MB, free: 12.33 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.55e-06/0.06501, allocations: 8.031 kB / 446.4 MB, free: 12.32 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.06501, allocations: 0 / 446.4 MB, free: 12.32 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.06502, allocations: 0 / 446.4 MB, free: 12.32 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001016/0.06512, allocations: 160.3 kB / 446.5 MB, free: 12.15 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.893e-05/0.06516, allocations: 93 kB / 446.6 MB, free: 12.04 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.116e-05/0.06518, allocations: 8.016 kB / 446.6 MB, free: 12.03 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.674e-05/0.06524, allocations: 4 kB / 446.6 MB, free: 12.03 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.81e-05/0.06526, allocations: 0 / 446.6 MB, free: 12.03 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.876e-06/0.06527, allocations: 4 kB / 446.6 MB, free: 12.02 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.757e-05/0.06531, allocations: 103.8 kB / 446.7 MB, free: 11.92 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.06532, allocations: 0 / 446.7 MB, free: 11.92 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002153/0.06554, allocations: 4 kB / 446.7 MB, free: 11.92 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: 2 (step.y,sample.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 (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.0002154/0.06576, allocations: 0.6936 MB / 447.4 MB, free: 11.2 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 9.145e-05/0.06586, allocations: 28.08 kB / 447.4 MB, free: 11.17 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.06587, allocations: 0 / 447.4 MB, free: 11.17 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.992e-05/0.06591, allocations: 7.984 kB / 447.5 MB, free: 11.16 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002718/0.06618, allocations: 24.33 kB / 447.5 MB, free: 11.14 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005136/0.06671, allocations: 478 kB / 447.9 MB, free: 10.61 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.414e-05/0.0668, allocations: 0.6848 MB / 448.6 MB, free: 9.895 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.51e-05/0.06683, allocations: 15.44 kB / 448.6 MB, free: 9.879 MB / 298.7 MB Notification: Performance of SimCode: time 2.3e-07/0.06684, allocations: 4 kB / 448.6 MB, free: 9.875 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.276/2.343, allocations: 0.8279 MB / 449.5 MB, free: 9.047 MB / 298.7 MB (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked_res.mat --tempDir=temp_Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_IntegerSignals_SampleClocked_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_IntegerSignals_SampleClocked.fmu > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:Time,sample.y Variables in the result:periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample.u,sample.y,step.height,step.offset,step.startTime,step.y,time