Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClock.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.RealSignals.AssignClock,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_RealSignals_AssignClock",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClock,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_RealSignals_AssignClock",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.0008755/0.0008755, allocations: 175.1 kB / 16.77 MB, free: 4.906 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.174/1.174, allocations: 205.4 MB / 222.9 MB, free: 9.008 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.000748/0.000748, allocations: 86.41 kB / 271.3 MB, free: 8.238 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.05677/0.05677, allocations: 12.21 MB / 331.8 MB, free: 11.62 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003643/0.0003644, allocations: 16 kB / 392.2 MB, free: 66.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06084/0.06122, allocations: 50.29 MB / 442.5 MB, free: 16.55 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClock): time 0.0009108/0.06217, allocations: 0.6473 MB / 443.1 MB, free: 15.9 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002884/0.06248, allocations: 135.6 kB / 443.3 MB, free: 15.77 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.28e-05/0.06256, allocations: 4 kB / 443.3 MB, free: 15.76 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.862e-05/0.06259, allocations: 3.938 kB / 443.3 MB, free: 15.76 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 9.898e-05/0.0627, allocations: 11.92 kB / 443.3 MB, free: 15.75 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001743/0.06288, allocations: 31.97 kB / 443.3 MB, free: 15.71 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.35e-05/0.06296, allocations: 39.86 kB / 443.4 MB, free: 15.68 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.022e-05/0.06305, allocations: 24.16 kB / 443.4 MB, free: 15.65 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.179e-05/0.06309, allocations: 15.94 kB / 443.4 MB, free: 15.63 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.456e-05/0.06313, allocations: 15.86 kB / 443.4 MB, free: 15.62 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.298e-05/0.06315, allocations: 0 / 443.4 MB, free: 15.62 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.061e-05/0.06317, allocations: 7.938 kB / 443.4 MB, free: 15.61 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.985e-05/0.06321, allocations: 15.92 kB / 443.4 MB, free: 15.59 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.382e-05/0.06324, allocations: 45.52 kB / 443.5 MB, free: 15.54 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 5.61e-05/0.06331, allocations: 39.92 kB / 443.5 MB, free: 15.5 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.06332, allocations: 0 / 443.5 MB, free: 15.5 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.06332, allocations: 4 kB / 443.5 MB, free: 15.5 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.787e-06/0.06333, allocations: 0 / 443.5 MB, free: 15.5 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0002662/0.0636, allocations: 367.4 kB / 443.9 MB, free: 15.09 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.18e-05/0.06364, allocations: 8.031 kB / 443.9 MB, free: 15.09 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.424e-05/0.06367, allocations: 38.75 kB / 443.9 MB, free: 15.04 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.203e-05/0.0637, allocations: 8.844 kB / 443.9 MB, free: 15.03 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001244/0.06383, allocations: 197 kB / 444.1 MB, free: 14.8 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.796e-06/0.06384, allocations: 4.375 kB / 444.1 MB, free: 14.8 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.546e-06/0.06386, allocations: 8.359 kB / 444.2 MB, free: 14.79 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002174/0.06408, allocations: 139.5 kB / 444.3 MB, free: 14.64 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.234e-06/0.0641, allocations: 0 / 444.3 MB, free: 14.64 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.572e-06/0.06411, allocations: 0 / 444.3 MB, free: 14.64 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.743e-06/0.06412, allocations: 4 kB / 444.3 MB, free: 14.64 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.304e-05/0.06416, allocations: 12 kB / 444.3 MB, free: 14.62 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.823e-05/0.06425, allocations: 181.6 kB / 444.5 MB, free: 14.4 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.82e-05/0.06436, allocations: 62.66 kB / 444.5 MB, free: 14.33 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.579e-05/0.06441, allocations: 44.89 kB / 444.6 MB, free: 14.28 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.578e-06/0.06443, allocations: 0 / 444.6 MB, free: 14.28 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.071e-05/0.06444, allocations: 34.5 kB / 444.6 MB, free: 14.24 MB / 298.7 MB Notification: Performance of pre-optimization done (n=8): time 9.12e-07/0.06445, allocations: 0 / 444.6 MB, free: 14.24 MB / 298.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001388/0.06459, allocations: 89.53 kB / 444.7 MB, free: 14.14 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.759e-05/0.06463, allocations: 59.41 kB / 444.8 MB, free: 14.07 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.986e-05/0.0647, allocations: 135.5 kB / 444.9 MB, free: 13.93 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.042e-06/0.06472, allocations: 25.7 kB / 444.9 MB, free: 13.9 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.994e-05/0.06474, allocations: 88.12 kB / 445 MB, free: 13.81 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.096e-05/0.06476, allocations: 7.906 kB / 445 MB, free: 13.8 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.336e-06/0.06477, allocations: 4 kB / 445 MB, free: 13.8 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.591e-05/0.06481, allocations: 310.8 kB / 445.3 MB, free: 13.49 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.602e-05/0.06483, allocations: 15.98 kB / 445.3 MB, free: 13.47 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.687e-05/0.06486, allocations: 54.88 kB / 445.4 MB, free: 13.39 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.89e-05/0.06492, allocations: 74.73 kB / 445.5 MB, free: 13.3 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.06492, allocations: 0 / 445.5 MB, free: 13.3 MB / 298.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 9.479e-05/0.06502, allocations: 93.47 kB / 445.6 MB, free: 13.2 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.112e-05/0.06504, allocations: 8.188 kB / 445.6 MB, free: 13.19 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.06505, allocations: 0 / 445.6 MB, free: 13.19 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.071e-05/0.06507, allocations: 7.938 kB / 445.6 MB, free: 13.18 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.694e-05/0.06513, allocations: 15.98 kB / 445.6 MB, free: 13.17 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.662e-06/0.06514, allocations: 4.312 kB / 445.6 MB, free: 13.16 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.151e-05/0.06518, allocations: 7.844 kB / 445.6 MB, free: 13.16 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.1e-06/0.06519, allocations: 4 kB / 445.6 MB, free: 13.15 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (unitDelay1.u) * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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.362e-05/0.06524, allocations: 137.8 kB / 445.7 MB, free: 13.01 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.479e-05/0.06531, allocations: 77.67 kB / 445.8 MB, free: 12.93 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.595e-05/0.06535, allocations: 16.7 kB / 445.8 MB, free: 12.91 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.06535, allocations: 0 / 445.8 MB, free: 12.91 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.395e-06/0.06536, allocations: 0 / 445.8 MB, free: 12.91 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.424e-06/0.06537, allocations: 0 / 445.8 MB, free: 12.91 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.336e-05/0.06542, allocations: 169.7 kB / 446 MB, free: 12.7 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.06543, allocations: 3.984 kB / 446 MB, free: 12.69 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.761e-05/0.06548, allocations: 19.88 kB / 446 MB, free: 12.67 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.394e-06/0.06549, allocations: 0 / 446 MB, free: 12.67 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.58e-06/0.0655, allocations: 3.938 kB / 446 MB, free: 12.67 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.06551, allocations: 4 kB / 446 MB, free: 12.66 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.06551, allocations: 0 / 446 MB, free: 12.66 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.04e-05/0.0656, allocations: 97.03 kB / 446.1 MB, free: 12.55 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.378e-05/0.06564, allocations: 96.94 kB / 446.2 MB, free: 12.44 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.31e-05/0.06566, allocations: 4 kB / 446.2 MB, free: 12.43 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.81e-05/0.06568, allocations: 3.984 kB / 446.2 MB, free: 12.43 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.224e-06/0.06569, allocations: 0 / 446.2 MB, free: 12.43 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.107e-06/0.06569, allocations: 4 kB / 446.2 MB, free: 12.43 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.763e-05/0.06574, allocations: 106.1 kB / 446.3 MB, free: 12.32 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.06574, allocations: 0 / 446.3 MB, free: 12.32 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001765/0.06592, allocations: 12 kB / 446.3 MB, free: 12.31 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (unitDelay1.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * 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.0002509/0.06618, allocations: 0.6553 MB / 447 MB, free: 11.62 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 7.906e-05/0.06627, allocations: 47.92 kB / 447 MB, free: 11.58 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.06628, allocations: 0 / 447 MB, free: 11.58 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.01e-07/0.06628, allocations: 0 / 447 MB, free: 11.58 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000267/0.06655, allocations: 44.02 kB / 447.1 MB, free: 11.54 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004696/0.06703, allocations: 0.5481 MB / 447.6 MB, free: 10.91 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.271e-05/0.06714, allocations: 0.6926 MB / 448.3 MB, free: 10.19 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.025e-05/0.06717, allocations: 23.42 kB / 448.4 MB, free: 10.17 MB / 298.7 MB Notification: Performance of SimCode: time 3.1e-07/0.06718, allocations: 3.938 kB / 448.4 MB, free: 10.16 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.246/2.314, allocations: 1.036 MB / 449.4 MB, free: 9.129 MB / 298.7 MB (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClock.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClock.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClock.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClock.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClock_res.mat --tempDir=temp_Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_RealSignals_AssignClock_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_RealSignals_AssignClock.fmu > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClock.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClock_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClock.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:Time,assignClock1.y,unitDelay1.y Variables in the result:add.k1,add.k2,add.u1,add.u2,add.y,assignClock1.u,assignClock1.y,const.k,const.y,periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,previous(unitDelay1.u),time,unitDelay1.u,unitDelay1.y,unitDelay1.y_start