Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.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.IntegerSignals.AssignClock,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_IntegerSignals_AssignClock",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_IntegerSignals_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.0008565/0.0008566, allocations: 174.8 kB / 16.77 MB, free: 4.922 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.189/1.189, allocations: 205.4 MB / 222.9 MB, free: 9.02 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.0007084/0.0007084, allocations: 86.41 kB / 271.3 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.05946/0.05946, allocations: 12.2 MB / 331.8 MB, free: 11.63 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003566/0.0003566, allocations: 16 kB / 392.2 MB, free: 66.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06722/0.06759, allocations: 50.29 MB / 442.5 MB, free: 16.56 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock): time 0.000983/0.06862, allocations: 0.5474 MB / 443 MB, free: 16.01 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003098/0.06896, allocations: 143.6 kB / 443.2 MB, free: 15.87 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.458e-05/0.06904, allocations: 0 / 443.2 MB, free: 15.87 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 7.932e-05/0.06913, allocations: 7.938 kB / 443.2 MB, free: 15.86 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001091/0.06925, allocations: 15.92 kB / 443.2 MB, free: 15.85 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001716/0.06943, allocations: 27.97 kB / 443.2 MB, free: 15.82 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.527e-05/0.06952, allocations: 43.86 kB / 443.3 MB, free: 15.78 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001008/0.06963, allocations: 15.98 kB / 443.3 MB, free: 15.76 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.274e-05/0.06969, allocations: 19.92 kB / 443.3 MB, free: 15.74 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.802e-05/0.06975, allocations: 19.81 kB / 443.3 MB, free: 15.72 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.767e-05/0.06978, allocations: 3.984 kB / 443.3 MB, free: 15.72 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.127e-05/0.0698, allocations: 0 / 443.3 MB, free: 15.72 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.239e-05/0.06984, allocations: 19.92 kB / 443.4 MB, free: 15.7 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.376e-05/0.06989, allocations: 45.58 kB / 443.4 MB, free: 15.65 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 6.593e-05/0.06996, allocations: 35.94 kB / 443.4 MB, free: 15.61 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.06997, allocations: 0 / 443.4 MB, free: 15.61 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.695e-06/0.06998, allocations: 0 / 443.4 MB, free: 15.61 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.316e-06/0.06999, allocations: 3.938 kB / 443.4 MB, free: 15.61 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.000339/0.07033, allocations: 379.4 kB / 443.8 MB, free: 15.19 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.711e-05/0.07038, allocations: 8.031 kB / 443.8 MB, free: 15.18 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.24e-05/0.07042, allocations: 30.75 kB / 443.8 MB, free: 15.14 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.513e-05/0.07045, allocations: 12.84 kB / 443.9 MB, free: 15.13 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001424/0.0706, allocations: 197 kB / 444.1 MB, free: 14.9 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.187e-06/0.07061, allocations: 8.375 kB / 444.1 MB, free: 14.89 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.11e-05/0.07063, allocations: 8.359 kB / 444.1 MB, free: 14.88 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002784/0.07092, allocations: 151.8 kB / 444.2 MB, free: 14.72 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.827e-06/0.07094, allocations: 3.938 kB / 444.2 MB, free: 14.72 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.766e-06/0.07095, allocations: 0 / 444.2 MB, free: 14.72 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.138e-06/0.07096, allocations: 4 kB / 444.2 MB, free: 14.71 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.525e-05/0.07101, allocations: 23.98 kB / 444.2 MB, free: 14.69 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.993e-05/0.07112, allocations: 173.6 kB / 444.4 MB, free: 14.47 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001307/0.07126, allocations: 74.64 kB / 444.5 MB, free: 14.39 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.139e-05/0.07133, allocations: 44.83 kB / 444.5 MB, free: 14.34 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.082e-05/0.07135, allocations: 0 / 444.5 MB, free: 14.34 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.177e-05/0.07137, allocations: 38.56 kB / 444.6 MB, free: 14.3 MB / 298.7 MB Notification: Performance of pre-optimization done (n=8): time 9.62e-07/0.07137, allocations: 0 / 444.6 MB, free: 14.3 MB / 298.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001808/0.07156, allocations: 109.6 kB / 444.7 MB, free: 14.18 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.892e-05/0.07162, allocations: 59.3 kB / 444.7 MB, free: 14.11 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001166/0.07174, allocations: 143.5 kB / 444.9 MB, free: 13.96 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.338e-06/0.07176, allocations: 25.7 kB / 444.9 MB, free: 13.93 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.705e-05/0.07179, allocations: 84.14 kB / 445 MB, free: 13.85 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.458e-05/0.07182, allocations: 7.984 kB / 445 MB, free: 13.84 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.168e-06/0.07183, allocations: 8 kB / 445 MB, free: 13.83 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.213e-05/0.07189, allocations: 310.8 kB / 445.3 MB, free: 13.52 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.161e-05/0.07191, allocations: 15.98 kB / 445.3 MB, free: 13.5 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.682e-05/0.07196, allocations: 58.75 kB / 445.4 MB, free: 13.42 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.409e-05/0.07203, allocations: 74.8 kB / 445.4 MB, free: 13.32 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.07204, allocations: 0 / 445.4 MB, free: 13.32 MB / 298.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001215/0.07216, allocations: 97.39 kB / 445.5 MB, free: 13.22 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.681e-05/0.07219, allocations: 11.94 kB / 445.6 MB, free: 13.21 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.0722, allocations: 0 / 445.6 MB, free: 13.21 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.584e-05/0.07222, allocations: 4 kB / 445.6 MB, free: 13.21 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.392e-05/0.07231, allocations: 15.94 kB / 445.6 MB, free: 13.19 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.065e-06/0.07233, allocations: 4.312 kB / 445.6 MB, free: 13.19 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.69e-05/0.07237, allocations: 4.25 kB / 445.6 MB, free: 13.18 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.156e-06/0.07239, allocations: 8 kB / 445.6 MB, free: 13.18 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: 9 (sum.y,sum.u[2],sum.u[1],const.y,unitDelay1.y,unitDelay1.u,$CLKPRE.unitDelay1.u,assignClock1.y,assignClock1.u) * 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 9.018e-05/0.07248, allocations: 129.6 kB / 445.7 MB, free: 13.04 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.299e-05/0.07258, allocations: 89.45 kB / 445.8 MB, free: 12.95 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.904e-05/0.07263, allocations: 16.7 kB / 445.8 MB, free: 12.93 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.424e-06/0.07264, allocations: 0 / 445.8 MB, free: 12.93 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.546e-06/0.07265, allocations: 0 / 445.8 MB, free: 12.93 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.07266, allocations: 0 / 445.8 MB, free: 12.93 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.867e-05/0.07274, allocations: 181.5 kB / 446 MB, free: 12.7 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.07275, allocations: 4 kB / 446 MB, free: 12.7 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.083e-05/0.07283, allocations: 8 kB / 446 MB, free: 12.69 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/0.07284, allocations: 7.938 kB / 446 MB, free: 12.68 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.494e-06/0.07285, allocations: 0 / 446 MB, free: 12.68 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.502e-06/0.07286, allocations: 0 / 446 MB, free: 12.68 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.07286, allocations: 0 / 446 MB, free: 12.68 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001213/0.07299, allocations: 116.9 kB / 446.1 MB, free: 12.55 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.448e-05/0.07305, allocations: 100.9 kB / 446.2 MB, free: 12.43 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.917e-05/0.07308, allocations: 8 kB / 446.2 MB, free: 12.43 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.502e-05/0.07311, allocations: 0 / 446.2 MB, free: 12.43 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.046e-06/0.07312, allocations: 0 / 446.2 MB, free: 12.43 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.624e-06/0.07313, allocations: 11.98 kB / 446.3 MB, free: 12.41 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.491e-05/0.0732, allocations: 106.1 kB / 446.4 MB, free: 12.31 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.0732, allocations: 0 / 446.4 MB, free: 12.31 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002236/0.07343, allocations: 12 kB / 446.4 MB, free: 12.3 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: 8 (assignClock1.u,assignClock1.y,unitDelay1.u,unitDelay1.y,const.y,sum.u[1],sum.u[2],sum.y) * 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.0003763/0.07381, allocations: 0.667 MB / 447 MB, free: 11.6 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001177/0.07394, allocations: 51.86 kB / 447.1 MB, free: 11.55 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.07396, allocations: 0 / 447.1 MB, free: 11.55 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.41e-07/0.07396, allocations: 0 / 447.1 MB, free: 11.55 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003104/0.07428, allocations: 48.19 kB / 447.1 MB, free: 11.5 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006097/0.0749, allocations: 0.5829 MB / 447.7 MB, free: 10.84 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001086/0.07502, allocations: 0.6965 MB / 448.4 MB, free: 10.12 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.601e-05/0.07507, allocations: 19.5 kB / 448.4 MB, free: 10.1 MB / 298.7 MB Notification: Performance of SimCode: time 2.6e-07/0.07507, allocations: 0 / 448.4 MB, free: 10.1 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.307/2.382, allocations: 1.118 MB / 449.5 MB, free: 8.984 MB / 298.7 MB (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock_res.mat --tempDir=temp_Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_IntegerSignals_AssignClock_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_IntegerSignals_AssignClock.fmu > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:Time,sum.y,unitDelay1.y Variables in the result:assignClock1.u,assignClock1.y,const.k,const.y,periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,previous(unitDelay1.u),sum.k[1],sum.k[2],sum.nu,sum.u[1],sum.u[2],sum.y,time,unitDelay1.u,unitDelay1.y,unitDelay1.y_start