Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001344/0.001344, allocations: 197.4 kB / 17.38 MB, free: 4.312 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.516/1.516, allocations: 226.5 MB / 244.7 MB, free: 8.207 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008029/0.0008033, allocations: 91.72 kB / 296.7 MB, free: 6.914 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002531/0.0002534, allocations: 7.938 kB / 356.8 MB, free: 10.82 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2956/0.2959, allocations: 51.3 MB / 408.1 MB, free: 27.69 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock): time 0.001106/0.2971, allocations: 0.5425 MB / 408.7 MB, free: 27.16 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003224/0.2974, allocations: 116.2 kB / 408.8 MB, free: 27.04 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.873e-05/0.2975, allocations: 7.938 kB / 408.8 MB, free: 27.04 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001076/0.2977, allocations: 0.5938 kB / 408.8 MB, free: 27.04 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001486/0.2978, allocations: 9.688 kB / 408.8 MB, free: 27.03 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002216/0.298, allocations: 35.89 kB / 408.9 MB, free: 26.99 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 9.471e-05/0.2981, allocations: 35.92 kB / 408.9 MB, free: 26.96 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001226/0.2983, allocations: 21.58 kB / 408.9 MB, free: 26.94 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.003e-05/0.2983, allocations: 11.94 kB / 408.9 MB, free: 26.93 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.403e-05/0.2984, allocations: 17.3 kB / 408.9 MB, free: 26.91 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.133e-05/0.2984, allocations: 4 kB / 408.9 MB, free: 26.91 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.166e-05/0.2984, allocations: 0 / 408.9 MB, free: 26.91 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.53e-05/0.2985, allocations: 11.94 kB / 409 MB, free: 26.89 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.624e-05/0.2985, allocations: 54.52 kB / 409 MB, free: 26.84 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 7.26e-05/0.2986, allocations: 35.94 kB / 409 MB, free: 26.8 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.666e-06/0.2986, allocations: 1.5 kB / 409 MB, free: 26.8 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.204e-06/0.2986, allocations: 0 / 409 MB, free: 26.8 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.479e-06/0.2986, allocations: 0 / 409 MB, free: 26.8 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.0004045/0.2991, allocations: 366.6 kB / 409.4 MB, free: 26.39 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.636e-05/0.2991, allocations: 12.02 kB / 409.4 MB, free: 26.38 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.411e-05/0.2991, allocations: 38.75 kB / 409.4 MB, free: 26.34 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.719e-05/0.2992, allocations: 8.844 kB / 409.5 MB, free: 26.33 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001605/0.2993, allocations: 196.2 kB / 409.6 MB, free: 26.1 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.155e-05/0.2994, allocations: 384 / 409.6 MB, free: 26.1 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.334e-05/0.2994, allocations: 11.56 kB / 409.7 MB, free: 26.09 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002701/0.2997, allocations: 147.6 kB / 409.8 MB, free: 25.93 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.669e-06/0.2997, allocations: 3.938 kB / 409.8 MB, free: 25.93 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.508e-06/0.2997, allocations: 4 kB / 409.8 MB, free: 25.93 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.37e-06/0.2997, allocations: 4 kB / 409.8 MB, free: 25.92 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.44e-05/0.2998, allocations: 19.98 kB / 409.8 MB, free: 25.9 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001153/0.2999, allocations: 165.7 kB / 410 MB, free: 25.69 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001244/0.3, allocations: 74.64 kB / 410.1 MB, free: 25.61 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.865e-05/0.3001, allocations: 48.88 kB / 410.1 MB, free: 25.56 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.176e-05/0.3001, allocations: 0 / 410.1 MB, free: 25.56 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.95e-05/0.3001, allocations: 38.56 kB / 410.2 MB, free: 25.51 MB / 298.7 MB Notification: Performance of pre-optimization done (n=8): time 8.21e-07/0.3001, allocations: 0 / 410.2 MB, free: 25.51 MB / 298.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001848/0.3003, allocations: 101.5 kB / 410.3 MB, free: 25.41 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.866e-05/0.3004, allocations: 59.56 kB / 410.3 MB, free: 25.34 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.559e-05/0.3005, allocations: 144.3 kB / 410.5 MB, free: 25.19 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.895e-06/0.3005, allocations: 25.7 kB / 410.5 MB, free: 25.16 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.069e-05/0.3005, allocations: 96.11 kB / 410.6 MB, free: 25.06 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.558e-05/0.3005, allocations: 7.906 kB / 410.6 MB, free: 25.05 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.856e-06/0.3005, allocations: 4 kB / 410.6 MB, free: 25.05 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.512e-05/0.3006, allocations: 322.8 kB / 410.9 MB, free: 24.72 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.636e-05/0.3006, allocations: 4 kB / 410.9 MB, free: 24.72 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.573e-05/0.3007, allocations: 58.86 kB / 411 MB, free: 24.64 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.014e-05/0.3007, allocations: 74.75 kB / 411 MB, free: 24.54 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.3007, allocations: 4 kB / 411 MB, free: 24.54 MB / 298.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 9.789e-05/0.3008, allocations: 93.48 kB / 411.1 MB, free: 24.44 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.206e-05/0.3009, allocations: 11.88 kB / 411.1 MB, free: 24.43 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/0.3009, allocations: 4 kB / 411.1 MB, free: 24.42 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.576e-05/0.3009, allocations: 0 / 411.1 MB, free: 24.42 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.017e-05/0.301, allocations: 16 kB / 411.2 MB, free: 24.41 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.915e-06/0.301, allocations: 7.922 kB / 411.2 MB, free: 24.4 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.29e-05/0.301, allocations: 16.14 kB / 411.2 MB, free: 24.38 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.843e-06/0.301, allocations: 4 kB / 411.2 MB, free: 24.38 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 7.568e-05/0.3011, allocations: 129.5 kB / 411.3 MB, free: 24.25 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.84e-05/0.3012, allocations: 81.52 kB / 411.4 MB, free: 24.16 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.218e-05/0.3012, allocations: 12.72 kB / 411.4 MB, free: 24.14 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.332e-06/0.3012, allocations: 0 / 411.4 MB, free: 24.14 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.036e-06/0.3012, allocations: 0 / 411.4 MB, free: 24.14 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.3013, allocations: 4 kB / 411.4 MB, free: 24.14 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.587e-05/0.3013, allocations: 177.6 kB / 411.6 MB, free: 23.92 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.3013, allocations: 4 kB / 411.6 MB, free: 23.91 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.831e-05/0.3014, allocations: 12 kB / 411.6 MB, free: 23.9 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.3014, allocations: 3.938 kB / 411.6 MB, free: 23.9 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.287e-06/0.3014, allocations: 7.984 kB / 411.6 MB, free: 23.89 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.774e-06/0.3014, allocations: 4 kB / 411.6 MB, free: 23.89 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.3014, allocations: 0 / 411.6 MB, free: 23.89 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001001/0.3015, allocations: 105.4 kB / 411.7 MB, free: 23.77 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.234e-05/0.3016, allocations: 96.94 kB / 411.8 MB, free: 23.65 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.589e-05/0.3016, allocations: 7.984 kB / 411.8 MB, free: 23.64 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.175e-05/0.3016, allocations: 4 kB / 411.8 MB, free: 23.64 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.925e-06/0.3016, allocations: 0 / 411.8 MB, free: 23.64 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.128e-06/0.3016, allocations: 192 / 411.8 MB, free: 23.64 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.442e-05/0.3017, allocations: 107.2 kB / 411.9 MB, free: 23.54 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3017, allocations: 3.938 kB / 411.9 MB, free: 23.53 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001829/0.3019, allocations: 12 kB / 411.9 MB, free: 23.52 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.000346/0.3022, allocations: 0.6786 MB / 412.6 MB, free: 22.81 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001042/0.3024, allocations: 51.84 kB / 412.7 MB, free: 22.76 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.277e-06/0.3024, allocations: 0 / 412.7 MB, free: 22.76 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.82e-07/0.3024, allocations: 3.938 kB / 412.7 MB, free: 22.76 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003005/0.3027, allocations: 46.98 kB / 412.7 MB, free: 22.71 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005574/0.3033, allocations: 0.5679 MB / 413.3 MB, free: 22.07 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001331/0.3034, allocations: 0.6926 MB / 414 MB, free: 21.35 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.052e-05/0.3034, allocations: 23.48 kB / 414 MB, free: 21.33 MB / 298.7 MB Notification: Performance of SimCode: time 2.1e-07/0.3034, allocations: 0 / 414 MB, free: 21.33 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.613/2.916, allocations: 1.114 MB / 415.1 MB, free: 20.22 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock.fmu > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/AssignClock/AssignClock.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,assignClock1.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