Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClockVectorized.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClockVectorized,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClockVectorized",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClockVectorized,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClockVectorized",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001091/0.001091, allocations: 121.2 kB / 17.78 MB, free: 5.352 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00113/0.00113, allocations: 200.6 kB / 18.73 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.332/1.332, allocations: 227.4 MB / 246.9 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001278/0.001279, allocations: 63.84 kB / 358.2 MB, free: 13.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3008/0.3021, allocations: 50.54 MB / 408.7 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClockVectorized): time 0.002825/0.3049, allocations: 0.8895 MB / 409.6 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006004/0.3056, allocations: 147.5 kB / 409.8 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000199/0.3058, allocations: 4 kB / 409.8 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001681/0.306, allocations: 7.875 kB / 409.8 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000238/0.3062, allocations: 19.86 kB / 409.8 MB, free: 500 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003575/0.3066, allocations: 47.89 kB / 409.9 MB, free: 452 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002103/0.3069, allocations: 63.83 kB / 409.9 MB, free: 388 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002264/0.3071, allocations: 47.95 kB / 410 MB, free: 340 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.109e-05/0.3072, allocations: 27.86 kB / 410 MB, free: 312 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000118/0.3073, allocations: 43.77 kB / 410 MB, free: 268 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.894e-05/0.3073, allocations: 8 kB / 410 MB, free: 260 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.006e-05/0.3074, allocations: 4 kB / 410 MB, free: 256 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.177e-05/0.3075, allocations: 27.92 kB / 410.1 MB, free: 228 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.828e-05/0.3076, allocations: 43.67 kB / 410.1 MB, free: 184 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002509/0.3078, allocations: 98.47 kB / 410.2 MB, free: 88 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.284e-06/0.3078, allocations: 7.984 kB / 410.2 MB, free: 80 kB / 318.1 MB Notification: Performance of FrontEnd: time 2.415e-06/0.3078, allocations: 0 / 410.2 MB, free: 80 kB / 318.1 MB Notification: Performance of Transformations before backend: time 8.606e-06/0.3078, allocations: 0 / 410.2 MB, free: 80 kB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0008679/0.3087, allocations: 410.9 kB / 410.6 MB, free: 15.62 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.725e-05/0.3088, allocations: 12.03 kB / 410.6 MB, free: 15.61 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.65e-05/0.3089, allocations: 46.73 kB / 410.7 MB, free: 15.56 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.404e-05/0.3089, allocations: 16.84 kB / 410.7 MB, free: 15.54 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002987/0.3092, allocations: 216.1 kB / 410.9 MB, free: 15.29 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.055e-05/0.3093, allocations: 8.375 kB / 410.9 MB, free: 15.29 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.019e-05/0.3093, allocations: 8.375 kB / 410.9 MB, free: 15.28 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004643/0.3098, allocations: 241.8 kB / 411.2 MB, free: 15.03 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.276e-05/0.3098, allocations: 3.938 kB / 411.2 MB, free: 15.03 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.507e-05/0.3098, allocations: 4 kB / 411.2 MB, free: 15.02 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.434e-06/0.3098, allocations: 8 kB / 411.2 MB, free: 15.02 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.515e-05/0.3099, allocations: 43.97 kB / 411.2 MB, free: 14.97 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002089/0.3101, allocations: 197.5 kB / 411.4 MB, free: 14.73 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003027/0.3104, allocations: 146.9 kB / 411.6 MB, free: 14.58 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001321/0.3106, allocations: 80.83 kB / 411.6 MB, free: 14.5 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.565e-05/0.3106, allocations: 7.938 kB / 411.6 MB, free: 14.49 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.79e-05/0.3106, allocations: 38.55 kB / 411.7 MB, free: 14.44 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.874e-06/0.3106, allocations: 0 / 411.7 MB, free: 14.44 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.0003438/0.311, allocations: 172.7 kB / 411.8 MB, free: 14.27 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.986e-05/0.3111, allocations: 63.41 kB / 411.9 MB, free: 14.19 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001523/0.3112, allocations: 161.2 kB / 412.1 MB, free: 14.03 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.77e-05/0.3112, allocations: 25.7 kB / 412.1 MB, free: 14 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.717e-05/0.3113, allocations: 100.5 kB / 412.2 MB, free: 13.89 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.623e-05/0.3113, allocations: 19.88 kB / 412.2 MB, free: 13.87 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.752e-05/0.3114, allocations: 33.72 kB / 412.2 MB, free: 13.83 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001369/0.3115, allocations: 322.8 kB / 412.6 MB, free: 13.51 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.72e-05/0.3116, allocations: 27.92 kB / 412.6 MB, free: 13.48 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001207/0.3117, allocations: 124.5 kB / 412.7 MB, free: 13.31 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001729/0.3119, allocations: 153.5 kB / 412.9 MB, free: 13.11 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.051e-06/0.3119, allocations: 0 / 412.9 MB, free: 13.11 MB / 334.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002651/0.3122, allocations: 161.3 kB / 413 MB, free: 12.95 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.162e-05/0.3122, allocations: 11.94 kB / 413 MB, free: 12.94 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.767e-06/0.3122, allocations: 4 kB / 413 MB, free: 12.93 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.259e-05/0.3123, allocations: 7.984 kB / 413 MB, free: 12.93 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001378/0.3124, allocations: 31.94 kB / 413.1 MB, free: 12.89 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.326e-05/0.3124, allocations: 7.984 kB / 413.1 MB, free: 12.89 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.267e-05/0.3125, allocations: 12.36 kB / 413.1 MB, free: 12.88 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.653e-05/0.3125, allocations: 16 kB / 413.1 MB, free: 12.86 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 18 (sum2.y,sum2.u[2],sum2.u[1],sum1.y,sum1.u[2],sum1.u[1],unitDelay2.y,$CLKPRE.unitDelay2.u,unitDelay2.u,const1.y,assignClock1.y[2],assignClock1.y[1],assignClock1.u[2],assignClock1.u[1],const.y,unitDelay1.y,$CLKPRE.unitDelay1.u,unitDelay1.u) * Number of discrete states: 0 () * Number of clocked states: 2 (unitDelay2.u,unitDelay1.u) * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001469/0.3127, allocations: 141.8 kB / 413.2 MB, free: 12.71 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002153/0.3129, allocations: 141.4 kB / 413.4 MB, free: 12.57 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.276e-05/0.313, allocations: 21.19 kB / 413.4 MB, free: 12.54 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.736e-06/0.313, allocations: 0 / 413.4 MB, free: 12.54 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.093e-06/0.313, allocations: 4 kB / 413.4 MB, free: 12.54 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.68e-06/0.313, allocations: 3.938 kB / 413.4 MB, free: 12.53 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000167/0.3132, allocations: 197.5 kB / 413.6 MB, free: 12.29 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.32e-06/0.3132, allocations: 4 kB / 413.6 MB, free: 12.29 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001294/0.3133, allocations: 23.98 kB / 413.6 MB, free: 12.26 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.272e-06/0.3134, allocations: 3.938 kB / 413.6 MB, free: 12.26 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.772e-05/0.3134, allocations: 8 kB / 413.6 MB, free: 12.25 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.3134, allocations: 3.938 kB / 413.6 MB, free: 12.25 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.407e-06/0.3134, allocations: 4 kB / 413.6 MB, free: 12.24 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002511/0.3136, allocations: 168.9 kB / 413.8 MB, free: 12.06 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.769e-05/0.3137, allocations: 108.9 kB / 413.9 MB, free: 11.93 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.367e-05/0.3138, allocations: 7.922 kB / 413.9 MB, free: 11.93 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.44e-05/0.3138, allocations: 8 kB / 413.9 MB, free: 11.92 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.043e-06/0.3138, allocations: 0 / 413.9 MB, free: 11.92 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.097e-06/0.3138, allocations: 4 kB / 413.9 MB, free: 11.91 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.649e-05/0.3139, allocations: 118.3 kB / 414.1 MB, free: 11.8 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3139, allocations: 0 / 414.1 MB, free: 11.8 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000261/0.3142, allocations: 16 kB / 414.1 MB, free: 11.79 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 16 (unitDelay1.u,unitDelay1.y,const.y,assignClock1.u[1],assignClock1.u[2],assignClock1.y[1],assignClock1.y[2],const1.y,unitDelay2.u,unitDelay2.y,sum1.u[1],sum1.u[2],sum1.y,sum2.u[1],sum2.u[2],sum2.y) * Number of discrete states: 0 () * Number of clocked states: 2 (unitDelay1.u,unitDelay2.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006346/0.3149, allocations: 0.7832 MB / 414.9 MB, free: 10.98 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001904/0.3151, allocations: 96.58 kB / 414.9 MB, free: 10.88 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3151, allocations: 256 / 414.9 MB, free: 10.88 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.51e-07/0.3151, allocations: 4 kB / 415 MB, free: 10.88 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003986/0.3155, allocations: 99.47 kB / 415.1 MB, free: 10.79 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001558/0.317, allocations: 1.705 MB / 416.8 MB, free: 8.91 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003063/0.3174, allocations: 0.72 MB / 417.5 MB, free: 8.164 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.156e-05/0.3174, allocations: 13.08 kB / 417.5 MB, free: 8.152 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.529e-05/0.3175, allocations: 31.44 kB / 417.5 MB, free: 8.121 MB / 334.1 MB Notification: Performance of SimCode: time 8.42e-07/0.3175, allocations: 0 / 417.5 MB, free: 8.121 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01871/0.3362, allocations: 2.607 MB / 420.1 MB, free: 5.652 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.609/7.945, allocations: 10.55 kB / 420.1 MB, free: 5.648 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClockVectorized.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClockVectorized.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClockVectorized.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClockVectorized.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClockVectorized_res.csv --start-time 0 --stop-time 0.09 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 3.6e-05 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClockVectorized.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClockVectorized.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClockVectorized_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/AssignClockVectorized/AssignClockVectorized.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClockVectorized.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Error: Could not read variable assignClock1.y[2] in file Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClockVectorized_res.csv. Warning: Get data of variable assignClock1.y[2] from file Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClockVectorized_res.csv failed! " Variables in the reference:time,assignClock1.y[1],assignClock1.y[2] Variables in the result:time,previous(unitDelay1.u),previous(unitDelay2.u),assignClock1.u[1],assignClock1.u[2],assignClock1.y[1]